- Sort Score
- Result 10 results
- Languages All
Results 171 - 180 of 475 for writeTime (0.15 sec)
-
staging/src/k8s.io/apiserver/pkg/admission/config_test.go
require.NoError(t, apiserverapiv1alpha1.AddToScheme(scheme)) require.NoError(t, apiserverapiv1.AddToScheme(scheme)) for testName, testCase := range testCases { if err = os.WriteFile(configFileName, []byte(testCase.ConfigBody), 0644); err != nil { t.Fatalf("unexpected err writing temp file: %v", err) } config, err := ReadAdmissionConfiguration(testCase.PluginNames, configFileName, scheme)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jun 29 15:48:39 UTC 2023 - 8.8K bytes - Viewed (0) -
src/internal/goexperiment/mkconsts.go
//go:build %s%s package goexperiment const %s = %v const %sInt = %s `, pick(val, "!", ""), buildTag, f, val, f, pick(val, "0", "1")) if err := os.WriteFile(name, []byte(data), 0666); err != nil { log.Fatalf("writing %s: %v", name, err) } } } } func pick(v bool, f, t string) string { if v { return t } return f
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:27 UTC 2023 - 1.6K bytes - Viewed (0) -
test/fixedbugs/bug369.go
stdlibimportcfg, err := os.ReadFile(os.Getenv("STDLIB_IMPORTCFG")) check(err) importcfg := string(stdlibimportcfg) + "\npackagefile test/slow=" + tmp("test/slow.o") + "\npackagefile test/fast=" + tmp("test/fast.o") os.WriteFile(tmp("importcfg"), []byte(importcfg), 0644) run("go", "tool", "compile", "-importcfg="+tmp("importcfg"), "-p=test/slow", "-N", "-o", tmp("test/slow.o"), "pkg.go")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:25 UTC 2023 - 1.6K bytes - Viewed (0) -
platforms/native/platform-native/src/main/java/org/gradle/nativeplatform/tasks/InstallExecutable.java
+ "\n" + toolChainPath + "\nCALL \"%~dp0lib\\" + executable.getName() + "\" %*" + "\nEXIT /B %ERRORLEVEL%" + "\nENDLOCAL" + "\n"; GFileUtils.writeFile(runScriptText, runScript); } private void installUnix(File executable, File runScript) { String runScriptText = "#!/bin/sh" + "\nAPP_BASE_NAME=`dirname \"$0\"`"
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 16 20:20:03 UTC 2023 - 9K bytes - Viewed (0) -
pkg/kubelet/cm/cgroup_manager_linux.go
if err := os.WriteFile(filepath.Join(cgroupPath, "cpu.cfs_quota_us"), []byte(cpuQuotaStr), 0700); err != nil { return fmt.Errorf("failed to write %v to %v: %v", cpuQuotaStr, cgroupPath, err) } } if resourceConfig.CPUPeriod != nil { cpuPeriodStr = strconv.FormatUint(*resourceConfig.CPUPeriod, 10)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Sep 27 13:02:15 UTC 2023 - 26.5K bytes - Viewed (0) -
operator/cmd/mesh/manifest_shared_test.go
func readFile(path string) (string, error) { b, err := os.ReadFile(path) return string(b), err } // writeFile writes a file and returns an error if operation is unsuccessful. func writeFile(path string, data []byte) error { return os.WriteFile(path, data, 0o644) } // inFileAbsolutePath returns the absolute path for an input file like "gateways".
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Feb 20 22:39:28 UTC 2024 - 11.7K bytes - Viewed (0) -
cmd/format-erasure_test.go
b, err := json.Marshal(m) if err != nil { t.Fatal(err) } if err = os.MkdirAll(pathJoin(rootPath, minioMetaBucket), os.FileMode(0o755)); err != nil { t.Fatal(err) } if err = os.WriteFile(pathJoin(rootPath, minioMetaBucket, formatConfigFile), b, os.FileMode(0o644)); err != nil { t.Fatal(err) } formatData, _, err := formatErasureMigrate(rootPath) if err != nil { t.Fatal(err) }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Apr 15 08:25:46 UTC 2024 - 12.9K bytes - Viewed (0) -
security/tools/generate_cert/main.go
} default: log.Fatalf("Unsupported mode %v", *mode) } } func saveCreds(certPem []byte, privPem []byte) { err := os.WriteFile(*outCert, certPem, 0o644) if err != nil { log.Fatalf("Could not write output certificate: %s.", err) } err = os.WriteFile(*outPriv, privPem, 0o600) if err != nil { log.Fatalf("Could not write output private key: %s.", err) } }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Apr 28 16:21:30 UTC 2023 - 5.7K bytes - Viewed (0) -
lib/time/mkzip.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:32:07 UTC 2024 - 2.1K bytes - Viewed (0) -
src/crypto/tls/link_test.go
} tmpDir := t.TempDir() goFile := filepath.Join(tmpDir, "x.go") exeFile := filepath.Join(tmpDir, "x.exe") for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { if err := os.WriteFile(goFile, []byte(tt.program), 0644); err != nil { t.Fatal(err) } os.Remove(exeFile) cmd := exec.Command(goBin, "build", "-o", "x.exe", "x.go") cmd.Dir = tmpDir
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 09 11:28:56 UTC 2022 - 2.4K bytes - Viewed (0)