mockprovider

package
v0.0.0-...-4c17ca5 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2024 License: Apache-2.0 Imports: 15 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

func BuildNewMockRequestForMockOutput

func BuildNewMockRequestForMockOutput(m *MockAWSClient, in *MockInput) func([]request.Option) (*request.Request, error)

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) CloudFormation

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

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

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