Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for opt (0.11 sec)

  1. internal/disk/type_windows.go

    	// Extract values safely
    	// BOOL WINAPI GetVolumeInformation(
    	// _In_opt_  LPCTSTR lpRootPathName,
    	// _Out_opt_ LPTSTR  lpVolumeNameBuffer,
    	// _In_      DWORD   nVolumeNameSize,
    	// _Out_opt_ LPDWORD lpVolumeSerialNumber,
    	// _Out_opt_ LPDWORD lpMaximumComponentLength,
    	// _Out_opt_ LPDWORD lpFileSystemFlags,
    	// _Out_opt_ LPTSTR  lpFileSystemNameBuffer,
    	// _In_      DWORD   nFileSystemNameSize
    	// );
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 2.2K bytes
    - Viewed (0)
  2. istioctl/pkg/writer/envoy/configdump/ecds_test.go

    	gotOut := &bytes.Buffer{}
    	cw := &ConfigWriter{Stdout: gotOut}
    	cd, _ := os.ReadFile("testdata/ecds/configdump.json")
    	cw.Prime(cd)
    	err := cw.PrintEcds("json")
    	assert.NoError(t, err)
    
    	// protojson opt out of whitespace randomization, see more details: https://github.com/golang/protobuf/issues/1082
    	var rm json.RawMessage = gotOut.Bytes()
    	jsonOutput, err := json.MarshalIndent(rm, "", "    ")
    	if err != nil {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Dec 13 01:08:07 GMT 2022
    - 1.9K bytes
    - Viewed (0)
  3. internal/config/identity/openid/provider/keycloak.go

    		p.realm = realm
    	}
    }
    
    // KeyCloak initializes a new keycloak provider
    func KeyCloak(opts ...Option) (Provider, error) {
    	p := &KeycloakProvider{}
    
    	for _, opt := range opts {
    		opt(p)
    	}
    
    	if p.adminURL == "" {
    		return nil, errors.New("Admin URL cannot be empty")
    	}
    
    	_, err := url.Parse(p.adminURL)
    	if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 29 01:27:09 GMT 2022
    - 4.6K bytes
    - Viewed (0)
  4. prepare_stmt.go

    func (db *PreparedStmtDB) BeginTx(ctx context.Context, opt *sql.TxOptions) (ConnPool, error) {
    	if beginner, ok := db.ConnPool.(TxBeginner); ok {
    		tx, err := beginner.BeginTx(ctx, opt)
    		return &PreparedStmtTX{PreparedStmtDB: db, Tx: tx}, err
    	}
    
    	beginner, ok := db.ConnPool.(ConnPoolBeginner)
    	if !ok {
    		return nil, ErrInvalidTransaction
    	}
    
    	connPool, err := beginner.BeginTx(ctx, opt)
    	if err != nil {
    		return nil, err
    	}
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Mar 28 08:47:39 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  5. internal/disk/stat_windows.go

    	lpTotalNumberOfBytes := int64(0)
    	lpTotalNumberOfFreeBytes := int64(0)
    
    	// Extract values safely
    	// BOOL WINAPI GetDiskFreeSpaceEx(
    	// _In_opt_  LPCTSTR         lpDirectoryName,
    	// _Out_opt_ PULARGE_INTEGER lpFreeBytesAvailable,
    	// _Out_opt_ PULARGE_INTEGER lpTotalNumberOfBytes,
    	// _Out_opt_ PULARGE_INTEGER lpTotalNumberOfFreeBytes
    	// );
    	_, _, _ = GetDiskFreeSpaceEx.Call(uintptr(unsafe.Pointer(syscall.StringToUTF16Ptr(path))),
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Feb 26 19:34:50 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  6. cni/pkg/constants/constants.go

    	LivenessEndpoint  = "/healthz"
    	ReadinessEndpoint = "/readyz"
    	ReadinessPort     = "8000"
    )
    
    // Exposed for testing constants
    var (
    	CNIBinDir          = "/opt/cni/bin"
    	HostCNIBinDir      = "/host/opt/cni/bin"
    	ServiceAccountPath = "/var/run/secrets/kubernetes.io/serviceaccount"
    	// Well-known subpath we will mount any needed host-mounts under,
    	// to preclude shadowing or breaking any pod-internal mounts
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  7. cni/pkg/util/podutil.go

    		// Neither namespace nor pod has ambient mode enabled
    		return false
    	}
    	if podHasSidecar(pod) {
    		// Ztunnel and sidecar for a single pod is currently not supported; opt out.
    		return false
    	}
    	if pod.GetLabels()[constants.DataplaneModeLabel] == constants.DataplaneModeNone {
    		// Pod explicitly asked to not have ambient redirection enabled
    		return false
    	}
    	return true
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri May 03 19:29:42 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  8. cni/pkg/nodeagent/informers.go

    		// Existing pods will be handled by the dataplane using `GetAmbientPods`,
    		// and the initial enqueueNamespace, and new pods will be handled by the CNI.
    
    	case controllers.EventUpdate:
    		// For update, we just need to handle opt outs
    		newPod := event.New.(*corev1.Pod)
    		oldPod := event.Old.(*corev1.Pod)
    		ns := s.namespaces.Get(newPod.Namespace, "")
    		if ns == nil {
    			return fmt.Errorf("failed to find namespace %v", ns)
    		}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri May 03 19:29:42 GMT 2024
    - 9.6K bytes
    - Viewed (0)
Back to top