cmd

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2017 License: GPL-3.0 Imports: 11 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Buildpacks = []string{
	"http://github.com/cloudfoundry/java-buildpack",
	"http://github.com/cloudfoundry/ruby-buildpack",
	"http://github.com/cloudfoundry/nodejs-buildpack",
	"http://github.com/cloudfoundry/go-buildpack",
	"http://github.com/cloudfoundry/python-buildpack",
	"http://github.com/cloudfoundry/php-buildpack",
	"http://github.com/cloudfoundry/staticfile-buildpack",
	"http://github.com/cloudfoundry/dotnet-core-buildpack",
	"http://github.com/cloudfoundry/binary-buildpack",
}

Functions

This section is empty.

Types

type App

type App interface {
	Command(name string) (string, error)
	Droplet(name string) (droplet io.ReadCloser, size int64, err error)
	SetDroplet(name string, droplet io.Reader, size int64) error
	Env(name string) (*remote.AppEnv, error)
	SetEnv(name string, env map[string]string) error
	Restart(name string) error
	Services(name string) (service.Services, error)
	Forward(name string, services service.Services) (service.Services, *service.ForwardConfig, error)
}

type Config

type Config interface {
	Load() (*local.LocalYML, error)
	Save(localYML *local.LocalYML) error
}

type Export

type Export struct {
	UI     UI
	Stager Stager
	Runner Runner
	FS     FS
	Help   Help
	Config Config
}

func (*Export) Match

func (e *Export) Match(args []string) bool

func (*Export) Run

func (e *Export) Run(args []string) error

type FS

type FS interface {
	Tar(path string) (io.ReadCloser, error)
	ReadFile(path string) (io.ReadCloser, int64, error)
	WriteFile(path string) (io.WriteCloser, error)
	MakeDirAll(path string) error
	IsDirEmpty(path string) (bool, error)
	Abs(path string) (string, error)
}

type Help

type Help interface {
	Show() error
}

type Pull

type Pull struct {
	UI     UI
	App    App
	FS     FS
	Help   Help
	Config Config
}

func (*Pull) Match

func (p *Pull) Match(args []string) bool

func (*Pull) Run

func (p *Pull) Run(args []string) error

type Push

type Push struct {
	UI     UI
	App    App
	FS     FS
	Help   Help
	Config Config
}

func (*Push) Match

func (p *Push) Match(args []string) bool

func (*Push) Run

func (p *Push) Run(args []string) error

type Run

type Run struct {
	UI     UI
	Stager Stager
	Runner Runner
	App    App
	FS     FS
	Help   Help
	Config Config
}

func (*Run) Match

func (r *Run) Match(args []string) bool

func (*Run) Run

func (r *Run) Run(args []string) error

type Runner

type Runner interface {
	Run(config *local.RunConfig, color local.Colorizer) (status int, err error)
	Export(config *local.ExportConfig, reference string) (imageID string, err error)
}

type Stage

type Stage struct {
	UI     UI
	Stager Stager
	App    App
	FS     FS
	Help   Help
	Config Config
}

func (*Stage) Match

func (s *Stage) Match(args []string) bool

func (*Stage) Run

func (s *Stage) Run(args []string) error

type Stager

type Stager interface {
	Stage(config *local.StageConfig, color local.Colorizer) (droplet local.Stream, err error)
	Download(path string) (stream local.Stream, err error)
}

type UI

type UI interface {
	Prompt(prompt string) string
	Output(format string, a ...interface{})
	Warn(format string, a ...interface{})
	Error(err error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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