Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 151 for Marshall (0.19 sec)

  1. cmd/format-erasure.go

    }
    
    func saveFormatErasure(disk StorageAPI, format *formatErasureV3, healID string) error {
    	if disk == nil || format == nil {
    		return errDiskNotFound
    	}
    
    	// Marshal and write to disk.
    	formatData, err := json.Marshal(format)
    	if err != nil {
    		return err
    	}
    
    	tmpFormat := mustGetUUID()
    
    	// Purge any existing temporary file, okay to ignore errors here.
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Apr 15 08:25:46 GMT 2024
    - 23.4K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/CookieTest.kt

        assertThat(parseCookie(0L, url, "a=b; Expires=Thu, 01 Jan 1970 00:00:01 GMT")!!.persistent)
          .isTrue()
      }
    
      @Test fun parseAll() {
        val headers =
          Headers.Builder()
            .add("Set-Cookie: a=b")
            .add("Set-Cookie: c=d")
            .build()
        val cookies = parseAll(url, headers)
        assertThat(cookies.size).isEqualTo(2)
        assertThat(cookies[0].toString()).isEqualTo("a=b; path=/")
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 24.3K bytes
    - Viewed (0)
  3. internal/kms/dek_test.go

    		},
    	},
    }
    
    func TestEncodeDecodeDEK(t *testing.T) {
    	for i, test := range dekEncodeDecodeTests {
    		text, err := test.Key.MarshalText()
    		if err != nil {
    			t.Fatalf("Test %d: failed to marshal DEK: %v", i, err)
    		}
    
    		var key DEK
    		if err = key.UnmarshalText(text); err != nil {
    			t.Fatalf("Test %d: failed to unmarshal DEK: %v", i, err)
    		}
    		if key.Plaintext != nil {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 2.2K bytes
    - Viewed (0)
  4. istioctl/pkg/util/configdump/wrapper.go

    		return msg.ProtoReflect().Type(), nil
    	}
    	return typ, nil
    }
    
    // Wrapper is a wrapper around the Envoy ConfigDump
    // It has extra helper functions for handling any/struct/marshal protobuf pain
    type Wrapper struct {
    	*admin.ConfigDump
    }
    
    // UnmarshalJSON is a custom unmarshaller to handle protobuf pain
    func (w *Wrapper) UnmarshalJSON(b []byte) error {
    	cd := &admin.ConfigDump{}
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Sun Apr 21 17:42:54 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  5. 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 Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 4.1K bytes
    - Viewed (0)
  6. istioctl/pkg/writer/ztunnel/configdump/connections.go

    		if filter.Namespace != "" && filter.Namespace != state.Info.Namespace {
    			return false
    		}
    		return true
    	})
    	out, err := json.MarshalIndent(workloads, "", "    ")
    	if err != nil {
    		return fmt.Errorf("failed to marshal workloads: %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 Apr 24 22:53:08 GMT 2024
    - Last Modified: Mon Apr 22 15:39:28 GMT 2024
    - 3.3K bytes
    - Viewed (0)
  7. istioctl/pkg/waypoint/waypoint.go

    		RunE: func(cmd *cobra.Command, args []string) error {
    			gw, err := makeGateway(false)
    			if err != nil {
    				return fmt.Errorf("failed to create gateway: %v", err)
    			}
    			b, err := yaml.Marshal(gw)
    			if err != nil {
    				return err
    			}
    			// strip junk
    			res := strings.ReplaceAll(string(b), `  creationTimestamp: null
    `, "")
    			res = strings.ReplaceAll(res, `status: {}
    `, "")
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Mon Apr 22 20:20:40 GMT 2024
    - 15K bytes
    - Viewed (0)
  8. 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 Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 16.5K bytes
    - Viewed (0)
  9. 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 Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 182.7K bytes
    - Viewed (1)
  10. 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 Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Nov 08 15:58:02 GMT 2022
    - 9.1K bytes
    - Viewed (0)
Back to top