Version: v0.1.0 Latest Latest

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

Go to latest
Published: Feb 2, 2016 License: Apache-2.0 Imports: 7 Imported by: 108




This section is empty.


This section is empty.


func BeforeApp

func BeforeApp(c *cli.Context) error

BeforeApp is an action that is executed before any cli command.

func ProjectBuild

func ProjectBuild(p *project.Project, c *cli.Context)

ProjectBuild builds or rebuilds services.

func ProjectCreate

func ProjectCreate(p *project.Project, c *cli.Context)

ProjectCreate creates all services but do not start them.

func ProjectDelete

func ProjectDelete(p *project.Project, c *cli.Context)

ProjectDelete delete services.

func ProjectDown

func ProjectDown(p *project.Project, c *cli.Context)

ProjectDown brings all services down.

func ProjectKill

func ProjectKill(p *project.Project, c *cli.Context)

ProjectKill forces stop service containers.

func ProjectLog

func ProjectLog(p *project.Project, c *cli.Context)

ProjectLog gets services logs.

func ProjectPause

func ProjectPause(p *project.Project, c *cli.Context)

ProjectPause pauses service containers.

func ProjectPort

func ProjectPort(p *project.Project, c *cli.Context)

ProjectPort prints the public port for a port binding.

func ProjectPs

func ProjectPs(p *project.Project, c *cli.Context)

ProjectPs lists the containers.

func ProjectPull

func ProjectPull(p *project.Project, c *cli.Context)

ProjectPull pulls images for services.

func ProjectRestart

func ProjectRestart(p *project.Project, c *cli.Context)

ProjectRestart restarts services.

func ProjectScale

func ProjectScale(p *project.Project, c *cli.Context)

ProjectScale scales services.

func ProjectStart

func ProjectStart(p *project.Project, c *cli.Context)

ProjectStart starts services.

func ProjectUnpause

func ProjectUnpause(p *project.Project, c *cli.Context)

ProjectUnpause unpauses service containers.

func ProjectUp

func ProjectUp(p *project.Project, c *cli.Context)

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.


type ProjectAction

type ProjectAction func(project *project.Project, c *cli.Context)

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.

		Name:   "ps",
		Usage:  "List containers",
		Action: app.WithProject(factory, app.ProjectPs),

type ProjectFactory

type ProjectFactory interface {
	// Create creates a libcompose project from the command line options (codegangsta cli context).
	Create(c *cli.Context) (*project.Project, error)

ProjectFactory is an interface that helps creating libcompose project.

Source Files

Jump to

Keyboard shortcuts

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