stubs

package
v0.0.0-...-955c50f Latest Latest
Warning

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

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

Documentation

Index

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
	SharesCreds   bool
	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

Jump to

Keyboard shortcuts

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