- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 78 for ReadFile (0.11 sec)
-
cmd/storage-rest-client.go
respBody, err := client.callGet(ctx, storageRESTMethodReadFileStream, values, nil, -1) if err != nil { return nil, toStorageErr(err) } return respBody, nil } // ReadFile - reads section of a file. func (client *storageRESTClient) ReadFile(ctx context.Context, volume string, path string, offset int64, buf []byte, verifier *BitrotVerifier) (int64, error) { values := make(url.Values) values.Set(storageRESTVolume, volume)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sun Oct 13 13:07:21 UTC 2024 - 30.2K bytes - Viewed (0) -
internal/ioutil/ioutil_test.go
t.Fatal(err) } name2 := f.Name() defer os.Remove(name2) f.WriteString("bbbbbbbbbb") f.Close() if err = AppendFile(name1, name2, false); err != nil { t.Error(err) } b, err := os.ReadFile(name1) if err != nil { t.Error(err) } expected := "aaaaaaaaaabbbbbbbbbb" if string(b) != expected { t.Errorf("AppendFile() failed, expected: %s, got %s", expected, string(b)) } }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed May 22 23:07:14 UTC 2024 - 5.5K bytes - Viewed (0) -
cmd/common-main.go
ctxt.ConsoleAddr = ctx.GlobalString("console-address") if ctxt.ConsoleAddr == "" { ctxt.ConsoleAddr = ctx.String("console-address") } if cxml := ctx.String("crossdomain-xml"); cxml != "" { buf, err := os.ReadFile(cxml) if err != nil { return err } ctxt.CrossDomainXML = string(buf) } // Check "no-compat" flag from command line argument.
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Sep 24 21:50:11 UTC 2024 - 31.7K bytes - Viewed (0) -
src/cmd/api/api_test.go
f, err := os.Create(goldenFile) if err != nil { t.Fatal(err) } for _, feat := range w.Features() { fmt.Fprintf(f, "%s\n", feat) } f.Close() } bs, err := os.ReadFile(goldenFile) if err != nil { t.Fatalf("opening golden.txt for package %q: %v", fi.Name(), err) } wanted := strings.Split(string(bs), "\n") sort.Strings(wanted) for _, feature := range wanted {
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Thu Jan 04 17:31:12 UTC 2024 - 7.1K bytes - Viewed (0) -
cmd/utils.go
return nil, err } prof.stopFn = func() ([]byte, error) { pprof.StopCPUProfile() err := f.Close() if err != nil { return nil, err } defer RemoveAll(dirPath) return ioutilx.ReadFile(fn) } case madmin.ProfilerCPUIO: // at 10k or more goroutines fgprof is likely to become // unable to maintain its sampling rate and to significantly // degrade the performance of your application
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Aug 13 22:22:04 UTC 2024 - 31.9K bytes - Viewed (0) -
api/go1.18.txt
pkg crypto/tls, type Config struct, PreferServerCipherSuites //deprecated pkg crypto/x509, method (*CertPool) Subjects //deprecated pkg debug/buildinfo, func Read(io.ReaderAt) (*debug.BuildInfo, error) pkg debug/buildinfo, func ReadFile(string) (*debug.BuildInfo, error) pkg debug/buildinfo, type BuildInfo = debug.BuildInfo pkg debug/dwarf, type BasicType struct, DataBitOffset int64 pkg debug/dwarf, type StructField struct, DataBitOffset int64
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Fri Feb 17 20:31:46 UTC 2023 - 13K bytes - Viewed (0) -
istioctl/pkg/checkinject/checkinject_test.go
"testdata/check-inject/rev-16-injector.yaml", "testdata/check-inject/never-match-injector.yaml", } var whs []admitv1.MutatingWebhookConfiguration for _, whName := range whFiles { file, err := os.ReadFile(whName) if err != nil { t.Fatal(err) } var wh *admitv1.MutatingWebhookConfiguration if err := yaml.Unmarshal(file, &wh); err != nil { t.Fatal(err) } whs = append(whs, *wh) }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Jun 15 15:02:17 UTC 2023 - 10.6K bytes - Viewed (0) -
istioctl/pkg/ztunnelconfig/ztunnelconfig.go
debug, err := extractZtunnelConfigDump(kubeClient, podName, podNamespace) if err != nil { return nil, err } return setupConfigdumpZtunnelConfigWriter(debug, out) } func readFile(filename string) ([]byte, error) { file := os.Stdin if filename != "-" { var err error file, err = os.Open(filename) if err != nil { return nil, err } } defer func() {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 09 19:17:45 UTC 2024 - 22.2K bytes - Viewed (0) -
src/archive/tar/writer_test.go
} default: t.Fatalf("test %d, unknown test operation: %T", i, tf) } } if v.file != "" { want, err := os.ReadFile(v.file) if err != nil { t.Fatalf("ReadFile() = %v, want nil", err) } got := buf.Bytes() if !bytes.Equal(want, got) { t.Fatalf("incorrect result: (-got +want)\n%v", bytediff(got, want)) } } })
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Mon Sep 23 14:32:33 UTC 2024 - 39.4K bytes - Viewed (0) -
cmd/storage-rest_test.go
// file not found error. {"foo", "yourobject", 0, nil, true}, } result := make([]byte, 100) for i, testCase := range testCases { result = result[testCase.offset:3] _, err := storage.ReadFile(context.Background(), testCase.volumeName, testCase.objectName, testCase.offset, result, nil) expectErr := (err != nil) if expectErr != testCase.expectErr {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Jul 22 07:04:48 UTC 2024 - 11.5K bytes - Viewed (0)