mockprovider

package
v0.90.0-rc.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderConfig = &api.ProviderConfig{
	Region:      api.DefaultRegion,
	Profile:     "default",
	WaitTimeout: 1200000000000,
}

ProviderConfig holds current global config

Functions

This section is empty.

Types

type MockAWSClient

type MockAWSClient struct {
	*client.Client
}

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 MockInput

type MockInput struct{}

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

ASG returns a representation of the ASG API

func (MockProvider) CloudFormation

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

CloudTrail returns a representation of the CloudTrail API

func (MockProvider) CloudWatchLogs added in v0.73.0

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

type MockState

type MockState struct {
	State *string
}

Jump to

Keyboard shortcuts

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