Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProjectManager ¶
type ProjectManager struct {
// contains filtered or unexported fields
}
ProjectManager represents a service for managing libcompose projects.
func NewProjectManager ¶
func NewProjectManager() *ProjectManager
NewProjectManager initializes a new ProjectManager service.
func (*ProjectManager) GetProject ¶
func (manager *ProjectManager) GetProject(stack *dockm.Stack, endpoint *dockm.Endpoint) (project.APIProject, error)
GetProject will return a project associated to a stack inside an endpoint. If the project does not exists, it will be created.
type StackManager ¶
type StackManager struct {
// contains filtered or unexported fields
}
StackManager represents a service for managing stacks.
func NewStackManager ¶
func NewStackManager() *StackManager
NewStackManager initializes a new StackManager service.
func (*StackManager) Down ¶
func (manager *StackManager) Down(stack *dockm.Stack, endpoint *dockm.Endpoint) error
Down will execute the Down operation against a stack inside the specified endpoint.
func (*StackManager) Scale ¶
func (manager *StackManager) Scale(stack *dockm.Stack, endpoint *dockm.Endpoint, service string, scale int) error
Scale will execute the scale operation against a stack service inside the specified endpoint.
func (*StackManager) Up ¶
func (manager *StackManager) Up(stack *dockm.Stack, endpoint *dockm.Endpoint) error
Up will execute the Up operation against a stack inside the specified endpoint.
Click to show internal directories.
Click to hide internal directories.