ecs

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2020 License: Apache-2.0 Imports: 80 Imported by: 0

Documentation

Overview

Package ecs is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API added in v0.1.21

type API interface {
	CheckRequirements(ctx context.Context, region string) error
	ClusterExists(ctx context.Context, name string) (bool, error)
	CreateCluster(ctx context.Context, name string) (string, error)
	CheckVPC(ctx context.Context, vpcID string) error
	GetDefaultVPC(ctx context.Context) (string, error)
	GetSubNets(ctx context.Context, vpcID string) ([]string, error)
	GetRoleArn(ctx context.Context, name string) (string, error)
	StackExists(ctx context.Context, name string) (bool, error)
	CreateStack(ctx context.Context, name string, template []byte) error
	CreateChangeSet(ctx context.Context, name string, template []byte) (string, error)
	UpdateStack(ctx context.Context, changeset string) error
	WaitStackComplete(ctx context.Context, name string, operation int) error
	GetStackID(ctx context.Context, name string) (string, error)
	ListStacks(ctx context.Context, name string) ([]compose.Stack, error)
	GetStackClusterID(ctx context.Context, stack string) (string, error)
	GetServiceTaskDefinition(ctx context.Context, cluster string, serviceArns []string) (map[string]string, error)
	ListStackServices(ctx context.Context, stack string) ([]string, error)
	GetServiceTasks(ctx context.Context, cluster string, service string, stopped bool) ([]*ecs.Task, error)
	GetTaskStoppedReason(ctx context.Context, cluster string, taskArn string) (string, error)
	DescribeStackEvents(ctx context.Context, stackID string) ([]*cloudformation.StackEvent, error)
	ListStackParameters(ctx context.Context, name string) (map[string]string, error)
	ListStackResources(ctx context.Context, name string) (stackResources, error)
	DeleteStack(ctx context.Context, name string) error
	CreateSecret(ctx context.Context, secret secrets.Secret) (string, error)
	InspectSecret(ctx context.Context, id string) (secrets.Secret, error)
	ListSecrets(ctx context.Context) ([]secrets.Secret, error)
	DeleteSecret(ctx context.Context, id string, recover bool) error
	GetLogs(ctx context.Context, name string, consumer func(service, container, message string)) error
	DescribeService(ctx context.Context, cluster string, arn string) (compose.ServiceStatus, error)

	ListTasks(ctx context.Context, cluster string, family string) ([]string, error)
	GetPublicIPs(ctx context.Context, interfaces ...string) (map[string]string, error)
	LoadBalancerType(ctx context.Context, arn string) (string, error)
	GetLoadBalancerURL(ctx context.Context, arn string) (string, error)
	WithVolumeSecurityGroups(ctx context.Context, id string, fn func(securityGroups []string) error) error
	GetParameter(ctx context.Context, name string) (string, error)
	SecurityGroupExists(ctx context.Context, sg string) (bool, error)
	DeleteCapacityProvider(ctx context.Context, arn string) error
	DeleteAutoscalingGroup(ctx context.Context, arn string) error
	// contains filtered or unexported methods
}

API hides aws-go-sdk into a simpler, focussed API subset

type ContextParams

type ContextParams struct {
	Description string
	Region      string
	Profile     string

	AwsID     string
	AwsSecret string
}

ContextParams options for creating AWS context

type MockAPI added in v0.1.21

type MockAPI struct {
	// contains filtered or unexported fields
}

MockAPI is a mock of API interface

func NewMockAPI added in v0.1.21

func NewMockAPI(ctrl *gomock.Controller) *MockAPI

NewMockAPI creates a new mock instance

func (*MockAPI) CheckRequirements added in v0.1.21

func (m *MockAPI) CheckRequirements(arg0 context.Context, arg1 string) error

CheckRequirements mocks base method

func (*MockAPI) CheckVPC added in v0.1.21

func (m *MockAPI) CheckVPC(arg0 context.Context, arg1 string) error

CheckVPC mocks base method

func (*MockAPI) ClusterExists added in v0.1.21

func (m *MockAPI) ClusterExists(arg0 context.Context, arg1 string) (bool, error)

ClusterExists mocks base method

func (*MockAPI) CreateChangeSet added in v0.1.21

func (m *MockAPI) CreateChangeSet(arg0 context.Context, arg1 string, arg2 []byte) (string, error)

CreateChangeSet mocks base method

func (*MockAPI) CreateCluster added in v0.1.21

func (m *MockAPI) CreateCluster(arg0 context.Context, arg1 string) (string, error)

CreateCluster mocks base method

func (*MockAPI) CreateSecret added in v0.1.21

func (m *MockAPI) CreateSecret(arg0 context.Context, arg1 secrets.Secret) (string, error)

CreateSecret mocks base method

func (*MockAPI) CreateStack added in v0.1.21

func (m *MockAPI) CreateStack(arg0 context.Context, arg1 string, arg2 []byte) error

CreateStack mocks base method

func (*MockAPI) DeleteAutoscalingGroup added in v0.1.21

func (m *MockAPI) DeleteAutoscalingGroup(arg0 context.Context, arg1 string) error

DeleteAutoscalingGroup mocks base method

func (*MockAPI) DeleteCapacityProvider added in v0.1.21

func (m *MockAPI) DeleteCapacityProvider(arg0 context.Context, arg1 string) error

DeleteCapacityProvider mocks base method

func (*MockAPI) DeleteSecret added in v0.1.21

func (m *MockAPI) DeleteSecret(arg0 context.Context, arg1 string, arg2 bool) error

DeleteSecret mocks base method

func (*MockAPI) DeleteStack added in v0.1.21

func (m *MockAPI) DeleteStack(arg0 context.Context, arg1 string) error

DeleteStack mocks base method

func (*MockAPI) DescribeService added in v0.1.21

func (m *MockAPI) DescribeService(arg0 context.Context, arg1, arg2 string) (compose.ServiceStatus, error)

DescribeService mocks base method

func (*MockAPI) DescribeStackEvents added in v0.1.21

func (m *MockAPI) DescribeStackEvents(arg0 context.Context, arg1 string) ([]*cloudformation.StackEvent, error)

DescribeStackEvents mocks base method

func (*MockAPI) EXPECT added in v0.1.21

func (m *MockAPI) EXPECT() *MockAPIMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockAPI) GetDefaultVPC added in v0.1.21

func (m *MockAPI) GetDefaultVPC(arg0 context.Context) (string, error)

GetDefaultVPC mocks base method

func (*MockAPI) GetLoadBalancerURL added in v0.1.21

func (m *MockAPI) GetLoadBalancerURL(arg0 context.Context, arg1 string) (string, error)

GetLoadBalancerURL mocks base method

func (*MockAPI) GetLogs added in v0.1.21

func (m *MockAPI) GetLogs(arg0 context.Context, arg1 string, arg2 func(string, string, string)) error

GetLogs mocks base method

func (*MockAPI) GetParameter added in v0.1.21

func (m *MockAPI) GetParameter(arg0 context.Context, arg1 string) (string, error)

GetParameter mocks base method

func (*MockAPI) GetPublicIPs added in v0.1.21

func (m *MockAPI) GetPublicIPs(arg0 context.Context, arg1 ...string) (map[string]string, error)

GetPublicIPs mocks base method

func (*MockAPI) GetRoleArn added in v0.1.21

func (m *MockAPI) GetRoleArn(arg0 context.Context, arg1 string) (string, error)

GetRoleArn mocks base method

func (*MockAPI) GetServiceTaskDefinition added in v0.1.21

func (m *MockAPI) GetServiceTaskDefinition(arg0 context.Context, arg1 string, arg2 []string) (map[string]string, error)

GetServiceTaskDefinition mocks base method

func (*MockAPI) GetServiceTasks added in v0.1.21

func (m *MockAPI) GetServiceTasks(arg0 context.Context, arg1, arg2 string, arg3 bool) ([]*ecs.Task, error)

GetServiceTasks mocks base method

func (*MockAPI) GetStackClusterID added in v0.1.21

func (m *MockAPI) GetStackClusterID(arg0 context.Context, arg1 string) (string, error)

GetStackClusterID mocks base method

func (*MockAPI) GetStackID added in v0.1.21

func (m *MockAPI) GetStackID(arg0 context.Context, arg1 string) (string, error)

GetStackID mocks base method

func (*MockAPI) GetSubNets added in v0.1.21

func (m *MockAPI) GetSubNets(arg0 context.Context, arg1 string) ([]string, error)

GetSubNets mocks base method

func (*MockAPI) GetTaskStoppedReason added in v0.1.21

func (m *MockAPI) GetTaskStoppedReason(arg0 context.Context, arg1, arg2 string) (string, error)

GetTaskStoppedReason mocks base method

func (*MockAPI) InspectSecret added in v0.1.21

func (m *MockAPI) InspectSecret(arg0 context.Context, arg1 string) (secrets.Secret, error)

InspectSecret mocks base method

func (*MockAPI) ListSecrets added in v0.1.21

func (m *MockAPI) ListSecrets(arg0 context.Context) ([]secrets.Secret, error)

ListSecrets mocks base method

func (*MockAPI) ListStackParameters added in v0.1.21

func (m *MockAPI) ListStackParameters(arg0 context.Context, arg1 string) (map[string]string, error)

ListStackParameters mocks base method

func (*MockAPI) ListStackResources added in v0.1.21

func (m *MockAPI) ListStackResources(arg0 context.Context, arg1 string) (stackResources, error)

ListStackResources mocks base method

func (*MockAPI) ListStackServices added in v0.1.21

func (m *MockAPI) ListStackServices(arg0 context.Context, arg1 string) ([]string, error)

ListStackServices mocks base method

func (*MockAPI) ListStacks added in v0.1.21

func (m *MockAPI) ListStacks(arg0 context.Context, arg1 string) ([]compose.Stack, error)

ListStacks mocks base method

func (*MockAPI) ListTasks added in v0.1.21

func (m *MockAPI) ListTasks(arg0 context.Context, arg1, arg2 string) ([]string, error)

ListTasks mocks base method

func (*MockAPI) LoadBalancerType added in v0.1.21

func (m *MockAPI) LoadBalancerType(arg0 context.Context, arg1 string) (string, error)

LoadBalancerType mocks base method

func (*MockAPI) SecurityGroupExists added in v0.1.21

func (m *MockAPI) SecurityGroupExists(arg0 context.Context, arg1 string) (bool, error)

SecurityGroupExists mocks base method

func (*MockAPI) StackExists added in v0.1.21

func (m *MockAPI) StackExists(arg0 context.Context, arg1 string) (bool, error)

StackExists mocks base method

func (*MockAPI) UpdateStack added in v0.1.21

func (m *MockAPI) UpdateStack(arg0 context.Context, arg1 string) error

UpdateStack mocks base method

func (*MockAPI) WaitStackComplete added in v0.1.21

func (m *MockAPI) WaitStackComplete(arg0 context.Context, arg1 string, arg2 int) error

WaitStackComplete mocks base method

func (*MockAPI) WithVolumeSecurityGroups added in v0.1.21

func (m *MockAPI) WithVolumeSecurityGroups(arg0 context.Context, arg1 string, arg2 func([]string) error) error

WithVolumeSecurityGroups mocks base method

type MockAPIMockRecorder added in v0.1.21

type MockAPIMockRecorder struct {
	// contains filtered or unexported fields
}

MockAPIMockRecorder is the mock recorder for MockAPI

func (*MockAPIMockRecorder) CheckRequirements added in v0.1.21

func (mr *MockAPIMockRecorder) CheckRequirements(arg0, arg1 interface{}) *gomock.Call

CheckRequirements indicates an expected call of CheckRequirements

func (*MockAPIMockRecorder) CheckVPC added in v0.1.21

func (mr *MockAPIMockRecorder) CheckVPC(arg0, arg1 interface{}) *gomock.Call

CheckVPC indicates an expected call of CheckVPC

func (*MockAPIMockRecorder) ClusterExists added in v0.1.21

func (mr *MockAPIMockRecorder) ClusterExists(arg0, arg1 interface{}) *gomock.Call

ClusterExists indicates an expected call of ClusterExists

func (*MockAPIMockRecorder) CreateChangeSet added in v0.1.21

func (mr *MockAPIMockRecorder) CreateChangeSet(arg0, arg1, arg2 interface{}) *gomock.Call

CreateChangeSet indicates an expected call of CreateChangeSet

func (*MockAPIMockRecorder) CreateCluster added in v0.1.21

func (mr *MockAPIMockRecorder) CreateCluster(arg0, arg1 interface{}) *gomock.Call

CreateCluster indicates an expected call of CreateCluster

func (*MockAPIMockRecorder) CreateSecret added in v0.1.21

func (mr *MockAPIMockRecorder) CreateSecret(arg0, arg1 interface{}) *gomock.Call

CreateSecret indicates an expected call of CreateSecret

func (*MockAPIMockRecorder) CreateStack added in v0.1.21

func (mr *MockAPIMockRecorder) CreateStack(arg0, arg1, arg2 interface{}) *gomock.Call

CreateStack indicates an expected call of CreateStack

func (*MockAPIMockRecorder) DeleteAutoscalingGroup added in v0.1.21

func (mr *MockAPIMockRecorder) DeleteAutoscalingGroup(arg0, arg1 interface{}) *gomock.Call

DeleteAutoscalingGroup indicates an expected call of DeleteAutoscalingGroup

func (*MockAPIMockRecorder) DeleteCapacityProvider added in v0.1.21

func (mr *MockAPIMockRecorder) DeleteCapacityProvider(arg0, arg1 interface{}) *gomock.Call

DeleteCapacityProvider indicates an expected call of DeleteCapacityProvider

func (*MockAPIMockRecorder) DeleteSecret added in v0.1.21

func (mr *MockAPIMockRecorder) DeleteSecret(arg0, arg1, arg2 interface{}) *gomock.Call

DeleteSecret indicates an expected call of DeleteSecret

func (*MockAPIMockRecorder) DeleteStack added in v0.1.21

func (mr *MockAPIMockRecorder) DeleteStack(arg0, arg1 interface{}) *gomock.Call

DeleteStack indicates an expected call of DeleteStack

func (*MockAPIMockRecorder) DescribeService added in v0.1.21

func (mr *MockAPIMockRecorder) DescribeService(arg0, arg1, arg2 interface{}) *gomock.Call

DescribeService indicates an expected call of DescribeService

func (*MockAPIMockRecorder) DescribeStackEvents added in v0.1.21

func (mr *MockAPIMockRecorder) DescribeStackEvents(arg0, arg1 interface{}) *gomock.Call

DescribeStackEvents indicates an expected call of DescribeStackEvents

func (*MockAPIMockRecorder) GetDefaultVPC added in v0.1.21

func (mr *MockAPIMockRecorder) GetDefaultVPC(arg0 interface{}) *gomock.Call

GetDefaultVPC indicates an expected call of GetDefaultVPC

func (*MockAPIMockRecorder) GetLoadBalancerURL added in v0.1.21

func (mr *MockAPIMockRecorder) GetLoadBalancerURL(arg0, arg1 interface{}) *gomock.Call

GetLoadBalancerURL indicates an expected call of GetLoadBalancerURL

func (*MockAPIMockRecorder) GetLogs added in v0.1.21

func (mr *MockAPIMockRecorder) GetLogs(arg0, arg1, arg2 interface{}) *gomock.Call

GetLogs indicates an expected call of GetLogs

func (*MockAPIMockRecorder) GetParameter added in v0.1.21

func (mr *MockAPIMockRecorder) GetParameter(arg0, arg1 interface{}) *gomock.Call

GetParameter indicates an expected call of GetParameter

func (*MockAPIMockRecorder) GetPublicIPs added in v0.1.21

func (mr *MockAPIMockRecorder) GetPublicIPs(arg0 interface{}, arg1 ...interface{}) *gomock.Call

GetPublicIPs indicates an expected call of GetPublicIPs

func (*MockAPIMockRecorder) GetRoleArn added in v0.1.21

func (mr *MockAPIMockRecorder) GetRoleArn(arg0, arg1 interface{}) *gomock.Call

GetRoleArn indicates an expected call of GetRoleArn

func (*MockAPIMockRecorder) GetServiceTaskDefinition added in v0.1.21

func (mr *MockAPIMockRecorder) GetServiceTaskDefinition(arg0, arg1, arg2 interface{}) *gomock.Call

GetServiceTaskDefinition indicates an expected call of GetServiceTaskDefinition

func (*MockAPIMockRecorder) GetServiceTasks added in v0.1.21

func (mr *MockAPIMockRecorder) GetServiceTasks(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

GetServiceTasks indicates an expected call of GetServiceTasks

func (*MockAPIMockRecorder) GetStackClusterID added in v0.1.21

func (mr *MockAPIMockRecorder) GetStackClusterID(arg0, arg1 interface{}) *gomock.Call

GetStackClusterID indicates an expected call of GetStackClusterID

func (*MockAPIMockRecorder) GetStackID added in v0.1.21

func (mr *MockAPIMockRecorder) GetStackID(arg0, arg1 interface{}) *gomock.Call

GetStackID indicates an expected call of GetStackID

func (*MockAPIMockRecorder) GetSubNets added in v0.1.21

func (mr *MockAPIMockRecorder) GetSubNets(arg0, arg1 interface{}) *gomock.Call

GetSubNets indicates an expected call of GetSubNets

func (*MockAPIMockRecorder) GetTaskStoppedReason added in v0.1.21

func (mr *MockAPIMockRecorder) GetTaskStoppedReason(arg0, arg1, arg2 interface{}) *gomock.Call

GetTaskStoppedReason indicates an expected call of GetTaskStoppedReason

func (*MockAPIMockRecorder) InspectSecret added in v0.1.21

func (mr *MockAPIMockRecorder) InspectSecret(arg0, arg1 interface{}) *gomock.Call

InspectSecret indicates an expected call of InspectSecret

func (*MockAPIMockRecorder) ListSecrets added in v0.1.21

func (mr *MockAPIMockRecorder) ListSecrets(arg0 interface{}) *gomock.Call

ListSecrets indicates an expected call of ListSecrets

func (*MockAPIMockRecorder) ListStackParameters added in v0.1.21

func (mr *MockAPIMockRecorder) ListStackParameters(arg0, arg1 interface{}) *gomock.Call

ListStackParameters indicates an expected call of ListStackParameters

func (*MockAPIMockRecorder) ListStackResources added in v0.1.21

func (mr *MockAPIMockRecorder) ListStackResources(arg0, arg1 interface{}) *gomock.Call

ListStackResources indicates an expected call of ListStackResources

func (*MockAPIMockRecorder) ListStackServices added in v0.1.21

func (mr *MockAPIMockRecorder) ListStackServices(arg0, arg1 interface{}) *gomock.Call

ListStackServices indicates an expected call of ListStackServices

func (*MockAPIMockRecorder) ListStacks added in v0.1.21

func (mr *MockAPIMockRecorder) ListStacks(arg0, arg1 interface{}) *gomock.Call

ListStacks indicates an expected call of ListStacks

func (*MockAPIMockRecorder) ListTasks added in v0.1.21

func (mr *MockAPIMockRecorder) ListTasks(arg0, arg1, arg2 interface{}) *gomock.Call

ListTasks indicates an expected call of ListTasks

func (*MockAPIMockRecorder) LoadBalancerType added in v0.1.21

func (mr *MockAPIMockRecorder) LoadBalancerType(arg0, arg1 interface{}) *gomock.Call

LoadBalancerType indicates an expected call of LoadBalancerType

func (*MockAPIMockRecorder) SecurityGroupExists added in v0.1.21

func (mr *MockAPIMockRecorder) SecurityGroupExists(arg0, arg1 interface{}) *gomock.Call

SecurityGroupExists indicates an expected call of SecurityGroupExists

func (*MockAPIMockRecorder) StackExists added in v0.1.21

func (mr *MockAPIMockRecorder) StackExists(arg0, arg1 interface{}) *gomock.Call

StackExists indicates an expected call of StackExists

func (*MockAPIMockRecorder) UpdateStack added in v0.1.21

func (mr *MockAPIMockRecorder) UpdateStack(arg0, arg1 interface{}) *gomock.Call

UpdateStack indicates an expected call of UpdateStack

func (*MockAPIMockRecorder) WaitStackComplete added in v0.1.21

func (mr *MockAPIMockRecorder) WaitStackComplete(arg0, arg1, arg2 interface{}) *gomock.Call

WaitStackComplete indicates an expected call of WaitStackComplete

func (*MockAPIMockRecorder) WithVolumeSecurityGroups added in v0.1.21

func (mr *MockAPIMockRecorder) WithVolumeSecurityGroups(arg0, arg1, arg2 interface{}) *gomock.Call

WithVolumeSecurityGroups indicates an expected call of WithVolumeSecurityGroups

type PolicyDocument

type PolicyDocument struct {
	Version   string            `json:",omitempty"`
	Statement []PolicyStatement `json:",omitempty"`
}

PolicyDocument describes an IAM policy document could alternatively depend on https://github.com/kubernetes-sigs/cluster-api-provider-aws/blob/master/cmd/clusterawsadm/api/iam/v1alpha1/types.go

type PolicyPrincipal

type PolicyPrincipal struct {
	Service string `json:",omitempty"`
}

PolicyPrincipal describes an IAM policy principal

type PolicyStatement

type PolicyStatement struct {
	Effect    string          `json:",omitempty"`
	Action    []string        `json:",omitempty"`
	Principal PolicyPrincipal `json:",omitempty"`
	Resource  []string        `json:",omitempty"`
}

PolicyStatement describes an IAM policy statement

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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