- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 229 for Writer (0.18 sec)
-
istioctl/pkg/tag/tag.go
} // listTags lists existing revision. func listTags(ctx context.Context, kubeClient kubernetes.Interface, writer io.Writer) error { tagWebhooks, err := GetRevisionWebhooks(ctx, kubeClient) if err != nil { return fmt.Errorf("failed to retrieve revision tags: %v", err) } if len(tagWebhooks) == 0 { fmt.Fprintf(writer, "No Istio revision tag MutatingWebhookConfigurations to list\n") return nil }
Go - Registered: Wed Apr 24 22:53:08 GMT 2024 - Last Modified: Tue Apr 02 08:32:06 GMT 2024 - 16.3K bytes - Viewed (0) -
istioctl/pkg/writer/envoy/configdump/cluster.go
} } _, _ = fmt.Fprintln(c.Stdout, string(out)) return nil } func (c *ConfigWriter) setupClusterConfigWriter() (*tabwriter.Writer, []*cluster.Cluster, error) { clusters, err := c.retrieveSortedClusterSlice() if err != nil { return nil, nil, err } w := new(tabwriter.Writer).Init(c.Stdout, 0, 8, 5, ' ', 0) return w, clusters, nil }
Go - Registered: Wed Apr 24 22:53:08 GMT 2024 - Last Modified: Thu May 11 05:38:17 GMT 2023 - 5.9K bytes - Viewed (0) -
cmd/erasure-decode.go
} // Decode reads from readers, reconstructs data if needed and writes the data to the writer. // A set of preferred drives can be supplied. In that case they will be used and the data reconstructed. func (e Erasure) Decode(ctx context.Context, writer io.Writer, readers []io.ReaderAt, offset, length, totalLength int64, prefer []bool) (written int64, derr error) { if offset < 0 || length < 0 {
Go - Registered: Sun Apr 21 19:28:08 GMT 2024 - Last Modified: Fri Apr 19 16:44:59 GMT 2024 - 9.4K bytes - Viewed (0) -
cmd/metacache-entries_test.go
if !reflect.DeepEqual(want, got) {
Go - Registered: Sun Apr 21 19:28:08 GMT 2024 - Last Modified: Sun Jan 02 17:15:06 GMT 2022 - 31.6K bytes - Viewed (0) -
istioctl/pkg/writer/envoy/configdump/route.go
} } fmt.Fprintln(c.Stdout, string(out)) return nil } func (c *ConfigWriter) setupRouteConfigWriter() (*tabwriter.Writer, []*route.RouteConfiguration, error) { routes, err := c.retrieveSortedRouteSlice() if err != nil { return nil, nil, err } w := new(tabwriter.Writer).Init(c.Stdout, 0, 8, 5, ' ', 0) return w, routes, nil }
Go - Registered: Wed Apr 24 22:53:08 GMT 2024 - Last Modified: Thu May 11 05:38:17 GMT 2023 - 7.2K bytes - Viewed (0) -
cmd/local-locker.go
return true, nil } if isWriteLock(lri) { // A write-lock is held, cannot release a read lock return false, fmt.Errorf("RUnlock attempted on a write locked entity: %s", resource) } l.removeEntry(resource, args, &lri) return reply, nil } type lockStats struct { Total int Writes int Reads int } func (l *localLocker) stats() lockStats { l.mutex.Lock()
Go - Registered: Sun Apr 21 19:28:08 GMT 2024 - Last Modified: Mon Feb 19 22:54:46 GMT 2024 - 10.6K bytes - Viewed (0) -
src/archive/tar/fuzz_test.go
Name: "lorem.txt", Mode: 0600, Size: int64(len(inp)), }) if err != nil { f.Fatalf("failed to create writer: %s", err) } _, err = w.Write(inp) if err != nil { f.Fatalf("failed to write file to archive: %s", err) } if err := w.Close(); err != nil { f.Fatalf("failed to write archive: %s", err) } f.Add(b.Bytes()) f.Fuzz(func(t *testing.T, b []byte) { r := NewReader(bytes.NewReader(b))
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Thu Jan 13 18:06:33 GMT 2022 - 2.2K bytes - Viewed (0) -
internal/http/response-recorder.go
// Always logging error responses. lrw.body.Write(p) } if err != nil { return n, err } return n, err } // Write the headers into the given buffer func (lrw *ResponseRecorder) writeHeaders(w io.Writer, statusCode int, headers http.Header) { n, _ := fmt.Fprintf(w, "%d %s\n", statusCode, http.StatusText(statusCode))
Go - Registered: Sun Apr 21 19:28:08 GMT 2024 - Last Modified: Sat Dec 02 00:13:19 GMT 2023 - 4.9K bytes - Viewed (0) -
istioctl/pkg/writer/envoy/configdump/endpoint.go
} } return "unknown" } func (c *ConfigWriter) PrintEndpoints(filter EndpointFilter, outputFormat string) error { if c.configDump == nil { return fmt.Errorf("config writer has not been primed") } dump, err := c.retrieveSortedEndpointsSlice(filter) if err != nil { return err } marshaller := make(proto.MessageSlice, 0, len(dump)) for _, eds := range dump {
Go - Registered: Wed Apr 24 22:53:08 GMT 2024 - Last Modified: Sun Apr 21 17:42:54 GMT 2024 - 5.6K bytes - Viewed (0) -
cmd/bucket-policy-handlers_test.go
// its required to write the policies first before running tests on GetBucketPolicy. for i, testPolicy := range putTestPolicies { // obtain the put bucket policy request body. bucketPolicyStr := fmt.Sprintf(bucketPolicyTemplate, testPolicy.bucketName, testPolicy.bucketName) // initialize HTTP NewRecorder, this records any mutations to response writer inside the handler. recV4 := httptest.NewRecorder()
Go - Registered: Sun Apr 21 19:28:08 GMT 2024 - Last Modified: Thu Jan 18 07:03:17 GMT 2024 - 32.7K bytes - Viewed (0)