Documentation
¶
Index ¶
- Variables
- func GetListFromDirectory(root string) ([]string, error)
- func GetStatus(projectID, containerID string) string
- func Link(projectID, containerPath string, container *Container) error
- func List(projectID string)
- func Restart(projectID, containerID string)
- func Unlink(projectID, containerID string) error
- func Validate(projectID, containerID string) (err error)
- type Container
- type Containers
- type Register
- type RegisterContainer
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"`
Port int `json:"port,omitempty"`
State string `json:"state,omitempty"`
Type string `json:"type,omitempty"`
Hooks *hooks.Hooks `json:"hooks,omitempty"`
DeployIgnore []string `json:"deploy_ignore,omitempty"`
Env map[string]string `json:"env,omitempty"`
Instances int `json:"instances,omitempty"`
}
Container structure
type Register ¶
type Register struct {
Category string `json:"category"`
ContainerDefault RegisterContainer `json:"containerDefault"`
Description string `json:"description"`
}
Register for the container structure
func GetRegistry ¶
func GetRegistry() (registry []Register)
GetRegistry gets a list of container images
Click to show internal directories.
Click to hide internal directories.