Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 124 for Marshall (0.16 sec)

  1. cmd/admin-handlers-users.go

    		writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    		return
    	}
    	for k, v := range ldapUsers {
    		allCredentials[k] = v
    	}
    
    	// Marshal the response
    	data, err := json.Marshal(allCredentials)
    	if err != nil {
    		writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    		return
    	}
    
    	econfigData, err := madmin.EncryptData(password, data)
    	if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 12:41:13 GMT 2024
    - 77.5K bytes
    - Viewed (0)
  2. cmd/admin-handlers.go

    					}
    					continue
    				}
    			}
    		}
    	}
    
    	for _, pr := range peerResults {
    		updateStatus.Results = append(updateStatus.Results, pr)
    	}
    
    	// Marshal API response
    	jsonBytes, err := json.Marshal(updateStatus)
    	if err != nil {
    		writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    		return
    	}
    
    	writeSuccessResponseJSON(w, jsonBytes)
    
    	if !dryRun {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 29 17:39:04 GMT 2024
    - 97.8K bytes
    - Viewed (2)
  3. cmd/bucket-replication-handlers.go

    	}
    	// Validate the received bucket replication config
    	if err = replicationConfig.Validate(bucket, sameTarget); err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    	configData, err := xml.Marshal(replicationConfig)
    	if err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    	if _, err = globalBucketMetadataSys.Update(ctx, bucket, bucketReplicationConfig, configData); err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Oct 28 04:08:53 GMT 2023
    - 23.2K bytes
    - Viewed (0)
  4. cmd/bucket-lifecycle-handlers.go

    				expiryRuleRemoved = true
    			}
    		}
    	}
    
    	if bucketLifecycle.HasExpiry() || expiryRuleRemoved {
    		currtime := time.Now()
    		bucketLifecycle.ExpiryUpdatedAt = &currtime
    	}
    
    	configData, err := xml.Marshal(bucketLifecycle)
    	if err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    
    	if _, err = globalBucketMetadataSys.Update(ctx, bucket, bucketLifecycleConfig, configData); err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Nov 21 17:48:06 GMT 2023
    - 7K bytes
    - Viewed (0)
  5. cni/pkg/install/kubeconfig.go

    	}
    
    	lcfg, err := latest.Scheme.ConvertToVersion(kcfg, latest.ExternalVersion)
    	if err != nil {
    		return kubeconfig{}, err
    	}
    	// Convert to v1 schema which has proper encoding
    	fullYaml, err := yaml.Marshal(lcfg)
    	if err != nil {
    		return kubeconfig{}, err
    	}
    
    	// Log with redaction
    	if err := api.RedactSecrets(kcfg); err != nil {
    		return kubeconfig{}, err
    	}
    	for _, c := range kcfg.Clusters {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Aug 11 01:19:03 GMT 2023
    - 4.9K bytes
    - Viewed (0)
  6. cmd/format-erasure_test.go

    	m.Version = formatMetaVersionV1
    	m.Erasure.Version = formatErasureVersionV1
    	m.Erasure.Disk = mustGetUUID()
    	m.Erasure.JBOD = []string{m.Erasure.Disk, mustGetUUID(), mustGetUUID(), mustGetUUID()}
    
    	b, err := json.Marshal(m)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	if err = os.MkdirAll(pathJoin(rootPath, minioMetaBucket), os.FileMode(0o755)); err != nil {
    		t.Fatal(err)
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 15 08:25:46 GMT 2024
    - 12.9K bytes
    - Viewed (0)
  7. cmd/admin-handlers-idp-ldap.go

    	if err != nil {
    		writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    		return
    	}
    
    	// Encode result and send response.
    
    	data, err := json.Marshal(res)
    	if err != nil {
    		writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    		return
    	}
    	password := cred.SecretKey
    	econfigData, err := madmin.EncryptData(password, data)
    	if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 13.3K bytes
    - Viewed (0)
  8. common-protos/k8s.io/apimachinery/pkg/api/resource/generated.proto

    // writing some sort of special handling code in the hopes that that will
    // cause implementors to also use a fixed point implementation.
    //
    // +protobuf=true
    // +protobuf.embed=string
    // +protobuf.options.marshal=false
    // +protobuf.options.(gogoproto.goproto_stringer)=false
    // +k8s:deepcopy-gen=true
    // +k8s:openapi-gen=true
    message Quantity {
      optional string string = 1;
    }
    
    Plain Text
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  9. cmd/bucket-policy-handlers.go

    		return
    	}
    
    	// Version in policy must not be empty
    	if bucketPolicy.Version == "" {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrPolicyInvalidVersion), r.URL)
    		return
    	}
    
    	configData, err := json.Marshal(bucketPolicy)
    	if err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    
    	updatedAt, err := globalBucketMetadataSys.Update(ctx, bucket, bucketPolicyConfig, configData)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 6.1K bytes
    - Viewed (0)
  10. istioctl/pkg/writer/envoy/configdump/configdump.go

    	}
    	bootstrapDump, err := c.configDump.GetBootstrapConfigDump()
    	if err != nil {
    		return err
    	}
    	out, err := protomarshal.ToJSONWithIndent(bootstrapDump, "    ")
    	if err != nil {
    		return fmt.Errorf("unable to marshal bootstrap in Envoy config dump: %v", err)
    	}
    	if outputFormat == "yaml" {
    		outbyte, err := yaml.JSONToYAML([]byte(out))
    		if err != nil {
    			return err
    		}
    		out = string(outbyte)
    	}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Feb 29 20:46:41 GMT 2024
    - 7.4K bytes
    - Viewed (0)
Back to top