Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 120 for getUid (0.12 sec)

  1. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/controller_ref.go

    func IsControlledBy(obj Object, owner Object) bool {
    	ref := GetControllerOfNoCopy(obj)
    	if ref == nil {
    		return false
    	}
    	return ref.UID == owner.GetUID()
    }
    
    // GetControllerOf returns a pointer to a copy of the controllerRef if controllee has a controller
    func GetControllerOf(controllee Object) *OwnerReference {
    	ref := GetControllerOfNoCopy(controllee)
    	if ref == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 09 05:14:33 UTC 2024
    - 2K bytes
    - Viewed (0)
  2. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/diagnostics/DaemonStartupInfo.java

            this.uid = uid;
            this.address = address;
            this.diagnostics = diagnostics;
        }
    
        public String getUid() {
            return uid;
        }
    
        public Address getAddress() {
            return address;
        }
    
        public @Nullable Long getPid() {
            return diagnostics.getPid();
        }
    
        /**
         * @return the diagnostics
         */
        public DaemonDiagnostics getDiagnostics() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 10:50:51 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  3. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/context/DaemonContext.java

     * @see DaemonCompatibilitySpec
     * @see DaemonRequestContext
     */
    @ServiceScope(Scope.Global.class)
    public interface DaemonContext {
    
        /**
         * The unique identifier for this daemon.
         */
        String getUid();
    
        /**
         * The JAVA_HOME in use, as the canonical file.
         */
        File getJavaHome();
    
        JavaLanguageVersion getJavaVersion();
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 05:33:15 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  4. src/os/read_test.go

    		t.Fatalf("ReadFile %s: %v", f.Name(), err)
    	}
    
    	if string(data) != msg {
    		t.Fatalf("ReadFile: wrong data:\nhave %q\nwant %q", string(data), msg)
    	}
    }
    
    func TestReadOnlyWriteFile(t *testing.T) {
    	if Getuid() == 0 {
    		t.Skipf("Root can write to read-only files anyway, so skip the read-only test.")
    	}
    	if runtime.GOOS == "wasip1" {
    		t.Skip("no support for file permissions on " + runtime.GOOS)
    	}
    	t.Parallel()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 02:36:46 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  5. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/context/DefaultDaemonContext.java

                uid, javaHome, javaVersion, daemonRegistryDir, pid, idleTimeout, priority, applyInstrumentationAgent, nativeServicesMode, Joiner.on(',').join(daemonOpts));
        }
    
        @Override
        public String getUid() {
            return uid;
        }
    
        @Override
        public File getJavaHome() {
            return javaHome;
        }
    
        @Override
        public JavaLanguageVersion getJavaVersion() {
            return javaVersion;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 05:16:16 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  6. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/server/DaemonServices.java

            LOGGER.debug("Creating daemon context with opts: {}", configuration.getJvmOptions());
            return new DefaultDaemonContext(configuration.getUid(),
                canonicalize(Jvm.current().getJavaHome()),
                JavaLanguageVersion.current(),
                configuration.getBaseDir(),
                processEnvironment.maybeGetPid(),
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  7. src/os/user/cgo_lookup_unix.go

    package user
    
    import (
    	"fmt"
    	"runtime"
    	"strconv"
    	"strings"
    	"syscall"
    	"unsafe"
    )
    
    func current() (*User, error) {
    	return lookupUnixUid(syscall.Getuid())
    }
    
    func lookupUser(username string) (*User, error) {
    	var pwd _C_struct_passwd
    	var found bool
    	nameC := make([]byte, len(username)+1)
    	copy(nameC, username)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:08:14 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  8. src/vendor/golang.org/x/net/nettest/nettest.go

    			return false
    		}
    	case "ip", "ip4", "ip6":
    		switch runtime.GOOS {
    		case "fuchsia", "hurd", "js", "nacl", "plan9", "wasip1":
    			return false
    		default:
    			if os.Getuid() != 0 {
    				return false
    			}
    		}
    	case "unix", "unixgram":
    		switch runtime.GOOS {
    		case "android", "fuchsia", "hurd", "ios", "js", "nacl", "plan9", "wasip1", "windows":
    			return false
    		case "aix":
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  9. maven-core/src/test/java/org/apache/maven/lifecycle/DefaultLifecyclesTest.java

            assertThat(dl.getLifeCycles().get(0).getId(), is("clean"));
            assertThat(dl.getLifeCycles().get(1).getId(), is("default"));
            assertThat(dl.getLifeCycles().get(2).getId(), is("site"));
            assertThat(dl.getLifeCycles().get(3).getId(), is("wrapper"));
            assertThat(dl.getLifeCycles().get(4).getId(), is("etl"));
        }
    
        private Lifecycle getLifeCycleById(String id) {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed May 22 13:45:13 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  10. platforms/extensibility/plugin-use/src/main/java/org/gradle/plugin/use/resolve/internal/ArtifactRepositoriesPluginResolver.java

                PluginCoordinates altCoords = pluginRequest.getAlternativeCoordinates().orElse(null);
                if (altCoords != null && pluginManager.hasPlugin(altCoords.getId().getId())) {
                    return;
                }
    
                pluginManager.apply(pluginRequest.getId().getId());
            }
        }
    
        private PluginResolutionResult handleNotFound(String message) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 08 12:20:28 UTC 2024
    - 8.6K bytes
    - Viewed (0)
Back to top