Documentation ¶
Index ¶
- Variables
- func BuildNewMockRequestForMockOutput(m *MockAWSClient, in *MockInput) func([]request.Option) (*request.Request, error)
- type MockAWSClient
- type MockInput
- type MockOutput
- type MockProvider
- func (m MockProvider) CloudFormation() cloudformationiface.CloudFormationAPI
- func (m MockProvider) CloudFormationRoleARN() string
- func (m MockProvider) CloudTrail() cloudtrailiface.CloudTrailAPI
- func (m MockProvider) EC2() ec2iface.EC2API
- func (m MockProvider) EKS() eksiface.EKSAPI
- func (m MockProvider) ELB() elbiface.ELBAPI
- func (m MockProvider) ELBV2() elbv2iface.ELBV2API
- func (m MockProvider) IAM() iamiface.IAMAPI
- func (m MockProvider) MockCloudFormation() *mocks.CloudFormationAPI
- func (m MockProvider) MockCloudTrail() *mocks.CloudTrailAPI
- func (m MockProvider) MockEC2() *mocks.EC2API
- func (m MockProvider) MockEKS() *mocks.EKSAPI
- func (m MockProvider) MockIAM() *mocks.IAMAPI
- func (m MockProvider) MockSTS() *mocks.STSAPI
- func (m MockProvider) Profile() string
- func (m MockProvider) Region() string
- func (m MockProvider) STS() stsiface.STSAPI
- func (m MockProvider) WaitTimeout() time.Duration
- type MockState
Constants ¶
This section is empty.
Variables ¶
var ProviderConfig = &api.ProviderConfig{ Region: api.DefaultRegion, Profile: "default", WaitTimeout: 1200000000000, }
ProviderConfig holds current global config
Functions ¶
Types ¶
type MockAWSClient ¶
func NewMockAWSClient ¶
func NewMockAWSClient() *MockAWSClient
func (*MockAWSClient) MockRequestForGivenOutput ¶
func (m *MockAWSClient) MockRequestForGivenOutput(input, output interface{}) *request.Request
func (*MockAWSClient) MockRequestForMockOutput ¶
func (m *MockAWSClient) MockRequestForMockOutput(input *MockInput) (*request.Request, *MockOutput)
type MockOutput ¶
type MockOutput struct {
States []*MockState
}
type MockProvider ¶
type MockProvider struct { Client *MockAWSClient // contains filtered or unexported fields }
MockProvider stores the mocked APIs
func NewMockProvider ¶
func NewMockProvider() *MockProvider
NewMockProvider returns a new MockProvider
func (MockProvider) CloudFormation ¶
func (m MockProvider) CloudFormation() cloudformationiface.CloudFormationAPI
CloudFormation returns a representation of the CloudFormation API
func (MockProvider) CloudFormationRoleARN ¶
func (m MockProvider) CloudFormationRoleARN() string
CloudFormationRoleARN returns, if any, a service role used by CloudFormation to call AWS API on your behalf
func (MockProvider) CloudTrail ¶
func (m MockProvider) CloudTrail() cloudtrailiface.CloudTrailAPI
CloudTrail returns a representation of the CloudTrail API
func (MockProvider) EC2 ¶
func (m MockProvider) EC2() ec2iface.EC2API
EC2 returns a representation of the EC2 API
func (MockProvider) EKS ¶
func (m MockProvider) EKS() eksiface.EKSAPI
EKS returns a representation of the EKS API
func (MockProvider) ELB ¶
func (m MockProvider) ELB() elbiface.ELBAPI
ELB returns a representation of the ELB API
func (MockProvider) ELBV2 ¶
func (m MockProvider) ELBV2() elbv2iface.ELBV2API
ELBV2 returns a representation of the ELBV2 API
func (MockProvider) IAM ¶
func (m MockProvider) IAM() iamiface.IAMAPI
IAM returns a representation of the IAM API
func (MockProvider) MockCloudFormation ¶
func (m MockProvider) MockCloudFormation() *mocks.CloudFormationAPI
MockCloudFormation returns a mocked CloudFormation API
func (MockProvider) MockCloudTrail ¶
func (m MockProvider) MockCloudTrail() *mocks.CloudTrailAPI
MockCloudTrail returns a mocked CloudTrail API
func (MockProvider) MockEC2 ¶
func (m MockProvider) MockEC2() *mocks.EC2API
MockEC2 returns a mocked EC2 API
func (MockProvider) MockEKS ¶
func (m MockProvider) MockEKS() *mocks.EKSAPI
MockEKS returns a mocked EKS API
func (MockProvider) MockIAM ¶
func (m MockProvider) MockIAM() *mocks.IAMAPI
MockIAM returns a mocked IAM API
func (MockProvider) MockSTS ¶
func (m MockProvider) MockSTS() *mocks.STSAPI
MockSTS returns a mocked STS API
func (MockProvider) Profile ¶
func (m MockProvider) Profile() string
Profile returns current profile setting
func (MockProvider) Region ¶
func (m MockProvider) Region() string
Region returns current region setting
func (MockProvider) STS ¶
func (m MockProvider) STS() stsiface.STSAPI
STS returns a representation of the STS API
func (MockProvider) WaitTimeout ¶
func (m MockProvider) WaitTimeout() time.Duration
WaitTimeout returns current timeout setting