Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for UnmarshalText (0.32 sec)

  1. internal/kms/kms.go

    	}
    	return json.Marshal(JSON{
    		KeyID:      d.KeyID,
    		Ciphertext: d.Ciphertext,
    	})
    }
    
    // UnmarshalText tries to decode text as JSON representation
    // of a DEK and sets DEK's key ID and ciphertext to the
    // decoded values.
    //
    // It sets DEK's plaintext to nil.
    func (d *DEK) UnmarshalText(text []byte) error {
    	type JSON struct {
    		KeyID      string `json:"keyid"`
    		Ciphertext []byte `json:"ciphertext"`
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Mar 01 21:09:42 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  2. internal/kms/dek_test.go

    	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 {
    			t.Fatalf("Test %d: unmarshaled DEK contains non-nil plaintext", i)
    		}
    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)
  3. api/go1.18.txt

    pkg net/netip, method (*Addr) UnmarshalBinary([]uint8) error
    pkg net/netip, method (*Addr) UnmarshalText([]uint8) error
    pkg net/netip, method (*AddrPort) UnmarshalBinary([]uint8) error
    pkg net/netip, method (*AddrPort) UnmarshalText([]uint8) error
    pkg net/netip, method (*Prefix) UnmarshalBinary([]uint8) error
    pkg net/netip, method (*Prefix) UnmarshalText([]uint8) error
    pkg net/netip, method (Addr) AppendTo([]uint8) []uint8
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Feb 17 20:31:46 GMT 2023
    - 13K bytes
    - Viewed (0)
  4. internal/config/storageclass/storage-class.go

    // storage class kind supported.
    func IsValid(sc string) bool {
    	return sc == RRS || sc == STANDARD
    }
    
    // UnmarshalText unmarshals storage class from its textual form into
    // storageClass structure.
    func (sc *StorageClass) UnmarshalText(b []byte) error {
    	scStr := string(b)
    	if scStr == "" {
    		return nil
    	}
    	s, err := parseStorageClass(scStr)
    	if err != nil {
    		return err
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 11.8K bytes
    - Viewed (0)
  5. api/go1.21.txt

    pkg log/slog, method (*Level) UnmarshalText([]uint8) error #56345
    pkg log/slog, method (*LevelVar) Level() Level #56345
    pkg log/slog, method (*LevelVar) MarshalText() ([]uint8, error) #56345
    pkg log/slog, method (*LevelVar) Set(Level) #56345
    pkg log/slog, method (*LevelVar) String() string #56345
    pkg log/slog, method (*LevelVar) UnmarshalText([]uint8) error #56345
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Aug 07 09:39:17 GMT 2023
    - 25.6K bytes
    - Viewed (0)
  6. api/go1.6.txt

    pkg image/color, type NYCbCrA struct, embedded YCbCr
    pkg image/color, var NYCbCrAModel Model
    pkg math/big, method (*Float) MarshalText() ([]uint8, error)
    pkg math/big, method (*Float) UnmarshalText([]uint8) error
    pkg math/big, method (*Int) Append([]uint8, int) []uint8
    pkg math/big, method (*Int) Text(int) string
    pkg math/rand, func Read([]uint8) (int, error)
    pkg math/rand, method (*Rand) Read([]uint8) (int, error)
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Jan 13 23:40:13 GMT 2016
    - 12.9K bytes
    - Viewed (0)
  7. api/go1.3.txt

    pkg go/build, type Package struct, MFiles []string
    pkg math/big, method (*Int) MarshalText() ([]uint8, error)
    pkg math/big, method (*Int) UnmarshalText([]uint8) error
    pkg math/big, method (*Rat) MarshalText() ([]uint8, error)
    pkg math/big, method (*Rat) UnmarshalText([]uint8) error
    pkg net, type Dialer struct, KeepAlive time.Duration
    pkg net/http, const StateActive = 1
    pkg net/http, const StateActive ConnState
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Jun 02 02:45:00 GMT 2014
    - 117K bytes
    - Viewed (0)
  8. api/go1.2.txt

    pkg encoding, type TextMarshaler interface { MarshalText }
    pkg encoding, type TextMarshaler interface, MarshalText() ([]uint8, error)
    pkg encoding, type TextUnmarshaler interface { UnmarshalText }
    pkg encoding, type TextUnmarshaler interface, UnmarshalText([]uint8) error
    pkg encoding/xml, method (*Encoder) EncodeElement(interface{}, StartElement) error
    pkg encoding/xml, method (*Encoder) EncodeToken(Token) error
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Oct 18 04:36:59 GMT 2013
    - 1.9M bytes
    - Viewed (2)
Back to top