mocks

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: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
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

type IAgentIdentity struct {
	mock.Mock
}

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

type IAgentIdentityInner struct {
	mock.Mock
}

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

type IAgentIdentitySelectorMock struct {
	mock.Mock
}

IAgentIdentitySelectorMock is an autogenerated mock type for the IAgentIdentitySelector type - to test

func (*IAgentIdentitySelectorMock) SelectAgentIdentity

SelectAgentIdentity provides a mock function with given fields: _a0, _a1

type ICredentialRefresherAgentIdentity

type ICredentialRefresherAgentIdentity struct {
	mock.Mock
}

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

CredentialProvider provides a mock function with given fields:

type IInnerIdentityGetter

type IInnerIdentityGetter struct {
	mock.Mock
}

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

GetInner provides a mock function with given fields:

type IMetadataIdentity

type IMetadataIdentity struct {
	mock.Mock
}

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

type Registrar struct {
	mock.Mock
}

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.

func (*Registrar) Register

func (_m *Registrar) Register(_a0 context.Context) error

Register provides a mock function with given fields: _a0

type Retryer

type Retryer struct {
	mock.Mock
}

Retryer is an autogenerated mock type for the Retryer type

func NewRetryer

func NewRetryer(t testing.TB) *Retryer

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

func (_m *Retryer) MaxRetries() int

MaxRetries provides a mock function with given fields:

func (*Retryer) RetryRules

func (_m *Retryer) RetryRules(_a0 *request.Request) time.Duration

RetryRules provides a mock function with given fields: _a0

func (*Retryer) ShouldRetry

func (_m *Retryer) ShouldRetry(_a0 *request.Request) bool

ShouldRetry provides a mock function with given fields: _a0

Jump to

Keyboard shortcuts

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