Help us shape the future of Go! Take the 2026 Go Developer Survey

authbridge

package
v1.233.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewContextResolver added in v1.230.0

func NewContextResolver(resolve func(context.Context, string) (*schema.AuthContext, error)) store.AuthContextResolver

NewContextResolver adapts an invocation-scoped credential resolver for stores and secrets.

func NewResolvedContext added in v1.230.0

func NewResolvedContext(auth *schema.AuthContext) store.AuthContextResolver

NewResolvedContext exposes already-authenticated credentials without reauthenticating.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL