- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 76 for absPath (0.16 sec)
-
src/os/file_open_wasip1.go
return -1, poll.SysFile{}, syscall.EINVAL } absPath := filePath // os.(*File).Chdir is emulated by setting the working directory to the // absolute path that this file was opened at, which is why we have to // resolve and capture it here. if filePath[0] != '/' { wd, err := syscall.Getwd() if err != nil { return -1, poll.SysFile{}, err } absPath = joinPath(wd, filePath) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 07 23:34:21 UTC 2023 - 818 bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/test/integration/limit_test.go
kind: %s metadata: name: test values: `+strings.Repeat("[", 3*1024*1024), apiVersion, kind)) _, err := rest.Post(). SetHeader("Accept", "application/yaml"). SetHeader("Content-Type", "application/yaml"). AbsPath("/apis", noxuDefinition.Spec.Group, noxuDefinition.Spec.Versions[0].Name, noxuDefinition.Spec.Names.Plural). Body(yamlBody). DoRaw(context.TODO()) if !apierrors.IsRequestEntityTooLargeError(err) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 02 19:34:41 UTC 2021 - 8K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/test/integration/apply_test.go
result, err := rest.Patch(types.ApplyPatchType). AbsPath("/apis", noxuDefinition.Spec.Group, noxuDefinition.Spec.Versions[0].Name, noxuDefinition.Spec.Names.Plural). Name("mytest"). Param("fieldManager", "apply_test"). Body(yamlBody). DoRaw(context.TODO()) if err != nil { t.Fatal(err, string(result)) } result, err = rest.Patch(types.MergePatchType).
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Sep 27 11:48:28 UTC 2022 - 3.5K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/test/integration/yaml_test.go
rest := apiExtensionClient.Discovery().RESTClient() // Discovery { result, err := rest.Get(). SetHeader("Accept", "application/yaml"). AbsPath("/apis", noxuDefinition.Spec.Group, noxuDefinition.Spec.Versions[0].Name). DoRaw(context.TODO()) if err != nil { t.Fatal(err, string(result)) } obj, err := decodeYAML(result) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 02 19:34:41 UTC 2021 - 16.5K bytes - Viewed (0) -
tools/docker-builder/crane.go
for _, p := range plan { pb := filepath.Base(p) if pb == base { return absPath(p), nil } } // Next check for folder. This should probably be arbitrary depth // Example: plan=[certs], src=certs/foo.bar dir := filepath.Dir(src) for _, p := range plan { pb := filepath.Base(p) if pb == dir { return absPath(filepath.Join(p, base)), nil } }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jul 26 01:07:39 UTC 2023 - 6K bytes - Viewed (0) -
src/cmd/cgo/ast.go
} if cg != nil { if strings.ContainsAny(abspath, "\r\n") { // This should have been checked when the file path was first resolved, // but we double check here just to be sure. fatalf("internal error: ParseGo: abspath contains unexpected newline character: %q", abspath) } f.Preamble += fmt.Sprintf("#line %d %q\n", sourceLine(cg), abspath) f.Preamble += commentText(cg) + "\n"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 07 16:54:27 UTC 2023 - 14.3K bytes - Viewed (0) -
pkg/test/fakes/gce_metadata_server/Makefile
# See the License for the specific language governing permissions and # limitations under the License. .PHONY: build_and_push clean all MKFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST))) MD_PATH := $(dir $(MKFILE_PATH)) IMG ?= gcr.io/istio-testing/fake-gce-metadata # NOTE: TAG should be updated whenever changes are made in this directory
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Dec 04 22:47:52 UTC 2023 - 1.3K bytes - Viewed (0) -
src/path/filepath/path_test.go
t.Fatalf("%s: %s", root, err) } abspath, err := filepath.Abs("") if err != nil { t.Fatalf(`Abs("") error: %v`, err) } absinfo, err := os.Stat(abspath) if err != nil || !os.SameFile(absinfo, info) { t.Errorf(`Abs("")=%q, not the same file`, abspath) } if !filepath.IsAbs(abspath) { t.Errorf(`Abs("")=%q, not an absolute path`, abspath) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 22 16:38:19 UTC 2024 - 47.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/config.go
if decodedConfig.Plugins[i].Path == "" { continue } // we update relative file paths to absolute paths absPath, err := makeAbs(decodedConfig.Plugins[i].Path, baseDir) if err != nil { return nil, err } decodedConfig.Plugins[i].Path = absPath } return configProvider{ config: decodedConfig, }, nil } // we got an error where the decode wasn't related to a missing type
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jun 29 15:48:39 UTC 2023 - 5.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/config_test.go
Name: "ImagePolicyWebhook", Path: imagePolicyWebhookFile, }, { Name: "ResourceQuota", }, }, }, PluginNames: []string{}, }, "v1alpha1 configuration - abspath": { ConfigBody: `{ "apiVersion": "apiserver.k8s.io/v1alpha1", "kind": "AdmissionConfiguration", "plugins": [ {"name": "ImagePolicyWebhook", "path": "/tmp/image-policy-webhook.json"}, {"name": "ResourceQuota"}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jun 29 15:48:39 UTC 2023 - 8.8K bytes - Viewed (0)