- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 32 for errPermission (0.24 sec)
-
src/syscall/syscall_plan9.go
// NewError converts s to an ErrorString, which satisfies the Error interface. func NewError(s string) error { return ErrorString(s) } func (e ErrorString) Is(target error) bool { switch target { case oserror.ErrPermission: return checkErrMessageContent(e, "permission denied") case oserror.ErrExist: return checkErrMessageContent(e, "exists", "is a directory") case oserror.ErrNotExist:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:03:59 UTC 2024 - 9.4K bytes - Viewed (0) -
pkg/kubelet/userns/userns_manager_test.go
} }) } } type failingUserNsPodsManager struct { testUserNsPodsManager } func (m *failingUserNsPodsManager) ListPodsFromDisk() ([]types.UID, error) { return nil, os.ErrPermission } func TestMakeUserNsManagerFailsListPod(t *testing.T) { featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, pkgfeatures.UserNamespacesSupport, true)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 25 14:24:16 UTC 2024 - 14.6K bytes - Viewed (0) -
src/net/http/fs.go
func mapOpenError(originalErr error, name string, sep rune, stat func(string) (fs.FileInfo, error)) error { if errors.Is(originalErr, fs.ErrNotExist) || errors.Is(originalErr, fs.ErrPermission) { return originalErr } parts := strings.Split(name, string(sep)) for i := range parts { if parts[i] == "" { continue } fi, err := stat(strings.Join(parts[:i+1], string(sep)))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 09 17:06:47 UTC 2024 - 31.1K bytes - Viewed (0) -
src/net/conf.go
// than fallbackOrder to use the Go resolver with that order. dnsConf = getSystemDNSConfig() if canUseCgo && dnsConf.err != nil && !errors.Is(dnsConf.err, fs.ErrNotExist) && !errors.Is(dnsConf.err, fs.ErrPermission) { // We can't read the resolv.conf file, so use cgo if we can. return hostLookupCgo, dnsConf } if canUseCgo && dnsConf.unknownOpt { // We didn't recognize something in resolv.conf,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 18 03:13:26 UTC 2024 - 15.5K bytes - Viewed (0) -
src/syscall/syscall_unix.go
s := errors[e] if s != "" { return s } } return "errno " + itoa.Itoa(int(e)) } func (e Errno) Is(target error) bool { switch target { case oserror.ErrPermission: return e == EACCES || e == EPERM case oserror.ErrExist: return e == EEXIST || e == ENOTEMPTY case oserror.ErrNotExist: return e == ENOENT case errorspkg.ErrUnsupported:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 19 16:19:26 UTC 2024 - 12.2K bytes - Viewed (0) -
src/syscall/exec_linux_test.go
} // Need an ability to create a sub-cgroup. subCgroup, err := os.MkdirTemp(prefix+string(bytes.TrimSpace(cg)), "subcg-") if err != nil { // ErrPermission or EROFS (#57262) when running in an unprivileged container. // ErrNotExist when cgroupfs is not mounted in chroot/schroot. if os.IsNotExist(err) || testenv.SyscallIsNotSupported(err) { t.Skipf("skipping: %v", err)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 07:45:37 UTC 2024 - 20.6K bytes - Viewed (0) -
src/net/http/fs_test.go
func (issue12991FS) Open(string) (File, error) { return issue12991File{}, nil } type issue12991File struct{ File } func (issue12991File) Stat() (fs.FileInfo, error) { return nil, fs.ErrPermission } func (issue12991File) Close() error { return nil } func TestFileServerErrorMessages(t *testing.T) { run(t, testFileServerErrorMessages) } func testFileServerErrorMessages(t *testing.T, mode testMode) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 23:39:44 UTC 2024 - 49.9K bytes - Viewed (0) -
cmd/common-main.go
err = KMS.CreateKey(GlobalContext, &kms.CreateKeyRequest{Name: KMS.DefaultKey}) } if err != nil && !errors.Is(err, kms.ErrKeyExists) && !errors.Is(err, kms.ErrPermission) { logger.Fatal(err, "Failed to connect to KMS") } GlobalKMS = KMS } func getTLSConfig() (x509Certs []*x509.Certificate, manager *certs.Manager, secureConn bool, err error) {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu May 30 11:58:12 UTC 2024 - 31.5K bytes - Viewed (0) -
src/syscall/syscall_windows.go
_ERROR_NOT_SUPPORTED = Errno(50) _ERROR_BAD_NETPATH = Errno(53) _ERROR_CALL_NOT_IMPLEMENTED = Errno(120) ) func (e Errno) Is(target error) bool { switch target { case oserror.ErrPermission: return e == ERROR_ACCESS_DENIED || e == EACCES || e == EPERM case oserror.ErrExist: return e == ERROR_ALREADY_EXISTS || e == ERROR_DIR_NOT_EMPTY || e == ERROR_FILE_EXISTS ||
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 21 11:49:46 UTC 2024 - 52.7K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"(FileMode).Type", Method, 16}, {"DirEntry", Type, 16}, {"ErrClosed", Var, 16}, {"ErrExist", Var, 16}, {"ErrInvalid", Var, 16}, {"ErrNotExist", Var, 16}, {"ErrPermission", Var, 16}, {"FS", Type, 16}, {"File", Type, 16}, {"FileInfo", Type, 16}, {"FileInfoToDirEntry", Func, 17}, {"FileMode", Type, 16}, {"FormatDirEntry", Func, 21},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0)