tharsisfederated

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package tharsisfederated package

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authenticator

type Authenticator struct {
	// contains filtered or unexported fields
}

Authenticator supports Tharsis Federation

func New

func New(client jobclient.Client, workspaceDir string, jobLogger joblogger.Logger) (*Authenticator, error)

New creates a new instance of Authenticator

func (*Authenticator) Authenticate

func (a *Authenticator) Authenticate(
	ctx context.Context,
	managedIdentities []types.ManagedIdentity,
	credsRetriever func(ctx context.Context, managedIdentity *types.ManagedIdentity) ([]byte, error),
) (*managedidentity.AuthenticateResponse, error)

Authenticate configures the environment with the identity information used by the Tharsis terraform provider

func (*Authenticator) Close

func (a *Authenticator) Close(_ context.Context) error

Close cleans up any open resources

Jump to

Keyboard shortcuts

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