compose

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: 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
	StackDelete
)
View Source
const (
	ExtensionSecurityGroup   = "x-aws-securitygroup"
	ExtensionVPC             = "x-aws-vpc"
	ExtensionPullCredentials = "x-aws-pull_credentials"
	ExtensionLB              = "x-aws-loadbalancer"
)

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

	Convert(project *types.Project) (*cloudformation.Template, error)
	Logs(ctx context.Context, projectName string) error
	Ps(background context.Context, project *types.Project) ([]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 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
}

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