Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 147 for Marshal (0.55 sec)

  1. internal/event/errors.go

    type ErrDuplicateQueueConfiguration struct {
    	Queue Queue
    }
    
    func (err ErrDuplicateQueueConfiguration) Error() string {
    	var message string
    	if data, xerr := xml.Marshal(err.Queue); xerr != nil {
    		message = fmt.Sprintf("%+v", err.Queue)
    	} else {
    		message = string(data)
    	}
    
    	return fmt.Sprintf("duplicate queue configuration %v", message)
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 4.1K bytes
    - Viewed (0)
  2. docs/debugging/inspect/export.go

    	}
    	for _, file := range zr.File {
    		if !file.FileInfo().IsDir() && strings.HasSuffix(file.Name, "xl.meta") {
    			r, e := file.Open()
    			if e != nil {
    				return e
    			}
    			// Quote string...
    			b, _ := json.Marshal(file.Name)
    			if hasWritten {
    				fmt.Print(",\n")
    			}
    			fmt.Printf("\t%s: ", string(b))
    
    			b, e = decode(r, file.Name)
    			if e != nil {
    				return e
    			}
    			fmt.Print(string(b))
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Nov 08 15:58:02 GMT 2022
    - 9.1K bytes
    - Viewed (0)
  3. internal/config/bool-flag.go

    func (bf BoolFlag) String() string {
    	if bf {
    		return "on"
    	}
    
    	return "off"
    }
    
    // MarshalJSON - converts BoolFlag into JSON data.
    func (bf BoolFlag) MarshalJSON() ([]byte, error) {
    	return json.Marshal(bf.String())
    }
    
    // UnmarshalJSON - parses given data into BoolFlag.
    func (bf *BoolFlag) UnmarshalJSON(data []byte) (err error) {
    	var s string
    	if err = json.Unmarshal(data, &s); err == nil {
    		b := BoolFlag(true)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 07 15:10:40 GMT 2022
    - 2.3K bytes
    - Viewed (0)
  4. istioctl/pkg/writer/ztunnel/configdump/policies.go

    		if r := cmp.Compare(a.Namespace, b.Namespace); r != 0 {
    			return r
    		}
    		return cmp.Compare(a.Name, b.Name)
    	})
    	out, err := json.MarshalIndent(policies, "", "    ")
    	if err != nil {
    		return fmt.Errorf("failed to marshal policies: %v", err)
    	}
    	if outputFormat == "yaml" {
    		if out, err = yaml.JSONToYAML(out); err != nil {
    			return err
    		}
    	}
    	fmt.Fprintln(c.Stdout, string(out))
    	return nil
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 23 21:30:30 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  5. cmd/site-replication.go

    	var prev *lifecycle.Rule
    	for i, r := range rules {
    		if i == 0 {
    			prev = r
    			continue
    		}
    		// Check equality of rules
    		prevRData, err := xml.Marshal(prev)
    		if err != nil {
    			return false
    		}
    		rData, err := xml.Marshal(*r)
    		if err != nil {
    			return false
    		}
    		if !(string(prevRData) == string(rData)) {
    			return false
    		}
    	}
    	return true
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 184.2K bytes
    - Viewed (1)
  6. cmd/bucket-metadata.go

    )
    
    //go:generate msgp -file $GOFILE
    
    // BucketMetadata contains bucket metadata.
    // When adding/removing fields, regenerate the marshal code using the go generate above.
    // Only changing meaning of fields requires a version bump.
    // bucketMetadataFormat refers to the format.
    // bucketMetadataVersion can be used to track a rolling upgrade of a field.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 16.5K bytes
    - Viewed (0)
  7. istioctl/pkg/workload/workload.go

    	iSpec, err := unstructureIstioType(spec)
    	if err != nil {
    		return nil, err
    	}
    	u.Object["spec"] = iSpec
    
    	wgYAML, err := yaml.Marshal(u.Object)
    	if err != nil {
    		return nil, err
    	}
    	return wgYAML, nil
    }
    
    func configureCommand(ctx cli.Context) *cobra.Command {
    	var opts clioptions.ControlPlaneOptions
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed Apr 17 20:06:41 GMT 2024
    - 25.5K bytes
    - Viewed (0)
  8. cmd/admin-heal-ops.go

    		for !he.hasEnded() {
    			time.Sleep(1 * time.Second)
    		}
    		ahs.Lock()
    		defer ahs.Unlock()
    		// Heal sequence explicitly stopped, remove it.
    		delete(ahs.healSeqMap, path)
    	}
    
    	b, err := json.Marshal(&hsp)
    	return b, toAdminAPIErr(GlobalContext, err)
    }
    
    // LaunchNewHealSequence - launches a background routine that performs
    // healing according to the healSequence argument. For each heal
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 25.1K bytes
    - Viewed (1)
  9. cni/pkg/plugin/cnieventclient.go

    	}
    	// Currently we only use the netns from the original CNI event
    	addEvent := nodeagent.CNIPluginAddEvent{Netns: event.Netns, PodName: podName, PodNamespace: podNamespace, IPs: ncconfigs}
    	eventData, err := json.Marshal(addEvent)
    	if err != nil {
    		return err
    	}
    	var response *http.Response
    	response, err = cniClient.client.Post(cniClient.url, "application/json", bytes.NewBuffer(eventData))
    	if err != nil {
    		return err
    	}
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 2.4K bytes
    - Viewed (0)
  10. istioctl/pkg/util/formatting/formatter.go

    func printJSON(ms diag.Messages) (string, error) {
    	jsonOutput, err := json.MarshalIndent(ms, "", "\t")
    	return string(jsonOutput), err
    }
    
    func printYAML(ms diag.Messages) (string, error) {
    	yamlOutput, err := yaml.Marshal(ms)
    	return string(yamlOutput), err
    }
    
    // Formatting options for Message
    var (
    	colorPrefixes = map[diag.Level]string{
    		diag.Info:    "",           // no special color for info messages
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Jul 11 02:41:45 GMT 2023
    - 3.1K bytes
    - Viewed (0)
Back to top