Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 151 for Marshall (0.19 sec)

  1. src/main/webapp/js/admin/plugins/form-validator/location.js

    JavaScript
    - Registered: Mon Apr 22 08:04:10 GMT 2024
    - Last Modified: Mon Jan 01 05:12:47 GMT 2018
    - 5.2K bytes
    - Viewed (0)
  2. cmd/xl-storage-format-v1.go

    	Hash      string `json:"hash,omitempty"`
    }
    
    // MarshalJSON marshals the ChecksumInfo struct
    func (c ChecksumInfo) MarshalJSON() ([]byte, error) {
    	info := checksumInfoJSON{
    		Name:      fmt.Sprintf("part.%d", c.PartNumber),
    		Algorithm: c.Algorithm.String(),
    		Hash:      hex.EncodeToString(c.Hash),
    	}
    	return json.Marshal(info)
    }
    
    // UnmarshalJSON - custom checksum info unmarshaller
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 8.2K bytes
    - Viewed (0)
  3. internal/store/queuestore.go

    	store.entries[key] = time.Now().UnixNano()
    
    	return nil
    }
    
    // write - writes an item to the directory.
    func (store *QueueStore[I]) write(key string, item I) error {
    	// Marshalls the item.
    	eventData, err := json.Marshal(item)
    	if err != nil {
    		return err
    	}
    
    	path := filepath.Join(store.directory, key+store.fileExt)
    	if err := os.WriteFile(path, eventData, os.FileMode(0o770)); err != nil {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Mar 25 16:44:20 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  4. istioctl/pkg/util/proto/messageslice.go

    // limitations under the License.
    
    package proto
    
    import (
    	"bytes"
    
    	"google.golang.org/protobuf/proto"
    
    	"istio.io/istio/pkg/util/protomarshal"
    )
    
    // MessageSlice allows us to marshal slices of protobuf messages like clusters/listeners/routes/endpoints correctly
    type MessageSlice []proto.Message
    
    // MarshalJSON handles marshaling of slices of proto messages
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Tue Oct 19 21:53:59 GMT 2021
    - 1.3K bytes
    - Viewed (0)
  5. tests/preload_test.go

    	DB.Preload("Team").Preload("Languages").Preload("Friends").First(&user, "name = ?", user.Name)
    
    	if r, err := json.Marshal(&user); err != nil {
    		t.Errorf("failed to marshal users, got error %v", err)
    	} else if !regexp.MustCompile(`"Team":\[\],"Languages":\[\],"Friends":\[\]`).MatchString(string(r)) {
    		t.Errorf("json marshal is not empty slice, got %v", string(r))
    	}
    
    	var results []User
    Go
    - Registered: Sun Apr 21 09:35:09 GMT 2024
    - Last Modified: Mon Apr 15 03:20:20 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  6. cmd/admin-bucket-handlers.go

    		return
    	}
    	tgtBytes, err := json.Marshal(&targets)
    	if err != nil {
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErrWithErr(ErrAdminConfigBadJSON, err), r.URL)
    		return
    	}
    	if _, err = globalBucketMetadataSys.Update(ctx, bucket, bucketTargetsFile, tgtBytes); err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    
    	data, err := json.Marshal(target.Arn)
    	if err != nil {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 32.5K bytes
    - Viewed (0)
  7. cmd/kms-handlers.go

    		response.DecryptionErr = "The generated and the decrypted data key do not match"
    		resp, err := json.Marshal(response)
    		if err != nil {
    			writeCustomErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrInternalError), err.Error(), r.URL)
    			return
    		}
    		writeSuccessResponseJSON(w, resp)
    		return
    	}
    
    	resp, err := json.Marshal(response)
    	if err != nil {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Mar 01 21:09:42 GMT 2024
    - 20.7K bytes
    - Viewed (0)
  8. cmd/data-scanner_test.go

    					NewerNoncurrentVersions: 1,
    				},
    			},
    		},
    	}
    	lcXML, err := xml.Marshal(lc)
    	if err != nil {
    		t.Fatalf("Failed to marshal lifecycle config: %v", err)
    	}
    	vcfg := versioning.Versioning{
    		Status: "Enabled",
    	}
    	vcfgXML, err := xml.Marshal(vcfg)
    	if err != nil {
    		t.Fatalf("Failed to marshal versioning config: %v", err)
    	}
    
    	bucket := "bucket"
    	obj := "obj-1"
    	now := time.Now()
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Mar 02 05:11:03 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  9. istioctl/pkg/util/clusters/wrapper.go

    )
    
    // Wrapper is a wrapper around the Envoy Clusters
    // It has extra helper functions for handling any/struct/marshal protobuf pain
    type Wrapper struct {
    	*admin.Clusters
    }
    
    // MarshalJSON is a custom marshaller to handle protobuf pain
    func (w *Wrapper) MarshalJSON() ([]byte, error) {
    	return protomarshal.Marshal(w)
    }
    
    // UnmarshalJSON is a custom unmarshaller to handle protobuf pain
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Thu Nov 03 08:41:32 GMT 2022
    - 1.2K bytes
    - Viewed (0)
  10. 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 Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Oct 28 04:08:53 GMT 2023
    - 23.2K bytes
    - Viewed (0)
Back to top