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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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