backend

package
v1.0.0-preview.2 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2020 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

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

type Backend struct {
	Cluster string
	Region  string
	// contains filtered or unexported fields
}

func NewBackend

func NewBackend(profile string, cluster string, region string) (*Backend, error)

func (Backend) Convert

func (b Backend) Convert(project *types.Project) (*cloudformation.Template, error)

Convert a compose project into a CloudFormation template

func (Backend) CreateSecret

func (b Backend) CreateSecret(ctx context.Context, secret compose.Secret) (string, error)

func (Backend) DeleteSecret

func (b Backend) DeleteSecret(ctx context.Context, id string, recover bool) error

func (*Backend) Down

func (b *Backend) Down(ctx context.Context, options cli.ProjectOptions) error

func (Backend) GetLoadBalancer

func (b Backend) GetLoadBalancer(ctx context.Context, project *types.Project) (string, error)

func (Backend) GetVPC

func (b Backend) GetVPC(ctx context.Context, project *types.Project) (string, error)

func (Backend) InspectSecret

func (b Backend) InspectSecret(ctx context.Context, id string) (compose.Secret, error)

func (Backend) ListSecrets

func (b Backend) ListSecrets(ctx context.Context) ([]compose.Secret, error)

func (*Backend) Logs

func (b *Backend) Logs(ctx context.Context, projectName string) error

func (*Backend) Ps

func (b *Backend) Ps(ctx context.Context, project *types.Project) ([]compose.ServiceStatus, error)

func (*Backend) Up

func (b *Backend) Up(ctx context.Context, options cli.ProjectOptions) error

func (*Backend) WaitStackCompletion

func (b *Backend) WaitStackCompletion(ctx context.Context, name string, operation int, w console.ProgressWriter) error

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"`
}

Jump to

Keyboard shortcuts

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