Documentation ¶
Index ¶
- Variables
- type MockAWSClient
- type MockInput
- type MockOutput
- type MockProvider
- func (m MockProvider) ASG() autoscalingiface.AutoScalingAPI
- func (m MockProvider) CloudFormation() cloudformationiface.CloudFormationAPI
- func (m MockProvider) CloudFormationDisableRollback() bool
- func (m MockProvider) CloudFormationRoleARN() string
- func (m MockProvider) CloudFormationV2() awsapi.CloudFormation
- func (m MockProvider) CloudTrail() cloudtrailiface.CloudTrailAPI
- func (m MockProvider) CloudWatchLogs() cloudwatchlogsiface.CloudWatchLogsAPI
- func (m MockProvider) ConfigProvider() client.ConfigProvider
- 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) MockASG() *mocks.AutoScalingAPI
- func (m MockProvider) MockCloudFormation() *mocks.CloudFormationAPI
- func (m MockProvider) MockCloudFormationV2() *mocksv2.CloudFormation
- func (m MockProvider) MockCloudTrail() *mocks.CloudTrailAPI
- func (m MockProvider) MockCloudWatchLogs() *mocks.CloudWatchLogsAPI
- func (m MockProvider) MockConfigProvider() client.ConfigProvider
- func (m MockProvider) MockEC2() *mocks.EC2API
- func (m MockProvider) MockEKS() *mocks.EKSAPI
- func (m MockProvider) MockIAM() *mocks.IAMAPI
- func (m MockProvider) MockSSM() *mocks.SSMAPI
- func (m MockProvider) MockSTS() *mocks.STSAPI
- func (m MockProvider) MockSTSV2() *mocksv2.STS
- func (m MockProvider) Profile() string
- func (m MockProvider) Region() string
- func (m MockProvider) SSM() ssmiface.SSMAPI
- func (m MockProvider) STS() stsiface.STSAPI
- func (m MockProvider) STSV2() awsapi.STS
- func (m MockProvider) Session() *session.Session
- func (m *MockProvider) SetRegion(r string)
- 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 ¶
This section is empty.
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) ASG ¶ added in v0.39.0
func (m MockProvider) ASG() autoscalingiface.AutoScalingAPI
ASG returns a representation of the ASG API
func (MockProvider) CloudFormation ¶
func (m MockProvider) CloudFormation() cloudformationiface.CloudFormationAPI
CloudFormation returns a representation of the CloudFormation API
func (MockProvider) CloudFormationDisableRollback ¶
func (m MockProvider) CloudFormationDisableRollback() bool
CloudFormationDisableRollback returns whether stacks should not rollback on failure
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) CloudFormationV2 ¶ added in v0.90.0
func (m MockProvider) CloudFormationV2() awsapi.CloudFormation
CloudFormationV2 returns a representation of the CloudFormation v2 API
func (MockProvider) CloudTrail ¶
func (m MockProvider) CloudTrail() cloudtrailiface.CloudTrailAPI
CloudTrail returns a representation of the CloudTrail API
func (MockProvider) CloudWatchLogs ¶ added in v0.73.0
func (m MockProvider) CloudWatchLogs() cloudwatchlogsiface.CloudWatchLogsAPI
CloudWatchLogs returns a representation of the CloudWatchLogs API
func (MockProvider) ConfigProvider ¶ added in v0.39.0
func (m MockProvider) ConfigProvider() client.ConfigProvider
ConfigProvider returns a representation of the ConfigProvider
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) MockASG ¶ added in v0.45.0
func (m MockProvider) MockASG() *mocks.AutoScalingAPI
MockASG returns a mocked ASG API
func (MockProvider) MockCloudFormation ¶
func (m MockProvider) MockCloudFormation() *mocks.CloudFormationAPI
MockCloudFormation returns a mocked CloudFormation API
func (MockProvider) MockCloudFormationV2 ¶ added in v0.90.0
func (m MockProvider) MockCloudFormationV2() *mocksv2.CloudFormation
MockCloudFormationV2 returns a mocked CloudFormation v2 API
func (MockProvider) MockCloudTrail ¶
func (m MockProvider) MockCloudTrail() *mocks.CloudTrailAPI
MockCloudTrail returns a mocked CloudTrail API
func (MockProvider) MockCloudWatchLogs ¶ added in v0.73.0
func (m MockProvider) MockCloudWatchLogs() *mocks.CloudWatchLogsAPI
MockCloudWatchLogs returns a mocked CloudWatchLogs API
func (MockProvider) MockConfigProvider ¶ added in v0.39.0
func (m MockProvider) MockConfigProvider() client.ConfigProvider
MockConfigProvider returns a mocked ConfigProvider
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) MockSSM ¶
func (m MockProvider) MockSSM() *mocks.SSMAPI
MockSSM returns a mocked SSM API
func (MockProvider) MockSTS ¶
func (m MockProvider) MockSTS() *mocks.STSAPI
MockSTS returns a mocked STS API
func (MockProvider) MockSTSV2 ¶ added in v0.90.0
func (m MockProvider) MockSTSV2() *mocksv2.STS
MockSTSV2 returns a mocked STS v2 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) SSM ¶
func (m MockProvider) SSM() ssmiface.SSMAPI
SSM returns a representation of the SSM API
func (MockProvider) STS ¶
func (m MockProvider) STS() stsiface.STSAPI
STS returns a representation of the STS API
func (MockProvider) STSV2 ¶ added in v0.90.0
func (m MockProvider) STSV2() awsapi.STS
STSV2 returns a representation of the STS v2 API
func (MockProvider) Session ¶ added in v0.45.0
func (m MockProvider) Session() *session.Session
func (*MockProvider) SetRegion ¶
func (m *MockProvider) SetRegion(r string)
SetRegion can be used to set the region of the provider
func (MockProvider) WaitTimeout ¶
func (m MockProvider) WaitTimeout() time.Duration
WaitTimeout returns current timeout setting