compose

package
v1.0.0-beta.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ProjectTag = "com.docker.compose.project"
	NetworkTag = "com.docker.compose.network"
	ServiceTag = "com.docker.compose.service"
)
View Source
const (
	StackCreate = iota
	StackUpdate
	StackDelete
)
View Source
const (
	ExtensionSecurityGroup   = "x-aws-securitygroup"
	ExtensionVPC             = "x-aws-vpc"
	ExtensionPullCredentials = "x-aws-pull_credentials"
	ExtensionLB              = "x-aws-loadbalancer"
	ExtensionCluster         = "x-aws-cluster"
	ExtensionKeys            = "x-aws-keys"
	ExtensionMinPercent      = "x-aws-min_percent"
	ExtensionMaxPercent      = "x-aws-max_percent"
	ExtensionRetention       = "x-aws-logs_retention"
	ExtensionRole            = "x-aws-role"
	ExtensionManagedPolicies = "x-aws-policies"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	Up(ctx context.Context, options *cli.ProjectOptions) error
	Down(ctx context.Context, options *cli.ProjectOptions) error

	CreateContextData(ctx context.Context, params map[string]string) (contextData interface{}, description string, err error)

	Convert(project *types.Project) (*cloudformation.Template, error)
	Logs(ctx context.Context, options *cli.ProjectOptions, writer io.Writer) error
	Ps(ctx context.Context, options *cli.ProjectOptions) ([]ServiceStatus, error)

	CreateSecret(ctx context.Context, secret Secret) (string, error)
	InspectSecret(ctx context.Context, id string) (Secret, error)
	ListSecrets(ctx context.Context) ([]Secret, error)
	DeleteSecret(ctx context.Context, id string, recover bool) error
}

type LoadBalancer

type LoadBalancer struct {
	URL           string
	TargetPort    int
	PublishedPort int
	Protocol      string
}

type LogConsumer

type LogConsumer interface {
	Log(service, container, message string)
}

type Secret

type Secret struct {
	ID          string            `json:"ID"`
	Name        string            `json:"Name"`
	Labels      map[string]string `json:"Labels"`
	Description string            `json:"Description"`
	// contains filtered or unexported fields
}

func NewSecret

func NewSecret(name, username, password, description string) Secret

func (Secret) GetCredString

func (s Secret) GetCredString() (string, error)

func (Secret) ToJSON

func (s Secret) ToJSON() (string, error)

type ServiceStatus

type ServiceStatus struct {
	ID            string
	Name          string
	Replicas      int
	Desired       int
	Ports         []string
	LoadBalancers []LoadBalancer
}

type StackResource

type StackResource struct {
	LogicalID string
	Type      string
	ARN       string
	Status    string
}

Jump to

Keyboard shortcuts

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