repos

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CustomStdinTokenProvider added in v0.11.1

func CustomStdinTokenProvider() (string, error)

Types

type AwsStsRepository

type AwsStsRepository struct{}

AwsStsRepository handles setting up an AWS Session

func NewAwsStsRepository

func NewAwsStsRepository() *AwsStsRepository

func (AwsStsRepository) ConfigureSession

func (repo AwsStsRepository) ConfigureSession(profile string) (*types.AwsEnvConfig, error)

Configure Session will setup an AWS Session and return the needed values for the environment variables

func (AwsStsRepository) SetAwsEnvs

func (repo AwsStsRepository) SetAwsEnvs(cfg *types.AwsEnvConfig)

type AwsStsRepositoryIfc

type AwsStsRepositoryIfc interface {
	ConfigureSession(profile string) (*types.AwsEnvConfig, error)
	SetAwsEnvs(*types.AwsEnvConfig)
}

type BiomeFileParser

type BiomeFileParser struct{}

func NewBiomeFileParser

func NewBiomeFileParser() *BiomeFileParser

func (BiomeFileParser) FindBiome

func (parser BiomeFileParser) FindBiome(biomeName string, searchFiles []string) (*types.BiomeConfig, error)

type BiomeFileParserIfc

type BiomeFileParserIfc interface {
	FindBiome(biomeName string, searchFiles []string) (*types.BiomeConfig, error)
}

type DragomanRepo added in v0.5.0

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

DragomanRepo handles decryption via dragoman

func NewDragomanRepo added in v0.5.0

func NewDragomanRepo() (*DragomanRepo, error)

NewDragomanRepo is the builder function for DragomanRepo

func (DragomanRepo) Decrypt added in v0.5.0

func (r DragomanRepo) Decrypt(val string) (string, error)

type DragomanRepoIfc added in v0.5.0

type DragomanRepoIfc interface {
	Decrypt(string) (string, error)
}

The interface for the Dragoman Repository

type MockAwsStsRepository

type MockAwsStsRepository struct {
	mock.Mock
}

func (MockAwsStsRepository) ConfigureSession

func (m MockAwsStsRepository) ConfigureSession(profile string) (*types.AwsEnvConfig, error)

func (MockAwsStsRepository) SetAwsEnvs

func (m MockAwsStsRepository) SetAwsEnvs(cfg *types.AwsEnvConfig)

type MockBiomeFileParser

type MockBiomeFileParser struct {
	mock.Mock
}

func (MockBiomeFileParser) FindBiome

func (m MockBiomeFileParser) FindBiome(biomeName string, searchFiles []string) (*types.BiomeConfig, error)

type SecretsManager

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

The Secrets Manager Repository for proxying requests to secrets manager

func NewSecretsManagerRepo

func NewSecretsManagerRepo() (*SecretsManager, error)

NewSecretsManagerRepo builds the SecretsManagerRepository and its dependencies

func (SecretsManager) GetSecretString

func (smrepo SecretsManager) GetSecretString(arn string) (string, error)

GetSecretString will pull the secret from Secrets Manager and return the string value

type SecretsManagerIfc

type SecretsManagerIfc interface {
	GetSecretString(string) (string, error)
}

The interface for the Secrets Manager Repository

Jump to

Keyboard shortcuts

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