Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 72 for doDecode (0.22 sec)

  1. internal/kms/config.go

    				if err != nil {
    					return tls.Certificate{}, fmt.Errorf("Unable to load KES client private key as specified by the shell environment: %v", err)
    				}
    				privateKeyPEM, rest := pem.Decode(bytes.TrimSpace(keyBytes))
    				if len(rest) != 0 {
    					return tls.Certificate{}, errors.New("Unable to load KES client private key as specified by the shell environment: private key contains additional data")
    				}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Jun 12 14:31:26 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  2. cmd/metacache-server-pool.go

    		o.Recursive = o.Separator != slashSeparator
    		o.Separator = slashSeparator
    	} else {
    		// Default is recursive, if delimiter is set then list non recursive.
    		o.Recursive = true
    	}
    
    	// Decode and get the optional list id from the marker.
    	o.parseMarker()
    	if o.BaseDir == "" {
    		o.BaseDir = baseDirFromPrefix(o.Prefix)
    	}
    	o.Transient = o.Transient || isReservedOrInvalidBucket(o.Bucket, false)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 23 01:12:23 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  3. src/encoding/json/encode_test.go

    			}
    
    			// Verify that it round-trips.
    			var s2 StringTag
    			if err := Unmarshal(got, &s2); err != nil {
    				t.Fatalf("%s: Decode error: %v", tt.Where, err)
    			}
    			if !reflect.DeepEqual(s2, tt.in) {
    				t.Fatalf("%s: Decode:\n\tinput: %s\n\tgot:  %#v\n\twant: %#v", tt.Where, indentNewlines(string(got)), s2, tt.in)
    			}
    		})
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 29.4K bytes
    - Viewed (0)
  4. pkg/config/model.go

    	if pb, ok := s.(gogoproto.Message); ok {
    		err := gogoprotomarshal.ApplyJSONStrict(js, pb)
    		return err
    	}
    
    	d := json.NewDecoder(bytes.NewReader([]byte(js)))
    	d.DisallowUnknownFields()
    	return d.Decode(&s)
    }
    
    func ApplyJSON(s Spec, js string) error {
    	// golang protobuf. Use protoreflect.ProtoMessage to distinguish from gogo
    	// golang/protobuf 1.4+ will have this interface. Older golang/protobuf are gogo compatible
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 15:31:09 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/security/oauth2-jwt.md

        {!> ../../../docs_src/security/tutorial004.py!}
        ```
    
    ## Update the dependencies
    
    Update `get_current_user` to receive the same token as before, but this time, using JWT tokens.
    
    Decode the received token, verify it, and return the current user.
    
    If the token is invalid, return an HTTP error right away.
    
    === "Python 3.10+"
    
        ```Python hl_lines="90-107"
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Mon May 20 17:37:28 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/mutating/dispatcher.go

    		}
    	}
    
    	// TODO: if we have multiple mutating webhooks, we can remember the json
    	// instead of encoding and decoding for each one.
    	if newVersionedObject, _, err = jsonSerializer.Decode(patchedJS, nil, newVersionedObject); err != nil {
    		return false, apierrors.NewInternalError(err)
    	}
    
    	changed = !apiequality.Semantic.DeepEqual(attr.VersionedObject, newVersionedObject)
    	span.AddEvent("Patch applied")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  7. cmd/encryption-v1.go

    		mac := hmac.New(sha256.New, key)
    		mac.Write([]byte(baseKey))
    		return sio.DecryptBuffer(nil, input, sio.Config{Key: mac.Sum(nil), CipherSuites: fips.DARECiphers()})
    	}
    }
    
    // decryptChecksums will attempt to decode checksums and return it/them if set.
    // if part > 0, and we have the checksum for the part that will be returned.
    func (o *ObjectInfo) decryptPartsChecksums(h http.Header) {
    	data := o.Checksum
    	if len(data) == 0 {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 06:56:12 UTC 2024
    - 37.1K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/server/options/encryptionconfig/config.go

    	data, contentHash, err := loadDataAndHash(filepath)
    	if err != nil {
    		return nil, "", fmt.Errorf("error while loading file: %w", err)
    	}
    
    	configObj, gvk, err := codecs.UniversalDecoder().Decode(data, nil, nil)
    	if err != nil {
    		return nil, "", fmt.Errorf("error decoding encryption provider configuration file %q: %w", filepath, err)
    	}
    	config, ok := configObj.(*apiserver.EncryptionConfiguration)
    	if !ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 16:56:39 UTC 2024
    - 41.2K bytes
    - Viewed (0)
  9. pkg/kube/util.go

    	by, err := config.ToJSON(in)
    	if err != nil {
    		return nil, err
    	}
    	gvk := in.GetObjectKind().GroupVersionKind()
    	obj, _, err := IstioCodec.UniversalDeserializer().Decode(by, &gvk, nil)
    	if err != nil {
    		return nil, err
    	}
    	return obj, nil
    }
    
    // sanitizeKubeConfig sanitizes a kubeconfig file to strip out insecure settings which may leak
    // confidential materials.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 05:10:23 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  10. pkg/controlplane/instance_test.go

    	s.ControlPlane.GenericAPIServer.Handler.ServeHTTP(resp, req)
    	if resp.Code != 200 {
    		t.Fatalf("expected http 200, got: %d", resp.Code)
    	}
    
    	var info version.Info
    	err := json.NewDecoder(resp.Body).Decode(&info)
    	if err != nil {
    		t.Errorf("unexpected error: %v", err)
    	}
    
    	if !reflect.DeepEqual(kubeversion.Get(), info) {
    		t.Errorf("Expected %#v, Got %#v", kubeversion.Get(), info)
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 03 11:50:04 UTC 2024
    - 21.5K bytes
    - Viewed (0)
Back to top