Documentation ¶
Index ¶
Constants ¶
View Source
const ( HttpDefaultTimeout = 10 * time.Second AwsIamPropagationImpediment = 20 * time.Second )
Variables ¶
This section is empty.
Functions ¶
func ConvertCredentials ¶
func ConvertCredentials(dynamicCredentials Credentials) credentials.Value
Types ¶
type Credentials ¶
type VaultCredentialProvider ¶
type VaultCredentialProvider struct {
// contains filtered or unexported fields
}
func NewVaultCredentialProvider ¶
func NewVaultCredentialProvider(conf *conf.VaultConfig) (*VaultCredentialProvider, error)
func (*VaultCredentialProvider) IsExpired ¶
func (m *VaultCredentialProvider) IsExpired() bool
func (*VaultCredentialProvider) LookupToken ¶
func (m *VaultCredentialProvider) LookupToken() error
func (*VaultCredentialProvider) Retrieve ¶
func (m *VaultCredentialProvider) Retrieve() (credentials.Value, error)
type VaultCredentialResponse ¶
type VaultCredentialResponse struct { Data Credentials `json:"data,omitempty"` Auth AuthReply `json:"auth,omitempty"` Renewable bool `json:"renewable"` LeaseDuration int `json:"lease_duration"` Warnings []string `json:"warnings"` RequestId string `json:"request_id"` LeaseId string `json:"lease_id"` }
Click to show internal directories.
Click to hide internal directories.