Documentation ¶
Index ¶
- func BeforeApp(c *cli.Context) error
- func ProjectBuild(p *project.Project, c *cli.Context)
- func ProjectCreate(p *project.Project, c *cli.Context)
- func ProjectDelete(p *project.Project, c *cli.Context)
- func ProjectDown(p *project.Project, c *cli.Context)
- func ProjectKill(p *project.Project, c *cli.Context)
- func ProjectLog(p *project.Project, c *cli.Context)
- func ProjectPause(p *project.Project, c *cli.Context)
- func ProjectPort(p *project.Project, c *cli.Context)
- func ProjectPs(p *project.Project, c *cli.Context)
- func ProjectPull(p *project.Project, c *cli.Context)
- func ProjectRestart(p *project.Project, c *cli.Context)
- func ProjectRun(p *project.Project, c *cli.Context)
- func ProjectScale(p *project.Project, c *cli.Context)
- func ProjectStart(p *project.Project, c *cli.Context)
- func ProjectStop(p *project.Project, c *cli.Context)
- func ProjectUnpause(p *project.Project, c *cli.Context)
- func ProjectUp(p *project.Project, c *cli.Context)
- func WithProject(factory ProjectFactory, action ProjectAction) func(context *cli.Context)
- type ProjectAction
- type ProjectFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProjectBuild ¶
ProjectBuild builds or rebuilds services.
func ProjectCreate ¶
ProjectCreate creates all services but do not start them.
func ProjectDelete ¶
ProjectDelete deletes services.
func ProjectDown ¶
ProjectDown brings all services down (stops and clean containers).
func ProjectKill ¶
ProjectKill forces stop service containers.
func ProjectLog ¶
ProjectLog gets services logs.
func ProjectPause ¶
ProjectPause pauses service containers.
func ProjectPort ¶
ProjectPort prints the public port for a port binding.
func ProjectPull ¶
ProjectPull pulls images for services.
func ProjectRestart ¶
ProjectRestart restarts services.
func ProjectRun ¶ added in v0.2.0
ProjectRun runs a given command within a service's container.
func ProjectScale ¶
ProjectScale scales services.
func ProjectStart ¶
ProjectStart starts services.
func ProjectStop ¶ added in v0.2.0
ProjectStop stops all services.
func ProjectUnpause ¶
ProjectUnpause unpauses service containers.
func WithProject ¶
func WithProject(factory ProjectFactory, action ProjectAction) func(context *cli.Context)
WithProject is a helper function to create a cli.Command action with a ProjectFactory.
Types ¶
type ProjectAction ¶
ProjectAction is an adapter to allow the use of ordinary functions as libcompose actions. Any function that has the appropriate signature can be register as an action on a codegansta/cli command.
cli.Command{ Name: "ps", Usage: "List containers", Action: app.WithProject(factory, app.ProjectPs), }