compose

package
v1.0.0-beta.4 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2020 License: Apache-2.0 Imports: 5 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"
)

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, projectName cli.ProjectOptions) error
	Ps(background 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 PortMapping

type PortMapping struct {
	Source int
	Target int
}

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