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 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 ProjectScale(p *project.Project, c *cli.Context)
- func ProjectStart(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 BeforeApp ¶
BeforeApp is an action that is executed before any cli command.
func ProjectBuild ¶
ProjectBuild builds or rebuilds services.
func ProjectCreate ¶
ProjectCreate creates all services but do not start them.
func ProjectDelete ¶
ProjectDelete delete services.
func ProjectDown ¶
ProjectDown brings all services down.
func ProjectKill ¶
ProjectKill forces stop service containers.
func ProjectLog ¶
ProjectLog gets services logs.
func ProjectPort ¶
ProjectPort prints the public port for a port binding.
func ProjectPull ¶
ProjectPull pulls images for services.
func ProjectRestart ¶
ProjectRestart restarts services.
func ProjectScale ¶
ProjectScale scales services.
func ProjectStart ¶
ProjectStart starts services.
func ProjectUp ¶
ProjectUp brings all services up.
func WithProject ¶
func WithProject(factory ProjectFactory, action ProjectAction) func(context *cli.Context)
WithProject is an 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), }