aws_secret_gen

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HomeDirPath

func HomeDirPath() string

func WriteFile

func WriteFile(content string, path string) error

Types

type AWSCredentials

type AWSCredentials struct {
	AccessKeyID     string `toml:"access_key_id"`
	SecretAccessKey string `toml:"secret_access_key"`
	Region          string `toml:"region"`
	Profile         string `toml:"profile"`
}

type AWSSecretGen

type AWSSecretGen struct {
	ConfigPath string
	OutputPath string
	// contains filtered or unexported fields
}

func NewAWSSecretGen

func NewAWSSecretGen(configPath, outputPath string) *AWSSecretGen

func (*AWSSecretGen) AWSInit

func (asg *AWSSecretGen) AWSInit() error

func (*AWSSecretGen) AWSLogin

func (asg *AWSSecretGen) AWSLogin(awsCredentials AWSCredentials) error

func (*AWSSecretGen) Generate

func (asg *AWSSecretGen) Generate() error

func (*AWSSecretGen) GetSecretValue

func (asg *AWSSecretGen) GetSecretValue(secretName string) (string, error)

func (*AWSSecretGen) InitSecretsManager

func (asg *AWSSecretGen) InitSecretsManager() error

func (*AWSSecretGen) LoadAWSCredentialsByFile

func (asg *AWSSecretGen) LoadAWSCredentialsByFile(awsCredentials *AWSCredentials) error

func (*AWSSecretGen) LoadAWSCredentialsByUser

func (asg *AWSSecretGen) LoadAWSCredentialsByUser(awsCredentials *AWSCredentials) error

func (*AWSSecretGen) SaveAWSCredentials

func (asg *AWSSecretGen) SaveAWSCredentials(awsCredentials *AWSCredentials) error

Jump to

Keyboard shortcuts

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