cmd

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2017 License: Apache-2.0 Imports: 18 Imported by: ? 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

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 {
	TarApp(path string) (io.ReadCloser, error)
	ReadFile(path string) (io.ReadCloser, int64, error)
	WriteFile(path string) (io.WriteCloser, error)
	OpenFile(path string) (fs.ReadResetWriteCloser, int64, error)
	MakeDirAll(path string) error
	Abs(path string) (string, error)
	Watch(dir string, wait time.Duration) (change <-chan time.Time, done chan<- struct{}, err error)
}

type Forwarder added in v0.14.0

type Forwarder interface {
	Forward(config *local.ForwardConfig) (health <-chan string, done func(), id string, err error)
}

type Help

type Help interface {
	Short()
}

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
	Forwarder Forwarder
	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) (status int64, err error)
	Export(config *local.ExportConfig) (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) (droplet engine.Stream, err error)
	Download(path string) (stream engine.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