- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for writeEncodedObject (0.15 sec)
-
istioctl/pkg/multicluster/remote_secret_test.go
Name: "foo", }, } w := &fakeOutputWriter{failAfter: 0, injectError: errors.New("error")} if err := writeEncodedObject(w, s); err == nil { t.Error("want error on local write failure") } w = &fakeOutputWriter{failAfter: 1, injectError: errors.New("error")} if err := writeEncodedObject(w, s); err == nil { t.Error("want error on remote write failure") }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Oct 24 17:36:49 UTC 2024 - 20.7K bytes - Viewed (0) -
istioctl/pkg/multicluster/remote_secret.go
server), nil } return server, nil, nil } const ( outputHeader = "# This file is autogenerated, do not edit.\n" outputTrailer = "---\n" ) func writeEncodedObject(out io.Writer, in runtime.Object) error { if _, err := fmt.Fprint(out, outputHeader); err != nil { return err } if err := codec.Encode(in, out); err != nil { return err }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Aug 15 16:31:46 UTC 2024 - 23.3K bytes - Viewed (0)