- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 148 for Marshal (0.09 sec)
-
internal/config/lambda/event/targetid.go
func (tid TargetID) ToARN(region string) ARN { return ARN{TargetID: tid, region: region} } // MarshalJSON - encodes to JSON data. func (tid TargetID) MarshalJSON() ([]byte, error) { return json.Marshal(tid.String()) } // UnmarshalJSON - decodes JSON data. func (tid *TargetID) UnmarshalJSON(data []byte) error { var s string if err := json.Unmarshal(data, &s); err != nil { return err }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Mar 07 16:12:41 UTC 2023 - 1.8K bytes - Viewed (0) -
cni/pkg/nodeagent/ztunnelserver_test.go
Ack: &zdsapi.Ack{}, }, } data, err := proto.Marshal(ack) if err != nil { panic(err) } err = c.SetWriteDeadline(time.Now().Add(time.Second)) if err != nil { panic(err) } c.Write(data) } func sendHello(c *net.UnixConn) { ack := &zdsapi.ZdsHello{ Version: zdsapi.Version_V1, } data, err := proto.Marshal(ack) if err != nil { panic(err) }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Apr 12 21:47:31 UTC 2024 - 8.6K bytes - Viewed (0) -
cmd/api-datatypes.go
DeleteMarkerMTime DeleteMarkerMTime `xml:"-"` // MinIO extensions to support delete marker replication ReplicationState ReplicationState `xml:"-"` } // DeleteMarkerMTime is an embedded type containing time.Time for XML marshal type DeleteMarkerMTime struct { time.Time } // MarshalXML encodes expiration date if it is non-zero and encodes // empty string otherwise
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue May 14 07:26:50 UTC 2024 - 3K bytes - Viewed (0) -
cni/pkg/plugin/cnieventclient.go
} // Currently we only use the netns from the original CNI event addEvent := nodeagent.CNIPluginAddEvent{Netns: event.Netns, PodName: podName, PodNamespace: podNamespace, IPs: ncconfigs} eventData, err := json.Marshal(addEvent) if err != nil { return err } response, err := cniClient.client.Post(cniClient.url, "application/json", bytes.NewBuffer(eventData)) if err != nil {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Tue Jul 02 18:48:50 UTC 2024 - 2.7K bytes - Viewed (0) -
cmd/admin-handlers-idp-config.go
return } if err != nil { writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL) return } data, err := json.Marshal(cfgList) if err != nil { writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL) return } econfigData, err := madmin.EncryptData(password, data) if err != nil {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 12.7K bytes - Viewed (0) -
istioctl/pkg/writer/ztunnel/configdump/services.go
if r := cmp.Compare(a.Name, b.Name); r != 0 { return r } return cmp.Compare(a.Hostname, b.Hostname) }) out, err := json.MarshalIndent(svcs, "", " ") if err != nil { return fmt.Errorf("failed to marshal workloads: %v", err) } if outputFormat == "yaml" { if out, err = yaml.JSONToYAML(out); err != nil { return err } } fmt.Fprintln(c.Stdout, string(out)) return nil
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Jul 24 09:07:30 UTC 2024 - 3.2K bytes - Viewed (0) -
istioctl/pkg/workload/workload.go
iSpec, err := unstructureIstioType(spec) if err != nil { return nil, err } u.Object["spec"] = iSpec wgYAML, err := yaml.Marshal(u.Object) if err != nil { return nil, err } return wgYAML, nil } func configureCommand(ctx cli.Context) *cobra.Command { var opts clioptions.ControlPlaneOptions
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Aug 15 16:31:46 UTC 2024 - 25.3K bytes - Viewed (0) -
internal/event/errors.go
type ErrDuplicateQueueConfiguration struct { Queue Queue } func (err ErrDuplicateQueueConfiguration) Error() string { var message string if data, xerr := xml.Marshal(err.Queue); xerr != nil { message = fmt.Sprintf("%+v", err.Queue) } else { message = string(data) } return fmt.Sprintf("duplicate queue configuration %v", message) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jun 01 21:59:40 UTC 2021 - 4.1K bytes - Viewed (0) -
cni/pkg/util/pluginutil.go
plugin, ok := rawPlugin.(map[string]any) if !ok { err = fmt.Errorf("error reading plugin from CNI config plugin list") return } return } // Marshal the CNI config map and append a new line func MarshalCNIConfig(cniConfigMap map[string]any) ([]byte, error) { cniConfig, err := json.MarshalIndent(cniConfigMap, "", " ") if err != nil { return nil, err }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Jan 26 20:34:28 UTC 2024 - 3.6K bytes - Viewed (0) -
internal/event/target/redis.go
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Sep 06 23:06:30 UTC 2024 - 9.1K bytes - Viewed (0)