managedidentity

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package managedidentity package

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthenticateResponse added in v0.26.0

type AuthenticateResponse struct {
	Env                       map[string]string
	HostCredentialFileMapping map[string]string
}

AuthenticateResponse contains the environment variables and host credential file mappings

type Authenticator

type Authenticator interface {
	Authenticate(
		ctx context.Context,
		managedIdentities []types.ManagedIdentity,
		credsRetriever func(ctx context.Context, managedIdentity *types.ManagedIdentity) ([]byte, error),
	) (*AuthenticateResponse, error)
	Close(ctx context.Context) error
}

Authenticator provides the cloud provider specific authentication logic

type MockAuthenticator added in v0.26.0

type MockAuthenticator struct {
	mock.Mock
}

MockAuthenticator is an autogenerated mock type for the Authenticator type

func NewMockAuthenticator added in v0.26.0

func NewMockAuthenticator(t mockConstructorTestingTNewMockAuthenticator) *MockAuthenticator

NewMockAuthenticator creates a new instance of MockAuthenticator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*MockAuthenticator) Authenticate added in v0.26.0

func (_m *MockAuthenticator) Authenticate(ctx context.Context, managedIdentities []types.ManagedIdentity, credsRetriever func(context.Context, *types.ManagedIdentity) ([]byte, error)) (*AuthenticateResponse, error)

Authenticate provides a mock function with given fields: ctx, managedIdentities, credsRetriever

func (*MockAuthenticator) Close added in v0.26.0

func (_m *MockAuthenticator) Close(ctx context.Context) error

Close provides a mock function with given fields: ctx

Directories

Path Synopsis
Package awsfederated package
Package awsfederated package
Package azurefederated package
Package azurefederated package
Package tharsisfederated package
Package tharsisfederated package

Jump to

Keyboard shortcuts

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