authbridge

package
v1.208.0-test.16 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: Apache-2.0 Imports: 7 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

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.

Jump to

Keyboard shortcuts

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