awssts

package
v0.0.0-...-4d68350 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfig = Config{
	TTL: duration.Duration(time.Hour),
}

Functions

func FindVirtualMFADevice

func FindVirtualMFADevice(iamsvc *iam.Client) (*iamtypes.VirtualMFADevice, error)

func GetVariables

func GetVariables(client *op.Client, cfg *Config) (provider.Variables, error)

func TOTPTokenProvider

func TOTPTokenProvider(secret string) func() (string, error)

Types

type Config

type Config struct {
	TTL             duration.Duration `yaml:"ttl"`
	RoleARN         string            `yaml:"role_arn"`
	AccessKeyID     op.Secret         `yaml:"access_key_id"`
	SecretAccessKey op.Secret         `yaml:"secret_access_key"`
	MultiFactorAuth MultiFactorAuth   `yaml:",inline"`
}

func (*Config) HasMultiFactorAuth

func (cfg *Config) HasMultiFactorAuth() bool

func (*Config) UnmarshalYAML

func (cfg *Config) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements the yaml.Unmarshaler interface.

func (*Config) Validate

func (cfg *Config) Validate() error

type MultiFactorAuth

type MultiFactorAuth struct {
	Token        op.Secret `mfa_token`
	SerialNumber string    `mfa_serial_number`
}

type OnePasswordProvider

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

func NewOnePasswordProvider

func NewOnePasswordProvider(client *op.Client, cfg *Config) *OnePasswordProvider

func (*OnePasswordProvider) Retrieve

Jump to

Keyboard shortcuts

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