Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 37 for marshaled (0.11 sec)

  1. cmd/kubeadm/app/componentconfigs/kubelet.go

    	result := &kubeletConfig{}
    	kc.configBase.DeepCopyInto(&result.configBase)
    	kc.config.DeepCopyInto(&result.config)
    	return result
    }
    
    func (kc *kubeletConfig) Marshal() ([]byte, error) {
    	return kc.configBase.Marshal(&kc.config)
    }
    
    func (kc *kubeletConfig) Unmarshal(docmap kubeadmapi.DocumentMap) error {
    	return kc.configBase.Unmarshal(docmap, &kc.config)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 01 07:10:31 UTC 2024
    - 8K bytes
    - Viewed (0)
  2. pkg/controller/ttl/ttl_controller.go

    }
    
    func (ttlc *Controller) patchNodeWithAnnotation(ctx context.Context, node *v1.Node, annotationKey string, value int) error {
    	oldData, err := json.Marshal(node)
    	if err != nil {
    		return err
    	}
    	setIntAnnotation(node, annotationKey, value)
    	newData, err := json.Marshal(node)
    	if err != nil {
    		return err
    	}
    	patchBytes, err := strategicpatch.CreateTwoWayMergePatch(oldData, newData, &v1.Node{})
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  3. internal/event/target/redis.go

    		} else {
    			var data []byte
    			if data, err = json.Marshal(struct{ Records []event.Event }{[]event.Event{eventData}}); err != nil {
    				return err
    			}
    
    			_, err = conn.Do("HSET", target.args.Key, key, data)
    		}
    		if err != nil {
    			return err
    		}
    	}
    
    	if target.args.Format == event.AccessFormat {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  4. src/cmd/cover/cfg_test.go

    	p := covcmd.CoverPkgConfig{
    		PkgPath:      ppath,
    		PkgName:      pname,
    		Granularity:  gran,
    		OutConfig:    outcfg,
    		EmitMetaFile: mpath,
    	}
    	data, err := json.Marshal(p)
    	if err != nil {
    		t.Fatalf("json.Marshal failed: %v", err)
    	}
    	writeFile(t, incfg, data)
    	return incfg
    }
    
    func writeOutFileList(t *testing.T, infiles []string, outdir, tag string) ([]string, string) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 12:51:11 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  5. tests/binary/binaries_test.go

    		if err != nil {
    			t.Fatalf("--version failed with error: %v. Output: %v", err, string(out))
    		}
    
    		var resp version.Version
    		if err := json.Unmarshal(out, &resp); err != nil {
    			t.Fatalf("Failed to marshal to json: %v. Output: %v", err, string(out))
    		}
    
    		verInfo := resp.ClientVersion
    
    		validateField(t, "Version", verInfo.Version)
    		validateField(t, "GitRevision", verInfo.GitRevision)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 15:07:03 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  6. cmd/config-migrate.go

    	for _, cfgFile := range configFiles {
    		if _, err = Load(cfgFile, cfg); err != nil {
    			if !osIsNotExist(err) && !osIsPermission(err) {
    				return nil, err
    			}
    			continue
    		}
    		data, _ = json.Marshal(cfg)
    		break
    	}
    	if osIsPermission(err) {
    		logger.Info("Older config found but is not readable %s, proceeding to read config from other places", err)
    	}
    	if osIsNotExist(err) || osIsPermission(err) || len(data) == 0 {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  7. internal/config/policy/plugin/config.go

    	if o == nil {
    		return false, nil
    	}
    
    	// Access Management Plugin Input
    	body := make(map[string]interface{})
    	body["input"] = args
    
    	inputBytes, err := json.Marshal(body)
    	if err != nil {
    		return false, err
    	}
    
    	req, err := http.NewRequest(http.MethodPost, o.args.URL.String(), bytes.NewReader(inputBytes))
    	if err != nil {
    		return false, err
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  8. src/crypto/md5/md5.go

    	return b[4:], byteorder.BeUint32(b[0:4])
    }
    
    // New returns a new hash.Hash computing the MD5 checksum. The Hash also
    // implements [encoding.BinaryMarshaler] and [encoding.BinaryUnmarshaler] to
    // marshal and unmarshal the internal state of the hash.
    func New() hash.Hash {
    	d := new(digest)
    	d.Reset()
    	return d
    }
    
    func (d *digest) Size() int { return Size }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  9. internal/config/crypto.go

    		MaxMetadataSize = 1 << 20 // max. size of the metadata
    		Version         = 1
    	)
    	var (
    		header [5]byte
    		buffer bytes.Buffer
    	)
    	json := jsoniter.ConfigCompatibleWithStandardLibrary
    	metadata, err := json.Marshal(encryptedObject{
    		KeyID:     key.KeyID,
    		KMSKey:    key.Ciphertext,
    		Algorithm: algorithm,
    		Nonce:     nonce,
    	})
    	if err != nil {
    		return nil, err
    	}
    	if len(metadata) > MaxMetadataSize {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue May 07 23:55:37 UTC 2024
    - 5K bytes
    - Viewed (0)
  10. src/hash/crc64/crc64.go

    // polynomial represented by the [Table]. Its Sum method will lay the
    // value out in big-endian byte order. The returned Hash64 also
    // implements [encoding.BinaryMarshaler] and [encoding.BinaryUnmarshaler] to
    // marshal and unmarshal the internal state of the hash.
    func New(tab *Table) hash.Hash64 { return &digest{0, tab} }
    
    func (d *digest) Size() int { return Size }
    
    func (d *digest) BlockSize() int { return 1 }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 18 22:36:41 UTC 2024
    - 5.2K bytes
    - Viewed (0)
Back to top