Documentation ¶
Index ¶
- type MasterAuth
- func (ma *MasterAuth) CreateRDSToken(dbEndpoint, dbUser string, awsCreds *credentials.Credentials) (string, error)
- func (ma *MasterAuth) Get() string
- func (ma *MasterAuth) IsExpired() bool
- func (ma *MasterAuth) RetrieveToken(endpoint, user string) (string, error)
- func (ma *MasterAuth) STSCreds(roleARN string) (*credentials.Credentials, error)
- func (ma *MasterAuth) SessionCredentials() *credentials.Credentials
- func (ma *MasterAuth) Set(newToken string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MasterAuth ¶
func NewMasterAuth ¶
func NewMasterAuth() *MasterAuth
func (*MasterAuth) CreateRDSToken ¶
func (ma *MasterAuth) CreateRDSToken(dbEndpoint, dbUser string, awsCreds *credentials.Credentials) (string, error)
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
Click to show internal directories.
Click to hide internal directories.