Documentation
¶
Index ¶
- Variables
- func GetListFromDirectory(root string) ([]string, error)
- func Link(projectID, containerPath string, container *Container) error
- func Restart(projectID, containerID string) error
- func Unlink(projectID, containerID string) error
- func Validate(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"`
Name string `json:"name,omitempty"`
Health string `json:"health,omitempty"`
Type string `json:"type,omitempty"`
Hooks *hooks.Hooks `json:"hooks,omitempty"`
Env map[string]string `json:"env,omitempty"`
Instances int `json:"instances,omitempty"`
}
Container structure
type Containers ¶
Containers map
Click to show internal directories.
Click to hide internal directories.