Documentation
¶
Overview ¶
Package authbridge provides an implementation of store.AuthContextResolver that bridges the store package with the auth system. This package exists as a sub-package of store to avoid circular dependencies: pkg/config imports pkg/store, pkg/auth imports pkg/config, but pkg/store never imports authbridge, so authbridge can safely import pkg/auth.
Index ¶
- type Resolver
- func (r *Resolver) ResolveAWSAuthContext(ctx context.Context, identityName string) (*store.AWSAuthConfig, error)
- func (r *Resolver) ResolveAzureAuthContext(ctx context.Context, identityName string) (*store.AzureAuthConfig, error)
- func (r *Resolver) ResolveGCPAuthContext(ctx context.Context, identityName string) (*store.GCPAuthConfig, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
Resolver implements store.AuthContextResolver by delegating to an AuthManager.
func NewResolver ¶
func NewResolver(authManager types.AuthManager, stackInfo *schema.ConfigAndStacksInfo) *Resolver
NewResolver creates a new Resolver that uses the provided AuthManager to resolve identity names to cloud-specific auth contexts.
func (*Resolver) ResolveAWSAuthContext ¶
func (r *Resolver) ResolveAWSAuthContext(ctx context.Context, identityName string) (*store.AWSAuthConfig, error)
ResolveAWSAuthContext authenticates the named identity and returns AWS credentials.
func (*Resolver) ResolveAzureAuthContext ¶
func (r *Resolver) ResolveAzureAuthContext(ctx context.Context, identityName string) (*store.AzureAuthConfig, error)
ResolveAzureAuthContext authenticates the named identity and returns Azure credentials.
func (*Resolver) ResolveGCPAuthContext ¶
func (r *Resolver) ResolveGCPAuthContext(ctx context.Context, identityName string) (*store.GCPAuthConfig, error)
ResolveGCPAuthContext authenticates the named identity and returns GCP credentials.