rdsauth

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MasterAuth

type MasterAuth struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewMasterAuth

func NewMasterAuth() *MasterAuth

func (*MasterAuth) CreateRDSToken

func (ma *MasterAuth) CreateRDSToken(dbEndpoint, dbUser string, awsCreds *credentials.Credentials) (string, error)

func (*MasterAuth) Get

func (ma *MasterAuth) Get() string

Get gets new master token/password

func (*MasterAuth) IsExpired

func (ma *MasterAuth) IsExpired() bool

IsExpired checks if RDS auth toke expired

func (*MasterAuth) RetrieveToken

func (ma *MasterAuth) RetrieveToken(endpoint, user string) (string, error)

func (*MasterAuth) STSCreds

func (ma *MasterAuth) STSCreds(roleARN string) (*credentials.Credentials, error)

func (*MasterAuth) SessionCredentials

func (ma *MasterAuth) SessionCredentials() *credentials.Credentials

func (*MasterAuth) Set

func (ma *MasterAuth) Set(newToken string)

Set sets new master token/password

Jump to

Keyboard shortcuts

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