Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for KeyPath (0.19 sec)

  1. staging/src/k8s.io/apiserver/pkg/cel/common/equality_test.go

    	KeyPath []interface{}
    
    	// Root object to traverse from
    	RootObject    interface{}
    	RootOldObject interface{}
    }
    
    func (c TestCase) Run() error {
    	// Create the correlated object
    	correlatedObject := common.NewCorrelatedObject(c.RootObject, c.RootOldObject, c.Schema)
    
    	// Traverse the correlated object
    	var err error
    	for _, key := range c.KeyPath {
    		if correlatedObject == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 13 21:36:46 UTC 2023
    - 21.1K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/phases/upgrade/postupgrade_test.go

    	if err != nil {
    		t.Fatalf("Failed to create cert file %s: %v", certPath, err)
    	}
    	certFile.Close()
    
    	keyPath := filepath.Join(tmpdir, constants.APIServerKeyName)
    	keyFile, err := os.OpenFile(keyPath, os.O_CREATE|os.O_TRUNC|os.O_WRONLY, 0666)
    	if err != nil {
    		t.Fatalf("Failed to create key file %s: %v", keyPath, err)
    	}
    	keyFile.Close()
    
    	subDir := filepath.Join(tmpdir, "expired")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jan 15 11:40:04 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  3. pkg/kubelet/certificate/kubelet_test.go

    	}
    
    	certPath := filepath.Join(certDir, "kubelet.cert")
    	keyPath := filepath.Join(certDir, "kubelet.key")
    	if err := removeThenCreate(certPath, cert, os.FileMode(0644)); err != nil {
    		return "", "", err
    	}
    
    	if err := removeThenCreate(keyPath, key, os.FileMode(0600)); err != nil {
    		return "", "", err
    	}
    
    	return certPath, keyPath, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 06 03:07:40 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  4. cmd/iam-etcd-store.go

    	}
    	return err
    }
    
    func (ies *IAMEtcdStore) watch(ctx context.Context, keyPath string) <-chan iamWatchEvent {
    	ch := make(chan iamWatchEvent)
    
    	// go routine to read events from the etcd watch channel and send them
    	// down `ch`
    	go func() {
    		for {
    		outerLoop:
    			watchCh := ies.client.Watch(ctx,
    				keyPath, etcd.WithPrefix(), etcd.WithKeysOnly())
    
    			for {
    				select {
    				case <-ctx.Done():
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:38 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/util/pkiutil/pki_helpers_test.go

    }
    
    func TestPathsForCertAndKey(t *testing.T) {
    	crtPath, keyPath := PathsForCertAndKey("/foo", "bar")
    	expectedPath := filepath.FromSlash("/foo/bar.crt")
    	if crtPath != expectedPath {
    		t.Errorf("unexpected certificate path: %s", crtPath)
    	}
    	expectedPath = filepath.FromSlash("/foo/bar.key")
    	if keyPath != expectedPath {
    		t.Errorf("unexpected key path: %s", keyPath)
    	}
    }
    
    func TestPathForCert(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 31 21:49:21 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  6. security/pkg/nodeagent/cache/secretcache_test.go

    	testCases := map[string]struct {
    		certPath     string
    		keyPath      string
    		expectResult bool
    	}{
    		"cert not exist": {
    			certPath:     "./invalid-path/invalid-file",
    			keyPath:      "./testdata/cert-chain.pem",
    			expectResult: false,
    		},
    		"key not exist": {
    			certPath:     "./testdata/cert-chain.pem",
    			keyPath:      "./invalid-path/invalid-file",
    			expectResult: false,
    		},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 16 22:12:28 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  7. cmd/iam.go

    	usersPrefix := strings.HasPrefix(event.keyPath, iamConfigUsersPrefix)
    	groupsPrefix := strings.HasPrefix(event.keyPath, iamConfigGroupsPrefix)
    	stsPrefix := strings.HasPrefix(event.keyPath, iamConfigSTSPrefix)
    	svcPrefix := strings.HasPrefix(event.keyPath, iamConfigServiceAccountsPrefix)
    	policyPrefix := strings.HasPrefix(event.keyPath, iamConfigPoliciesPrefix)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:38 UTC 2024
    - 71.9K bytes
    - Viewed (0)
  8. security/pkg/nodeagent/cache/secretcache.go

    // Otherwise, return false.
    func (sc *SecretManagerClient) keyCertificateExist(certPath, keyPath string) bool {
    	b, err := os.ReadFile(certPath)
    	if err != nil || len(b) == 0 {
    		return false
    	}
    	b, err = os.ReadFile(keyPath)
    	if err != nil || len(b) == 0 {
    		return false
    	}
    
    	return true
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 04 08:29:46 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  9. internal/s3select/sql/parser.go

    }
    
    // TableExpression represents the FROM clause
    type TableExpression struct {
    	Table *JSONPath `parser:"@@"`
    	As    string    `parser:"( \"AS\"? @Ident )?"`
    }
    
    // JSONPathElement represents a keypath component
    type JSONPathElement struct {
    	Key            *ObjectKey `parser:"  @@"`               // ['name'] and .name forms
    	Index          *int       `parser:"| \"[\" @Int \"]\""` // [3] form
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  10. internal/s3select/sql/analysis.go

    	errFunctionNotImplemented = errors.New("Function is not yet implemented")
    	errUnexpectedInvalidNode  = errors.New("Unexpected node value")
    	errInvalidKeypath         = errors.New("A provided keypath is invalid")
    )
    
    // qProp contains analysis info about an SQL term.
    type qProp struct {
    	isAggregation, isRowFunc bool
    
    	err error
    }
    
    // `combine` combines a pair of `qProp`s, so that errors are
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Dec 23 07:19:11 UTC 2023
    - 8.5K bytes
    - Viewed (0)
Back to top