libcompose

package
v0.0.0-...-28b0f66 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2017 License: MIT, Zlib Imports: 12 Imported by: 1

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL