util

package
v0.1.74 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: Apache-2.0 Imports: 25 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsErrorRetryable

func IsErrorRetryable(err error) bool

func NewConfig

func NewConfig() *aws.Config

NewConfig creates a new config.

func NewConfigV2 added in v0.1.74

func NewConfigV2() func() awsv2.Retryer

NewConfigV2 creates a v2 retryer function with the same retry configuration as NewConfig

func NewRoute53ConfigV2 added in v0.1.74

func NewRoute53ConfigV2() func() awsv2.Retryer

NewRoute53ConfigV2 creates a v2 retryer with more conservative retry timing for Route53.

func NewSTSSession added in v0.1.32

func NewSTSSession(agent, rolenArn, region string, assumeRoleCreds *credentials.Credentials) (*session.Session, error)

func NewSTSSessionV2 added in v0.1.74

func NewSTSSessionV2(ctx context.Context, agent, roleArn, region string, assumeRoleCreds *awsv2.Credentials) (*awsv2.Config, error)

func NewSession

func NewSession(agent, credentialsFile, credKey, credSecretKey, region string) *session.Session

func NewSessionV2 added in v0.1.74

func NewSessionV2(ctx context.Context, agent, credentialsFile, credKey, credSecretKey, region string) *awsv2.Config

func ParseSTSCredentialsFile added in v0.1.32

func ParseSTSCredentialsFile(credentialsFile string) (*credentials.Credentials, error)

func ParseSTSCredentialsFileV2 added in v0.1.74

func ParseSTSCredentialsFileV2(credentialsFile string) (*awsv2.Credentials, error)

ParseSTSCredentialsFileV2 parses STS credentials file and returns v2 credentials

func ValidateVPCCIDR added in v0.1.50

func ValidateVPCCIDR(in string) error

Types

type AWSCredentialsOptions added in v0.1.32

type AWSCredentialsOptions struct {
	AWSCredentialsFile string

	RoleArn            string
	STSCredentialsFile string
}

func (*AWSCredentialsOptions) BindFlags added in v0.1.32

func (opts *AWSCredentialsOptions) BindFlags(flags *pflag.FlagSet)

func (*AWSCredentialsOptions) BindProductFlags added in v0.1.32

func (opts *AWSCredentialsOptions) BindProductFlags(flags *pflag.FlagSet)

func (*AWSCredentialsOptions) BindVPCOwnerFlags added in v0.1.49

func (opts *AWSCredentialsOptions) BindVPCOwnerFlags(flags *pflag.FlagSet)

func (*AWSCredentialsOptions) GetSession added in v0.1.32

func (opts *AWSCredentialsOptions) GetSession(agent string, secretData *util.CredentialsSecretData, region string) (*session.Session, error)

func (*AWSCredentialsOptions) GetSessionV2 added in v0.1.74

func (opts *AWSCredentialsOptions) GetSessionV2(ctx context.Context, agent string, secretData *util.CredentialsSecretData, region string) (*awsv2.Config, error)

func (*AWSCredentialsOptions) Validate added in v0.1.32

func (opts *AWSCredentialsOptions) Validate() error

type Credentials added in v0.1.32

type Credentials struct {
	AccessKeyId     string `json:"AccessKeyId"`
	SecretAccessKey string `json:"SecretAccessKey"`
	SessionToken    string `json:"SessionToken"`
	Expiration      string `json:"Expiration"`
}

type STSCreds added in v0.1.38

type STSCreds struct {
	Credentials Credentials `json:"Credentials"`
}

Jump to

Keyboard shortcuts

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