Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 20 for decode (0.09 sec)

  1. internal/config/identity/openid/jwt.go

    )
    
    type publicKeys struct {
    	*sync.RWMutex
    
    	// map of kid to public key
    	pkMap map[string]interface{}
    }
    
    func (pk *publicKeys) parseAndAdd(b io.Reader) error {
    	var jwk JWKS
    	err := json.NewDecoder(b).Decode(&jwk)
    	if err != nil {
    		return err
    	}
    
    	for _, key := range jwk.Keys {
    		pkey, err := key.DecodePublicKey()
    		if err != nil {
    			return err
    		}
    		pk.add(key.Kid, pkey)
    	}
    
    	return nil
    }
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 30 18:10:41 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  2. internal/kms/conn.go

    	}
    	return json.Marshal(JSON{
    		KeyID:      d.KeyID,
    		Version:    uint32(d.Version),
    		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"`
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue May 07 23:55:37 UTC 2024
    - 5K bytes
    - Viewed (0)
  3. cmd/erasure-encode.go

    	return fmt.Errorf("%w (offline-disks=%d/%d)", writeErr, countErrs(p.errs, errDiskNotFound), len(p.writers))
    }
    
    // Encode reads from the reader, erasure-encodes the data and writes to the writers.
    func (e *Erasure) Encode(ctx context.Context, src io.Reader, writers []io.Writer, buf []byte, quorum int) (total int64, err error) {
    	writer := &multiWriter{
    		writers:     writers,
    		writeQuorum: quorum,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 15 00:11:04 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  4. docs/distributed/decom-compressed-sse-s3.sh

    ./mc ls -r myminio/versioned/ >expanded_ns.txt
    ./mc ls -r --versions myminio/versioned/ >expanded_ns_versions.txt
    
    ./mc admin decom start myminio/ http://localhost:9000/tmp/xl/{1...10}/disk{0...1}
    
    until $(./mc admin decom status myminio/ | grep -q Complete); do
    	echo "waiting for decom to finish..."
    	sleep 1
    done
    
    kill $pid_1
    kill $pid_2
    
    sleep 5
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon May 27 19:17:46 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  5. cmd/xl-storage-format-v2-legacy.go

    		return x2.UnmarshalMsg(bts)
    	case xlHeaderVersion:
    		return x.UnmarshalMsg(bts)
    	}
    	return bts, fmt.Errorf("unknown xlHeaderVersion: %d", v)
    }
    
    // unmarshalV1 decodes version 1, never released.
    func (x *xlMetaV2VersionHeader) unmarshalV1(bts []byte) (o []byte, err error) {
    	var zb0001 uint32
    	zb0001, bts, err = msgp.ReadArrayHeaderBytes(bts)
    	if err != nil {
    		err = msgp.WrapError(err)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Apr 19 16:43:43 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  6. docs/distributed/decom-encrypted-sse-s3.sh

    ./mc ls -r myminio/versioned/ >expanded_ns.txt
    ./mc ls -r --versions myminio/versioned/ >expanded_ns_versions.txt
    
    ./mc admin decom start myminio/ http://localhost:9000/tmp/xl/{1...10}/disk{0...1}
    
    until $(./mc admin decom status myminio/ | grep -q Complete); do
    	echo "waiting for decom to finish..."
    	sleep 1
    done
    
    kill $pid_1
    kill $pid_2
    
    sleep 5
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon May 27 19:17:46 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  7. docs/distributed/decom.sh

    ./mc ls -r myminio/versioned/ >expanded_ns.txt
    ./mc ls -r --versions myminio/versioned/ >expanded_ns_versions.txt
    
    ./mc admin decom start myminio/ http://localhost:9000/tmp/xl/{1...10}/disk{0...1}
    
    count=0
    until $(./mc admin decom status myminio/ | grep -q Complete); do
    	echo "waiting for decom to finish..."
    	count=$((count + 1))
    	if [ ${count} -eq 120 ]; then
    		./mc cat /tmp/expanded_*.log
    	fi
    	sleep 1
    done
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon May 27 19:17:46 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  8. docs/distributed/decom-encrypted.sh

    ./mc ls -r myminio/versioned/ >expanded_ns.txt
    ./mc ls -r --versions myminio/versioned/ >expanded_ns_versions.txt
    
    ./mc admin decom start myminio/ http://localhost:9000/tmp/xl/{1...10}/disk{0...1}
    
    until $(./mc admin decom status myminio/ | grep -q Complete); do
    	echo "waiting for decom to finish..."
    	sleep 1
    done
    
    kill $pid_1
    kill $pid_2
    
    sleep 5
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon May 27 19:17:46 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  9. internal/bucket/replication/destination.go

    			return err
    		}
    	}
    	return e.EncodeToken(xml.EndElement{Name: start.Name})
    }
    
    // UnmarshalXML - decodes XML data.
    func (d *Destination) UnmarshalXML(dec *xml.Decoder, start xml.StartElement) (err error) {
    	// Make subtype to avoid recursive UnmarshalXML().
    	type destination Destination
    	dest := destination{}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 4K bytes
    - Viewed (0)
  10. docs/distributed/decom-encrypted-kes.sh

    ./mc ls -r myminio/versioned-1/ >expanded_ns_1.txt
    ./mc ls -r --versions myminio/versioned-1/ >expanded_ns_versions_1.txt
    
    ./mc admin decom start myminio/ http://localhost:9000/tmp/xl/{1...10}/disk{0...1}
    
    until $(./mc admin decom status myminio/ | grep -q Complete); do
    	echo "waiting for decom to finish..."
    	sleep 1s
    done
    
    kill $pid_1
    kill $pid_2
    
    sleep 5s
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon May 27 19:17:46 UTC 2024
    - 7.1K bytes
    - Viewed (0)
Back to top