Documentation
¶
Index ¶
- Variables
- func GetListFromDirectory(root string) ([]string, error)
- func Link(ctx context.Context, projectID, containerPath string, container *Container) error
- func Restart(ctx context.Context, projectID, containerID string) error
- func Unlink(ctx context.Context, projectID, containerID string) error
- func Validate(ctx context.Context, projectID, containerID string) (err error)
- type Container
- type Containers
- type Register
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrContainerNotFound happens when a container.json is not found ErrContainerNotFound = errors.New("Container not found") // ErrContainerAlreadyExists happens when a container ID already exists ErrContainerAlreadyExists = errors.New("Container already exists") // ErrInvalidContainerID happens when a container ID is invalid ErrInvalidContainerID = errors.New("Invalid container ID") )
Functions ¶
func GetListFromDirectory ¶
GetListFromDirectory returns a list of containers on the given diretory
Types ¶
type Container ¶
type Container struct {
ID string `json:"id"`
Health string `json:"health,omitempty"`
Type string `json:"type,omitempty"`
Hooks *hooks.Hooks `json:"hooks,omitempty"`
Env map[string]string `json:"env,omitempty"`
Scale int `json:"scale,omitempty"`
}
Container structure
type Containers ¶
Containers map
Click to show internal directories.
Click to hide internal directories.