app

package
v0.0.1-alpha Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2016 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BeforeApp

func BeforeApp(c *cli.Context) error

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

func ProjectKuberConvert

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

ProjectKuberConvert tranforms docker compose to k8s objects

func ProjectKuberDelete

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

ProjectKuberDelete deletes all rc, svc.

func ProjectKuberPS

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

ProjectKuberPS lists all rc, svc.

func ProjectKuberScale

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

ProjectKuberScale scales rc.

func ProjectKuberUp

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

ProjectKuberUp brings up rc, svc.

func RandStringBytes

func RandStringBytes(n int) string

RandStringBytes generates randomly n-character string

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

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

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.

Jump to

Keyboard shortcuts

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