{"modulePath":"github.com/docker/compose-cli","version":"v1.0.35","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package ecs\n\nPackage ecs is a generated GoMock package.\n\n## Constants\n\n```go\nconst UserAgentName = \"Docker CLI\"\n```\nUserAgentName is the ECS specific user agent used by the cli\n\n## Types\n\n```go\ntype API interface {\n\tCheckRequirements(ctx context.Context, region string) error\n\tResolveCluster(ctx context.Context, nameOrArn string) (awsResource, error)\n\tCreateCluster(ctx context.Context, name string) (string, error)\n\tCheckVPC(ctx context.Context, vpcID string) error\n\tGetDefaultVPC(ctx context.Context) (string, error)\n\tGetSubNets(ctx context.Context, vpcID string) ([]awsResource, error)\n\tIsPublicSubnet(ctx context.Context, subNetID string) (bool, error)\n\tGetRoleArn(ctx context.Context, name string) (string, error)\n\tStackExists(ctx context.Context, name string) (bool, error)\n\tCreateStack(ctx context.Context, name string, region string, template []byte) error\n\tCreateChangeSet(ctx context.Context, name string, region string, template []byte) (string, error)\n\tUpdateStack(ctx context.Context, changeset string) error\n\tWaitStackComplete(ctx context.Context, name string, operation int) error\n\tGetStackID(ctx context.Context, name string) (string, error)\n\tListStacks(ctx context.Context) ([]api.Stack, error)\n\tGetStackClusterID(ctx context.Context, stack string) (string, error)\n\tGetServiceTaskDefinition(ctx context.Context, cluster string, serviceArns []string) (map[string]string, error)\n\tListStackServices(ctx context.Context, stack string) ([]string, error)\n\tGetServiceTasks(ctx context.Context, cluster string, service string, stopped bool) ([]*ecs.Task, error)\n\tGetTaskStoppedReason(ctx context.Context, cluster string, taskArn string) (string, error)\n\tDescribeStackEvents(ctx context.Context, stackID string) ([]*cloudformation.StackEvent, error)\n\tListStackParameters(ctx context.Context, name string) (map[string]string, error)\n\tListStackResources(ctx context.Context, name string) (stackResources, error)\n\tDeleteStack(ctx context.Context, name string) error\n\tCreateSecret(ctx context.Context, secret secrets.Secret) (string, error)\n\tInspectSecret(ctx context.Context, id string) (secrets.Secret, error)\n\tListSecrets(ctx context.Context) ([]secrets.Secret, error)\n\tDeleteSecret(ctx context.Context, id string, recover bool) error\n\tGetLogs(ctx context.Context, name string, consumer func(container string, service string, message string), follow bool) error\n\tDescribeService(ctx context.Context, cluster string, arn string) (api.ServiceStatus, error)\n\tDescribeServiceTasks(ctx context.Context, cluster string, project string, service string) ([]api.ContainerSummary, error)\n\n\tListTasks(ctx context.Context, cluster string, family string) ([]string, error)\n\tGetPublicIPs(ctx context.Context, interfaces ...string) (map[string]string, error)\n\tResolveLoadBalancer(ctx context.Context, nameOrArn string) (awsResource, string, string, []awsResource, error)\n\tGetLoadBalancerURL(ctx context.Context, arn string) (string, error)\n\tGetParameter(ctx context.Context, name string) (string, error)\n\tSecurityGroupExists(ctx context.Context, sg string) (bool, error)\n\tDeleteCapacityProvider(ctx context.Context, arn string) error\n\tDeleteAutoscalingGroup(ctx context.Context, arn string) error\n\tResolveFileSystem(ctx context.Context, id string) (awsResource, error)\n\tListFileSystems(ctx context.Context, tags map[string]string) ([]awsResource, error)\n\tCreateFileSystem(ctx context.Context, tags map[string]string, options VolumeCreateOptions) (awsResource, error)\n\tDeleteFileSystem(ctx context.Context, id string) error\n\t// contains filtered or unexported methods\n}\n```\nAPI hides aws-go-sdk into a simpler, focussed API subset\n\n```go\ntype Condition struct {\n\tStringEquals map[string]string `json:\",omitempty\"`\n\tBool         map[string]string `json:\",omitempty\"`\n}\n```\nCondition is the map of all conditions in the statement entry.\n\n```go\ntype ContextParams struct {\n\tName         string\n\tDescription  string\n\tAccessKey    string\n\tSecretKey    string\n\tProfile      string\n\tRegion       string\n\tCredsFromEnv bool\n}\n```\nContextParams options for creating AWS context\n\n```go\ntype MockAPI struct {\n\t// contains filtered or unexported fields\n}\n```\nMockAPI is a mock of API interface\n\n```go\nfunc NewMockAPI(ctrl *gomock.Controller) *MockAPI\n```\nNewMockAPI creates a new mock instance\n\n```go\nfunc (m *MockAPI) CheckRequirements(arg0 context.Context, arg1 string) error\n```\nCheckRequirements mocks base method\n\n```go\nfunc (m *MockAPI) CheckVPC(arg0 context.Context, arg1 string) error\n```\nCheckVPC mocks base method\n\n```go\nfunc (m *MockAPI) CreateChangeSet(arg0 context.Context, arg1, arg2 string, arg3 []byte) (string, error)\n```\nCreateChangeSet mocks base method\n\n```go\nfunc (m *MockAPI) CreateCluster(arg0 context.Context, arg1 string) (string, error)\n```\nCreateCluster mocks base method\n\n```go\nfunc (m *MockAPI) CreateFileSystem(arg0 context.Context, arg1 map[string]string, arg2 VolumeCreateOptions) (awsResource, error)\n```\nCreateFileSystem mocks base method\n\n```go\nfunc (m *MockAPI) CreateSecret(arg0 context.Context, arg1 secrets.Secret) (string, error)\n```\nCreateSecret mocks base method\n\n```go\nfunc (m *MockAPI) CreateStack(arg0 context.Context, arg1, arg2 string, arg3 []byte) error\n```\nCreateStack mocks base method\n\n```go\nfunc (m *MockAPI) DeleteAutoscalingGroup(arg0 context.Context, arg1 string) error\n```\nDeleteAutoscalingGroup mocks base method\n\n```go\nfunc (m *MockAPI) DeleteCapacityProvider(arg0 context.Context, arg1 string) error\n```\nDeleteCapacityProvider mocks base method\n\n```go\nfunc (m *MockAPI) DeleteFileSystem(arg0 context.Context, arg1 string) error\n```\nDeleteFileSystem mocks base method\n\n```go\nfunc (m *MockAPI) DeleteSecret(arg0 context.Context, arg1 string, arg2 bool) error\n```\nDeleteSecret mocks base method\n\n```go\nfunc (m *MockAPI) DeleteStack(arg0 context.Context, arg1 string) error\n```\nDeleteStack mocks base method\n\n```go\nfunc (m *MockAPI) DescribeService(arg0 context.Context, arg1, arg2 string) (compose.ServiceStatus, error)\n```\nDescribeService mocks base method\n\n```go\nfunc (m *MockAPI) DescribeServiceTasks(arg0 context.Context, arg1, arg2, arg3 string) ([]compose.ContainerSummary, error)\n```\nDescribeServiceTasks mocks base method\n\n```go\nfunc (m *MockAPI) DescribeStackEvents(arg0 context.Context, arg1 string) ([]*cloudformation.StackEvent, error)\n```\nDescribeStackEvents mocks base method\n\n```go\nfunc (m *MockAPI) EXPECT() *MockAPIMockRecorder\n```\nEXPECT returns an object that allows the caller to indicate expected use\n\n```go\nfunc (m *MockAPI) GetDefaultVPC(arg0 context.Context) (string, error)\n```\nGetDefaultVPC mocks base method\n\n```go\nfunc (m *MockAPI) GetLoadBalancerURL(arg0 context.Context, arg1 string) (string, error)\n```\nGetLoadBalancerURL mocks base method\n\n```go\nfunc (m *MockAPI) GetLogs(arg0 context.Context, arg1 string, arg2 func(string, string, string), arg3 bool) error\n```\nGetLogs mocks base method\n\n```go\nfunc (m *MockAPI) GetParameter(arg0 context.Context, arg1 string) (string, error)\n```\nGetParameter mocks base method\n\n```go\nfunc (m *MockAPI) GetPublicIPs(arg0 context.Context, arg1 ...string) (map[string]string, error)\n```\nGetPublicIPs mocks base method\n\n```go\nfunc (m *MockAPI) GetRoleArn(arg0 context.Context, arg1 string) (string, error)\n```\nGetRoleArn mocks base method\n\n```go\nfunc (m *MockAPI) GetServiceTaskDefinition(arg0 context.Context, arg1 string, arg2 []string) (map[string]string, error)\n```\nGetServiceTaskDefinition mocks base method\n\n```go\nfunc (m *MockAPI) GetServiceTasks(arg0 context.Context, arg1, arg2 string, arg3 bool) ([]*ecs.Task, error)\n```\nGetServiceTasks mocks base method\n\n```go\nfunc (m *MockAPI) GetStackClusterID(arg0 context.Context, arg1 string) (string, error)\n```\nGetStackClusterID mocks base method\n\n```go\nfunc (m *MockAPI) GetStackID(arg0 context.Context, arg1 string) (string, error)\n```\nGetStackID mocks base method\n\n```go\nfunc (m *MockAPI) GetSubNets(arg0 context.Context, arg1 string) ([]awsResource, error)\n```\nGetSubNets mocks base method\n\n```go\nfunc (m *MockAPI) GetTaskStoppedReason(arg0 context.Context, arg1, arg2 string) (string, error)\n```\nGetTaskStoppedReason mocks base method\n\n```go\nfunc (m *MockAPI) InspectSecret(arg0 context.Context, arg1 string) (secrets.Secret, error)\n```\nInspectSecret mocks base method\n\n```go\nfunc (m *MockAPI) IsPublicSubnet(arg0 context.Context, arg1 string) (bool, error)\n```\nIsPublicSubnet mocks base method\n\n```go\nfunc (m *MockAPI) ListFileSystems(arg0 context.Context, arg1 map[string]string) ([]awsResource, error)\n```\nListFileSystems mocks base method\n\n```go\nfunc (m *MockAPI) ListSecrets(arg0 context.Context) ([]secrets.Secret, error)\n```\nListSecrets mocks base method\n\n```go\nfunc (m *MockAPI) ListStackParameters(arg0 context.Context, arg1 string) (map[string]string, error)\n```\nListStackParameters mocks base method\n\n```go\nfunc (m *MockAPI) ListStackResources(arg0 context.Context, arg1 string) (stackResources, error)\n```\nListStackResources mocks base method\n\n```go\nfunc (m *MockAPI) ListStackServices(arg0 context.Context, arg1 string) ([]string, error)\n```\nListStackServices mocks base method\n\n```go\nfunc (m *MockAPI) ListStacks(arg0 context.Context) ([]compose.Stack, error)\n```\nListStacks mocks base method\n\n```go\nfunc (m *MockAPI) ListTasks(arg0 context.Context, arg1, arg2 string) ([]string, error)\n```\nListTasks mocks base method\n\n```go\nfunc (m *MockAPI) ResolveCluster(arg0 context.Context, arg1 string) (awsResource, error)\n```\nResolveCluster mocks base method\n\n```go\nfunc (m *MockAPI) ResolveFileSystem(arg0 context.Context, arg1 string) (awsResource, error)\n```\nResolveFileSystem mocks base method\n\n```go\nfunc (m *MockAPI) ResolveLoadBalancer(arg0 context.Context, arg1 string) (awsResource, string, string, []awsResource, error)\n```\nResolveLoadBalancer mocks base method\n\n```go\nfunc (m *MockAPI) SecurityGroupExists(arg0 context.Context, arg1 string) (bool, error)\n```\nSecurityGroupExists mocks base method\n\n```go\nfunc (m *MockAPI) StackExists(arg0 context.Context, arg1 string) (bool, error)\n```\nStackExists mocks base method\n\n```go\nfunc (m *MockAPI) UpdateStack(arg0 context.Context, arg1 string) error\n```\nUpdateStack mocks base method\n\n```go\nfunc (m *MockAPI) WaitStackComplete(arg0 context.Context, arg1 string, arg2 int) error\n```\nWaitStackComplete mocks base method\n\n```go\ntype MockAPIMockRecorder struct {\n\t// contains filtered or unexported fields\n}\n```\nMockAPIMockRecorder is the mock recorder for MockAPI\n\n```go\nfunc (mr *MockAPIMockRecorder) CheckRequirements(arg0, arg1 interface{}) *gomock.Call\n```\nCheckRequirements indicates an expected call of CheckRequirements\n\n```go\nfunc (mr *MockAPIMockRecorder) CheckVPC(arg0, arg1 interface{}) *gomock.Call\n```\nCheckVPC indicates an expected call of CheckVPC\n\n```go\nfunc (mr *MockAPIMockRecorder) CreateChangeSet(arg0, arg1, arg2, arg3 interface{}) *gomock.Call\n```\nCreateChangeSet indicates an expected call of CreateChangeSet\n\n```go\nfunc (mr *MockAPIMockRecorder) CreateCluster(arg0, arg1 interface{}) *gomock.Call\n```\nCreateCluster indicates an expected call of CreateCluster\n\n```go\nfunc (mr *MockAPIMockRecorder) CreateFileSystem(arg0, arg1, arg2 interface{}) *gomock.Call\n```\nCreateFileSystem indicates an expected call of CreateFileSystem\n\n```go\nfunc (mr *MockAPIMockRecorder) CreateSecret(arg0, arg1 interface{}) *gomock.Call\n```\nCreateSecret indicates an expected call of CreateSecret\n\n```go\nfunc (mr *MockAPIMockRecorder) CreateStack(arg0, arg1, arg2, arg3 interface{}) *gomock.Call\n```\nCreateStack indicates an expected call of CreateStack\n\n```go\nfunc (mr *MockAPIMockRecorder) DeleteAutoscalingGroup(arg0, arg1 interface{}) *gomock.Call\n```\nDeleteAutoscalingGroup indicates an expected call of DeleteAutoscalingGroup\n\n```go\nfunc (mr *MockAPIMockRecorder) DeleteCapacityProvider(arg0, arg1 interface{}) *gomock.Call\n```\nDeleteCapacityProvider indicates an expected call of DeleteCapacityProvider\n\n```go\nfunc (mr *MockAPIMockRecorder) DeleteFileSystem(arg0, arg1 interface{}) *gomock.Call\n```\nDeleteFileSystem indicates an expected call of DeleteFileSystem\n\n```go\nfunc (mr *MockAPIMockRecorder) DeleteSecret(arg0, arg1, arg2 interface{}) *gomock.Call\n```\nDeleteSecret indicates an expected call of DeleteSecret\n\n```go\nfunc (mr *MockAPIMockRecorder) DeleteStack(arg0, arg1 interface{}) *gomock.Call\n```\nDeleteStack indicates an expected call of DeleteStack\n\n```go\nfunc (mr *MockAPIMockRecorder) DescribeService(arg0, arg1, arg2 interface{}) *gomock.Call\n```\nDescribeService indicates an expected call of DescribeService\n\n```go\nfunc (mr *MockAPIMockRecorder) DescribeServiceTasks(arg0, arg1, arg2, arg3 interface{}) *gomock.Call\n```\nDescribeServiceTasks indicates an expected call of DescribeServiceTasks\n\n```go\nfunc (mr *MockAPIMockRecorder) DescribeStackEvents(arg0, arg1 interface{}) *gomock.Call\n```\nDescribeStackEvents indicates an expected call of DescribeStackEvents\n\n```go\nfunc (mr *MockAPIMockRecorder) GetDefaultVPC(arg0 interface{}) *gomock.Call\n```\nGetDefaultVPC indicates an expected call of GetDefaultVPC\n\n```go\nfunc (mr *MockAPIMockRecorder) GetLoadBalancerURL(arg0, arg1 interface{}) *gomock.Call\n```\nGetLoadBalancerURL indicates an expected call of GetLoadBalancerURL\n\n```go\nfunc (mr *MockAPIMockRecorder) GetLogs(arg0, arg1, arg2, arg3 interface{}) *gomock.Call\n```\nGetLogs indicates an expected call of GetLogs\n\n```go\nfunc (mr *MockAPIMockRecorder) GetParameter(arg0, arg1 interface{}) *gomock.Call\n```\nGetParameter indicates an expected call of GetParameter\n\n```go\nfunc (mr *MockAPIMockRecorder) GetPublicIPs(arg0 interface{}, arg1 ...interface{}) *gomock.Call\n```\nGetPublicIPs indicates an expected call of GetPublicIPs\n\n```go\nfunc (mr *MockAPIMockRecorder) GetRoleArn(arg0, arg1 interface{}) *gomock.Call\n```\nGetRoleArn indicates an expected call of GetRoleArn\n\n```go\nfunc (mr *MockAPIMockRecorder) GetServiceTaskDefinition(arg0, arg1, arg2 interface{}) *gomock.Call\n```\nGetServiceTaskDefinition indicates an expected call of GetServiceTaskDefinition\n\n```go\nfunc (mr *MockAPIMockRecorder) GetServiceTasks(arg0, arg1, arg2, arg3 interface{}) *gomock.Call\n```\nGetServiceTasks indicates an expected call of GetServiceTasks\n\n```go\nfunc (mr *MockAPIMockRecorder) GetStackClusterID(arg0, arg1 interface{}) *gomock.Call\n```\nGetStackClusterID indicates an expected call of GetStackClusterID\n\n```go\nfunc (mr *MockAPIMockRecorder) GetStackID(arg0, arg1 interface{}) *gomock.Call\n```\nGetStackID indicates an expected call of GetStackID\n\n```go\nfunc (mr *MockAPIMockRecorder) GetSubNets(arg0, arg1 interface{}) *gomock.Call\n```\nGetSubNets indicates an expected call of GetSubNets\n\n```go\nfunc (mr *MockAPIMockRecorder) GetTaskStoppedReason(arg0, arg1, arg2 interface{}) *gomock.Call\n```\nGetTaskStoppedReason indicates an expected call of GetTaskStoppedReason\n\n```go\nfunc (mr *MockAPIMockRecorder) InspectSecret(arg0, arg1 interface{}) *gomock.Call\n```\nInspectSecret indicates an expected call of InspectSecret\n\n```go\nfunc (mr *MockAPIMockRecorder) IsPublicSubnet(arg0, arg1 interface{}) *gomock.Call\n```\nIsPublicSubnet indicates an expected call of IsPublicSubnet\n\n```go\nfunc (mr *MockAPIMockRecorder) ListFileSystems(arg0, arg1 interface{}) *gomock.Call\n```\nListFileSystems indicates an expected call of ListFileSystems\n\n```go\nfunc (mr *MockAPIMockRecorder) ListSecrets(arg0 interface{}) *gomock.Call\n```\nListSecrets indicates an expected call of ListSecrets\n\n```go\nfunc (mr *MockAPIMockRecorder) ListStackParameters(arg0, arg1 interface{}) *gomock.Call\n```\nListStackParameters indicates an expected call of ListStackParameters\n\n```go\nfunc (mr *MockAPIMockRecorder) ListStackResources(arg0, arg1 interface{}) *gomock.Call\n```\nListStackResources indicates an expected call of ListStackResources\n\n```go\nfunc (mr *MockAPIMockRecorder) ListStackServices(arg0, arg1 interface{}) *gomock.Call\n```\nListStackServices indicates an expected call of ListStackServices\n\n```go\nfunc (mr *MockAPIMockRecorder) ListStacks(arg0 interface{}) *gomock.Call\n```\nListStacks indicates an expected call of ListStacks\n\n```go\nfunc (mr *MockAPIMockRecorder) ListTasks(arg0, arg1, arg2 interface{}) *gomock.Call\n```\nListTasks indicates an expected call of ListTasks\n\n```go\nfunc (mr *MockAPIMockRecorder) ResolveCluster(arg0, arg1 interface{}) *gomock.Call\n```\nResolveCluster indicates an expected call of ResolveCluster\n\n```go\nfunc (mr *MockAPIMockRecorder) ResolveFileSystem(arg0, arg1 interface{}) *gomock.Call\n```\nResolveFileSystem indicates an expected call of ResolveFileSystem\n\n```go\nfunc (mr *MockAPIMockRecorder) ResolveLoadBalancer(arg0, arg1 interface{}) *gomock.Call\n```\nResolveLoadBalancer indicates an expected call of ResolveLoadBalancer\n\n```go\nfunc (mr *MockAPIMockRecorder) SecurityGroupExists(arg0, arg1 interface{}) *gomock.Call\n```\nSecurityGroupExists indicates an expected call of SecurityGroupExists\n\n```go\nfunc (mr *MockAPIMockRecorder) StackExists(arg0, arg1 interface{}) *gomock.Call\n```\nStackExists indicates an expected call of StackExists\n\n```go\nfunc (mr *MockAPIMockRecorder) UpdateStack(arg0, arg1 interface{}) *gomock.Call\n```\nUpdateStack indicates an expected call of UpdateStack\n\n```go\nfunc (mr *MockAPIMockRecorder) WaitStackComplete(arg0, arg1, arg2 interface{}) *gomock.Call\n```\nWaitStackComplete indicates an expected call of WaitStackComplete\n\n```go\ntype PolicyDocument struct {\n\tVersion   string            `json:\",omitempty\"`\n\tStatement []PolicyStatement `json:\",omitempty\"`\n}\n```\nPolicyDocument 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](https://github.com/kubernetes-sigs/cluster-api-provider-aws/blob/master/cmd/clusterawsadm/api/iam/v1alpha1/types.go)\n\n```go\ntype PolicyPrincipal struct {\n\tService string `json:\",omitempty\"`\n}\n```\nPolicyPrincipal describes an IAM policy principal\n\n```go\ntype PolicyStatement struct {\n\tEffect    string          `json:\",omitempty\"`\n\tAction    []string        `json:\",omitempty\"`\n\tPrincipal PolicyPrincipal `json:\",omitempty\"`\n\tResource  []string        `json:\",omitempty\"`\n\tCondition Condition       `json:\",omitempty\"`\n}\n```\nPolicyStatement describes an IAM policy statement\n\n```go\ntype VolumeCreateOptions struct {\n\tKmsKeyID                     string\n\tPerformanceMode              string\n\tProvisionedThroughputInMibps float64\n\tThroughputMode               string\n}\n```\nVolumeCreateOptions hold EFS filesystem creation options\n\n","path":"github.com/docker/compose-cli/ecs","name":"ecs","synopsis":"Package ecs is a generated GoMock package.","isRedistributable":true}
