Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for CreateGCEPlugin (0.2 sec)

  1. security/pkg/credentialfetcher/fetcher.go

    )
    
    func NewCredFetcher(credtype, trustdomain, jwtPath, identityProvider string) (security.CredFetcher, error) {
    	switch credtype {
    	case security.GCE:
    		return plugin.CreateGCEPlugin(trustdomain, jwtPath, identityProvider), nil
    	case security.JWT, "":
    		// If unset, also default to JWT for backwards compatibility
    		if jwtPath == "" {
    			return nil, nil // no cred fetcher - using certificates only
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Oct 07 22:21:41 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  2. security/pkg/credentialfetcher/plugin/gce.go

    	tokenCache     string
    	// mutex lock is required to avoid race condition when updating token file and token cache.
    	tokenMutex sync.RWMutex
    }
    
    // CreateGCEPlugin creates a Google credential fetcher plugin. Return the pointer to the created plugin.
    func CreateGCEPlugin(audience, jwtPath, identityProvider string) *GCEPlugin {
    	p := &GCEPlugin{
    		aud:              audience,
    		jwtPath:          jwtPath,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 13:56:46 UTC 2024
    - 4.7K bytes
    - Viewed (0)
Back to top