Documentation ¶
Index ¶
- type ProviderStub
- func (p *ProviderStub) ExpiresAt() time.Time
- func (p *ProviderStub) GetInnerProvider() ec2roleprovider.IInnerProvider
- func (p *ProviderStub) IsExpired() bool
- func (p *ProviderStub) RemoteRetrieve(ctx context.Context) (credentials.Value, error)
- func (p *ProviderStub) Retrieve() (credentials.Value, error)
- func (p *ProviderStub) RetrieveWithContext(ctx context.Context) (credentials.Value, error)
- func (p *ProviderStub) SetExpiration(expiration time.Time, window time.Duration)
- func (p *ProviderStub) ShareFile() string
- func (p *ProviderStub) ShareProfile() string
- func (p *ProviderStub) SharesCredentials() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProviderStub ¶
type ProviderStub struct { ProviderName string Profile string File string InnerProvider ec2roleprovider.IInnerProvider Expiry time.Time }
func (*ProviderStub) ExpiresAt ¶
func (p *ProviderStub) ExpiresAt() time.Time
func (*ProviderStub) GetInnerProvider ¶
func (p *ProviderStub) GetInnerProvider() ec2roleprovider.IInnerProvider
func (*ProviderStub) IsExpired ¶
func (p *ProviderStub) IsExpired() bool
func (*ProviderStub) RemoteRetrieve ¶
func (p *ProviderStub) RemoteRetrieve(ctx context.Context) (credentials.Value, error)
func (*ProviderStub) Retrieve ¶
func (p *ProviderStub) Retrieve() (credentials.Value, error)
func (*ProviderStub) RetrieveWithContext ¶
func (p *ProviderStub) RetrieveWithContext(ctx context.Context) (credentials.Value, error)
func (*ProviderStub) SetExpiration ¶
func (p *ProviderStub) SetExpiration(expiration time.Time, window time.Duration)
func (*ProviderStub) ShareFile ¶
func (p *ProviderStub) ShareFile() string
func (*ProviderStub) ShareProfile ¶
func (p *ProviderStub) ShareProfile() string
func (*ProviderStub) SharesCredentials ¶
func (p *ProviderStub) SharesCredentials() bool
Click to show internal directories.
Click to hide internal directories.