Documentation ¶
Index ¶
- Variables
- type IAgentIdentity
- func (_m *IAgentIdentity) AvailabilityZone() (string, error)
- func (_m *IAgentIdentity) AvailabilityZoneId() (string, error)
- func (_m *IAgentIdentity) Credentials() *credentials.Credentials
- func (_m *IAgentIdentity) GetServiceEndpoint(_a0 string) string
- func (_m *IAgentIdentity) IdentityType() string
- func (_m *IAgentIdentity) InstanceID() (string, error)
- func (_m *IAgentIdentity) InstanceType() (string, error)
- func (_m *IAgentIdentity) Region() (string, error)
- func (_m *IAgentIdentity) ShortInstanceID() (string, error)
- type IAgentIdentityInner
- func (_m *IAgentIdentityInner) AvailabilityZone() (string, error)
- func (_m *IAgentIdentityInner) AvailabilityZoneId() (string, error)
- func (_m *IAgentIdentityInner) Credentials() *credentials.Credentials
- func (_m *IAgentIdentityInner) IdentityType() string
- func (_m *IAgentIdentityInner) InstanceID() (string, error)
- func (_m *IAgentIdentityInner) InstanceType() (string, error)
- func (_m *IAgentIdentityInner) IsIdentityEnvironment() bool
- func (_m *IAgentIdentityInner) Region() (string, error)
- type IAgentIdentitySelectorMock
- type ICredentialRefresherAgentIdentity
- type IInnerIdentityGetter
- type IMetadataIdentity
- type Registrar
- type Retryer
Constants ¶
This section is empty.
Variables ¶
var ( MockAvailabilityZone = "us-east-1a" MockAvailabilityZoneId = "use1-az2" MockCredentials = credentialproviders.GetRemoteCreds() MockIdentityType = "EC2" MockInstanceID = "i-123123123" MockInstanceType = "someInstanceType" MockIsIdentityEnvironment = true MockRegion = "us-east-1" MockServiceDomain = "amazonaws.com" MockShortInstanceID = "i-123123123" )
Functions ¶
This section is empty.
Types ¶
type IAgentIdentity ¶
IAgentIdentity is an autogenerated mock type for the IAgentIdentity type
func NewDefaultMockAgentIdentity ¶
func NewDefaultMockAgentIdentity() *IAgentIdentity
func NewIAgentIdentity ¶
func NewIAgentIdentity(t testing.TB) *IAgentIdentity
NewIAgentIdentity creates a new instance of IAgentIdentity. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.
func NewMockAgentIdentity ¶
func NewMockAgentIdentity(instanceID, region, availabilityZone, instanceType, identityType string) *IAgentIdentity
func (*IAgentIdentity) AvailabilityZone ¶
func (_m *IAgentIdentity) AvailabilityZone() (string, error)
AvailabilityZone provides a mock function with given fields:
func (*IAgentIdentity) AvailabilityZoneId ¶
func (_m *IAgentIdentity) AvailabilityZoneId() (string, error)
AvailabilityZoneId provides a mock function with given fields:
func (*IAgentIdentity) Credentials ¶
func (_m *IAgentIdentity) Credentials() *credentials.Credentials
Credentials provides a mock function with given fields:
func (*IAgentIdentity) GetServiceEndpoint ¶
func (_m *IAgentIdentity) GetServiceEndpoint(_a0 string) string
GetServiceEndpoint provides a mock function with given fields: _a0
func (*IAgentIdentity) IdentityType ¶
func (_m *IAgentIdentity) IdentityType() string
IdentityType provides a mock function with given fields:
func (*IAgentIdentity) InstanceID ¶
func (_m *IAgentIdentity) InstanceID() (string, error)
InstanceID provides a mock function with given fields:
func (*IAgentIdentity) InstanceType ¶
func (_m *IAgentIdentity) InstanceType() (string, error)
InstanceType provides a mock function with given fields:
func (*IAgentIdentity) Region ¶
func (_m *IAgentIdentity) Region() (string, error)
Region provides a mock function with given fields:
func (*IAgentIdentity) ShortInstanceID ¶
func (_m *IAgentIdentity) ShortInstanceID() (string, error)
ShortInstanceID provides a mock function with given fields:
type IAgentIdentityInner ¶
IAgentIdentityInner is an autogenerated mock type for the IAgentIdentityInner type
func NewIAgentIdentityInner ¶
func NewIAgentIdentityInner(t testing.TB) *IAgentIdentityInner
NewIAgentIdentityInner creates a new instance of IAgentIdentityInner. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.
func (*IAgentIdentityInner) AvailabilityZone ¶
func (_m *IAgentIdentityInner) AvailabilityZone() (string, error)
AvailabilityZone provides a mock function with given fields:
func (*IAgentIdentityInner) AvailabilityZoneId ¶
func (_m *IAgentIdentityInner) AvailabilityZoneId() (string, error)
AvailabilityZoneId provides a mock function with given fields:
func (*IAgentIdentityInner) Credentials ¶
func (_m *IAgentIdentityInner) Credentials() *credentials.Credentials
Credentials provides a mock function with given fields:
func (*IAgentIdentityInner) IdentityType ¶
func (_m *IAgentIdentityInner) IdentityType() string
IdentityType provides a mock function with given fields:
func (*IAgentIdentityInner) InstanceID ¶
func (_m *IAgentIdentityInner) InstanceID() (string, error)
InstanceID provides a mock function with given fields:
func (*IAgentIdentityInner) InstanceType ¶
func (_m *IAgentIdentityInner) InstanceType() (string, error)
InstanceType provides a mock function with given fields:
func (*IAgentIdentityInner) IsIdentityEnvironment ¶
func (_m *IAgentIdentityInner) IsIdentityEnvironment() bool
IsIdentityEnvironment provides a mock function with given fields:
func (*IAgentIdentityInner) Region ¶
func (_m *IAgentIdentityInner) Region() (string, error)
Region provides a mock function with given fields:
type IAgentIdentitySelectorMock ¶
IAgentIdentitySelectorMock is an autogenerated mock type for the IAgentIdentitySelector type - to test
func (*IAgentIdentitySelectorMock) SelectAgentIdentity ¶
func (_m *IAgentIdentitySelectorMock) SelectAgentIdentity(_a0 []identity.IAgentIdentityInner, _a1 string) identity.IAgentIdentityInner
SelectAgentIdentity provides a mock function with given fields: _a0, _a1
type ICredentialRefresherAgentIdentity ¶
ICredentialRefresherAgentIdentity is an autogenerated mock type for the ICredentialRefresherAgentIdentity type
func NewICredentialRefresherAgentIdentity ¶
func NewICredentialRefresherAgentIdentity(t testing.TB) *ICredentialRefresherAgentIdentity
NewICredentialRefresherAgentIdentity creates a new instance of ICredentialRefresherAgentIdentity. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.
func (*ICredentialRefresherAgentIdentity) CredentialProvider ¶
func (_m *ICredentialRefresherAgentIdentity) CredentialProvider() credentialproviders.IRemoteProvider
CredentialProvider provides a mock function with given fields:
type IInnerIdentityGetter ¶
IInnerIdentityGetter is an autogenerated mock type for the IInnerIdentityGetter type
func NewIInnerIdentityGetter ¶
func NewIInnerIdentityGetter(t testing.TB) *IInnerIdentityGetter
NewIInnerIdentityGetter creates a new instance of IInnerIdentityGetter. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.
func (*IInnerIdentityGetter) GetInner ¶
func (_m *IInnerIdentityGetter) GetInner() identity.IAgentIdentityInner
GetInner provides a mock function with given fields:
type IMetadataIdentity ¶
IMetadataIdentity is an autogenerated mock type for the IMetadataIdentity type
func (*IMetadataIdentity) VpcPrimaryCIDRBlock ¶
func (_m *IMetadataIdentity) VpcPrimaryCIDRBlock() (map[string][]string, error)
VpcPrimaryCIDRBlock provides a mock function with given fields:
type Registrar ¶
Registrar is an autogenerated mock type for the Registrar type
func NewRegistrar ¶
func NewRegistrar(t mockConstructorTestingTNewRegistrar) *Registrar
NewRegistrar creates a new instance of Registrar. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type Retryer ¶
Retryer is an autogenerated mock type for the Retryer type
func NewRetryer ¶
NewRetryer creates a new instance of Retryer. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.
func (*Retryer) MaxRetries ¶
MaxRetries provides a mock function with given fields:
func (*Retryer) RetryRules ¶
RetryRules provides a mock function with given fields: _a0