- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 78 for ReadFile (0.07 sec)
-
istioctl/pkg/writer/ztunnel/configdump/configdump_test.go
inputFile: "testdata/dump.json", wantConfigs: 27, wantErr: false, }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { cw := &ConfigWriter{} cd, _ := os.ReadFile(tt.inputFile) err := cw.Prime(cd) if cw.ztunnelDump == nil { if tt.wantConfigs != 0 { t.Errorf("wanted some configs loaded but config dump was nil") }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Jun 06 20:18:34 UTC 2024 - 3.6K bytes - Viewed (0) -
docs_src/generate_clients/tutorial004.js
import * as fs from 'fs' async function modifyOpenAPIFile(filePath) { try { const data = await fs.promises.readFile(filePath) const openapiContent = JSON.parse(data) const paths = openapiContent.paths for (const pathKey of Object.keys(paths)) { const pathData = paths[pathKey] for (const method of Object.keys(pathData)) { const operation = pathData[method] if (operation.tags && operation.tags.length > 0) {
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Mar 14 11:40:05 UTC 2024 - 1K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbNamedPipe.java
* <li> <code>TransactNamedPipe</code> A message-type pipe call that * writes to and reads from an existing pipe descriptor in one operation. * <li> <code>CreateFile</code>, <code>ReadFile</code>, * <code>WriteFile</code>, and <code>CloseFile</code> A byte-type pipe can * be opened, written to, read from and closed using the standard Win32 * file operations. * </ul> *
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Fri Mar 22 21:10:40 UTC 2019 - 7.3K bytes - Viewed (0) -
src/cmd/buildid/buildid.go
flag.Usage = usage flag.Parse() counter.Inc("buildid/invocations") counter.CountFlags("buildid/flag:", *flag.CommandLine) if flag.NArg() != 1 { usage() } file := flag.Arg(0) id, err := buildid.ReadFile(file) if err != nil { log.Fatal(err) } if !*wflag { fmt.Printf("%s\n", id) return } // Keep in sync with src/cmd/go/internal/work/buildid.go:updateBuildID f, err := os.Open(file)
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Fri Jun 21 19:58:04 UTC 2024 - 1.7K bytes - Viewed (0) -
cmd/naughty-disk_test.go
} return d.disk.ListDir(ctx, origvolume, volume, dirPath, count) } func (d *naughtyDisk) ReadFile(ctx context.Context, volume string, path string, offset int64, buf []byte, verifier *BitrotVerifier) (n int64, err error) { if err := d.calcError(); err != nil { return 0, err } return d.disk.ReadFile(ctx, volume, path, offset, buf, verifier) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Aug 12 08:38:15 UTC 2024 - 10.1K bytes - Viewed (0) -
internal/kms/config.go
// if so, decrypt it using the user-provided password. certBytes, err := os.ReadFile(certFile) if err != nil { return tls.Certificate{}, fmt.Errorf("Unable to load KES client certificate as specified by the shell environment: %v", err) } keyBytes, err := os.ReadFile(keyFile) if err != nil {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Aug 15 11:46:39 UTC 2024 - 14.2K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbNamedPipe.java
* <li><code>TransactNamedPipe</code> A message-type pipe call that * writes to and reads from an existing pipe descriptor in one operation. * <li><code>CreateFile</code>, <code>ReadFile</code>, * <code>WriteFile</code>, and <code>CloseFile</code> A byte-type pipe can * be opened, written to, read from and closed using the standard Win32 * file operations. * </ul> * * <p>
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 6K bytes - Viewed (0) -
cni/pkg/plugin/plugin_dryrun_test.go
generated, err := os.ReadFile(outputFilePath) if err != nil { log.Fatalf("Cannot read generated IPTables rule file: %v", err) } generatedRules := getRules(generated) refreshGoldens(t, tt.golden, generatedRules) // Compare generated iptables rule with golden files. golden, err := os.ReadFile(tt.golden) if err != nil {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Tue Aug 27 16:44:45 UTC 2024 - 8.5K bytes - Viewed (0) -
cni/pkg/util/pluginutil.go
return } errChan <- err } } } // Read CNI config from file and return the unmarshalled JSON as a map func ReadCNIConfigMap(path string) (map[string]any, error) { cniConfig, err := os.ReadFile(path) if err != nil { return nil, err } var cniConfigMap map[string]any if err = json.Unmarshal(cniConfig, &cniConfigMap); err != nil { return nil, fmt.Errorf("%s: %w", path, 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) -
cni/test/install_cni.go
// checkResult checks if resultFile is equal to expectedFile at each tick until timeout func checkResult(result, expected string) error { resultFile, err := os.ReadFile(result) if err != nil { return fmt.Errorf("couldn't read result: %v", err) } expectedFile, err := os.ReadFile(expected) if err != nil { return fmt.Errorf("couldn't read expected: %v", err) } if !bytes.Equal(resultFile, expectedFile) {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Aug 01 18:38:14 UTC 2024 - 11.3K bytes - Viewed (0)