Documentation ¶
Index ¶
- Variables
- type MockAWSClient
- type MockInput
- type MockOutput
- type MockProvider
- func (m MockProvider) ASG() awsapi.ASG
- func (m MockProvider) CloudFormation() awsapi.CloudFormation
- func (m MockProvider) CloudFormationDisableRollback() bool
- func (m MockProvider) CloudFormationRoleARN() string
- func (m MockProvider) CloudTrail() awsapi.CloudTrail
- func (m MockProvider) CloudWatchLogs() awsapi.CloudWatchLogs
- func (m MockProvider) ConfigProvider() client.ConfigProvider
- func (m MockProvider) EC2() awsapi.EC2
- func (m MockProvider) EKS() awsapi.EKS
- func (m *MockProvider) ELB() awsapi.ELB
- func (m *MockProvider) ELBV2() awsapi.ELBV2
- func (m MockProvider) IAM() awsapi.IAM
- func (m MockProvider) MockASG() *mocksv2.ASG
- func (m MockProvider) MockCloudFormation() *mocksv2.CloudFormation
- func (m MockProvider) MockCloudTrail() *mocksv2.CloudTrail
- func (m MockProvider) MockCloudWatchLogs() *mocksv2.CloudWatchLogs
- func (m MockProvider) MockConfigProvider() client.ConfigProvider
- func (m MockProvider) MockEC2() *mocksv2.EC2
- func (m MockProvider) MockEKS() *mocksv2.EKS
- func (m *MockProvider) MockELB() *mocksv2.ELB
- func (m *MockProvider) MockELBV2() *mocksv2.ELBV2
- func (m MockProvider) MockIAM() *mocksv2.IAM
- func (m MockProvider) MockOutposts() *mocksv2.Outposts
- func (m MockProvider) MockSSM() *mocksv2.SSM
- func (m MockProvider) MockSTS() *mocksv2.STS
- func (m MockProvider) MockSTSPresigner() *fakes.FakeSTSPresigner
- func (m MockProvider) Outposts() awsapi.Outposts
- func (m MockProvider) Profile() api.Profile
- func (m MockProvider) Region() string
- func (m MockProvider) SSM() awsapi.SSM
- func (m MockProvider) STS() awsapi.STS
- func (m MockProvider) STSPresigner() api.STSPresigner
- func (m MockProvider) Session() *session.Session
- func (m *MockProvider) SetRegion(r string)
- func (m *MockProvider) SetWaitTimeout(t time.Duration)
- func (m MockProvider) WaitTimeout() time.Duration
- type MockState
Constants ¶
This section is empty.
Variables ¶
var ProviderConfig = &api.ProviderConfig{ Region: api.DefaultRegion, Profile: api.Profile{ Name: "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() awsapi.ASG
ASG returns a representation of the ASG API
func (MockProvider) CloudFormation ¶
func (m MockProvider) CloudFormation() awsapi.CloudFormation
CloudFormation returns a representation of the CloudFormation v2 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) CloudTrail ¶
func (m MockProvider) CloudTrail() awsapi.CloudTrail
CloudTrail returns a representation of the CloudTrail API
func (MockProvider) CloudWatchLogs ¶ added in v0.73.0
func (m MockProvider) CloudWatchLogs() awsapi.CloudWatchLogs
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() awsapi.EC2
EC2 returns a representation of the EC2 API
func (MockProvider) EKS ¶
func (m MockProvider) EKS() awsapi.EKS
EKS returns a representation of the EKS API
func (*MockProvider) ELB ¶
func (m *MockProvider) ELB() awsapi.ELB
func (*MockProvider) ELBV2 ¶
func (m *MockProvider) ELBV2() awsapi.ELBV2
func (MockProvider) IAM ¶
func (m MockProvider) IAM() awsapi.IAM
IAM returns a representation of the IAM API
func (MockProvider) MockASG ¶ added in v0.45.0
func (m MockProvider) MockASG() *mocksv2.ASG
MockASG returns a mocked ASG API
func (MockProvider) MockCloudFormation ¶
func (m MockProvider) MockCloudFormation() *mocksv2.CloudFormation
MockCloudFormation returns a mocked CloudFormation v2 API
func (MockProvider) MockCloudTrail ¶
func (m MockProvider) MockCloudTrail() *mocksv2.CloudTrail
MockCloudTrail returns a mocked CloudTrail API
func (MockProvider) MockCloudWatchLogs ¶ added in v0.73.0
func (m MockProvider) MockCloudWatchLogs() *mocksv2.CloudWatchLogs
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() *mocksv2.EC2
MockEC2 returns a mocked EC2 API
func (MockProvider) MockEKS ¶
func (m MockProvider) MockEKS() *mocksv2.EKS
MockEKS returns a mocked EKS API
func (*MockProvider) MockELB ¶ added in v0.91.0
func (m *MockProvider) MockELB() *mocksv2.ELB
func (*MockProvider) MockELBV2 ¶ added in v0.91.0
func (m *MockProvider) MockELBV2() *mocksv2.ELBV2
func (MockProvider) MockIAM ¶
func (m MockProvider) MockIAM() *mocksv2.IAM
MockIAM returns a mocked IAM API
func (MockProvider) MockOutposts ¶ added in v0.112.0
func (m MockProvider) MockOutposts() *mocksv2.Outposts
MockOutposts returns a mocked Outposts API
func (MockProvider) MockSSM ¶
func (m MockProvider) MockSSM() *mocksv2.SSM
MockSSM returns a mocked SSM API
func (MockProvider) MockSTS ¶
func (m MockProvider) MockSTS() *mocksv2.STS
MockSTS returns a mocked STS v2 API
func (MockProvider) MockSTSPresigner ¶ added in v0.92.0
func (m MockProvider) MockSTSPresigner() *fakes.FakeSTSPresigner
MockSTSPresigner returns a mocked STS v2 API
func (MockProvider) Outposts ¶ added in v0.112.0
func (m MockProvider) Outposts() awsapi.Outposts
Outposts returns a representation of the Outposts API
func (MockProvider) Profile ¶
func (m MockProvider) Profile() api.Profile
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() awsapi.SSM
SSM returns a representation of the SSM API
func (MockProvider) STS ¶
func (m MockProvider) STS() awsapi.STS
STS returns a representation of the STS v2 API
func (MockProvider) STSPresigner ¶ added in v0.92.0
func (m MockProvider) STSPresigner() api.STSPresigner
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) SetWaitTimeout ¶ added in v0.137.0
func (m *MockProvider) SetWaitTimeout(t time.Duration)
func (MockProvider) WaitTimeout ¶
func (m MockProvider) WaitTimeout() time.Duration
WaitTimeout returns current timeout setting