Documentation ¶
Index ¶
- Constants
- func Convert(project *types.Project, service types.ServiceConfig) (*ecs.TaskDefinition, error)
- type Backend
- func (b Backend) Convert(project *types.Project) (*cloudformation.Template, error)
- func (b Backend) CreateSecret(ctx context.Context, secret compose.Secret) (string, error)
- func (b Backend) DeleteSecret(ctx context.Context, id string, recover bool) error
- func (b *Backend) Down(ctx context.Context, options cli.ProjectOptions) error
- func (b Backend) GetLoadBalancer(ctx context.Context, project *types.Project) (string, error)
- func (b Backend) GetVPC(ctx context.Context, project *types.Project) (string, error)
- func (b Backend) InspectSecret(ctx context.Context, id string) (compose.Secret, error)
- func (b Backend) ListSecrets(ctx context.Context) ([]compose.Secret, error)
- func (b *Backend) Logs(ctx context.Context, projectName string) error
- func (b *Backend) Ps(ctx context.Context, project *types.Project) ([]compose.ServiceStatus, error)
- func (b *Backend) Up(ctx context.Context, options cli.ProjectOptions) error
- func (b *Backend) WaitStackCompletion(ctx context.Context, name string, operation int, w console.ProgressWriter) error
- type FargateCompatibilityChecker
- type PolicyDocument
- type PolicyPrincipal
- type PolicyStatement
Constants ¶
View Source
const ( ParameterClusterName = "ParameterClusterName" ParameterVPCId = "ParameterVPCId" ParameterSubnet1Id = "ParameterSubnet1Id" ParameterSubnet2Id = "ParameterSubnet2Id" ParameterLoadBalancerARN = "ParameterLoadBalancerARN" )
View Source
const ( ECSTaskExecutionPolicy = "arn:aws:iam::aws:policy/service-role/AmazonECSTaskExecutionRolePolicy" ECRReadOnlyPolicy = "arn:aws:iam::aws:policy/AmazonEC2ContainerRegistryReadOnly" ActionGetSecretValue = "secretsmanager:GetSecretValue" ActionGetParameters = "ssm:GetParameters" ActionDecrypt = "kms:Decrypt" )
View Source
const Mb = 1024 * 1024
Variables ¶
This section is empty.
Functions ¶
func Convert ¶
func Convert(project *types.Project, service types.ServiceConfig) (*ecs.TaskDefinition, error)
Types ¶
type Backend ¶
func (Backend) CreateSecret ¶
func (Backend) DeleteSecret ¶
func (Backend) GetLoadBalancer ¶
func (Backend) InspectSecret ¶
func (Backend) ListSecrets ¶
func (*Backend) WaitStackCompletion ¶
type FargateCompatibilityChecker ¶
type FargateCompatibilityChecker struct {
compatibility.AllowList
}
func (*FargateCompatibilityChecker) CheckCapAdd ¶
func (c *FargateCompatibilityChecker) CheckCapAdd(service *types.ServiceConfig)
func (*FargateCompatibilityChecker) CheckPortsPublished ¶
func (c *FargateCompatibilityChecker) CheckPortsPublished(p *types.ServicePortConfig)
type PolicyDocument ¶
type PolicyDocument struct { Version string `json:",omitempty"` Statement []PolicyStatement `json:",omitempty"` }
could alternatively depend on https://github.com/kubernetes-sigs/cluster-api-provider-aws/blob/master/pkg/cloud/services/iam/types.go#L52
type PolicyPrincipal ¶
type PolicyPrincipal struct {
Service string `json:",omitempty"`
}
type PolicyStatement ¶
type PolicyStatement struct { Effect string `json:",omitempty"` Action []string `json:",omitempty"` Principal PolicyPrincipal `json:",omitempty"` Resource []string `json:",omitempty"` }
Click to show internal directories.
Click to hide internal directories.