local

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2017 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	Name       string            `yaml:"name"`
	Command    string            `yaml:"command,omitempty"`
	StagingEnv map[string]string `yaml:"staging_env,omitempty"`
	RunningEnv map[string]string `yaml:"running_env,omitempty"`
	Env        map[string]string `yaml:"env,omitempty"`
	Services   service.Services  `yaml:"services,omitempty"`
}

type Colorizer

type Colorizer func(string, ...interface{}) string

type Config

type Config struct {
	Path string
}

func (*Config) Load

func (c *Config) Load() (*LocalYML, error)

func (*Config) Save

func (c *Config) Save(localYML *LocalYML) error

type ExportConfig

type ExportConfig struct {
	Droplet   Stream
	Launcher  Stream
	AppConfig *AppConfig
}

type Forwarder

type Forwarder struct {
	SSHPass Stream
	Config  *service.ForwardConfig
}

type LocalYML

type LocalYML struct {
	Applications []*AppConfig `yaml:"applications,omitempty"`
}

type RunConfig

type RunConfig struct {
	Droplet     Stream
	Launcher    Stream
	Forwarder   Forwarder
	IP          string
	Port        uint
	AppDir      string
	AppDirEmpty bool
	AppConfig   *AppConfig
}

type Runner

type Runner struct {
	UI           UI
	StackVersion string
	Docker       *docker.Client
	Logs         io.Writer
	ExitChan     <-chan struct{}
}

func (*Runner) Export

func (r *Runner) Export(config *ExportConfig, reference string) (imageID string, err error)

func (*Runner) Run

func (r *Runner) Run(config *RunConfig, color Colorizer) (status int64, err error)

type StageConfig

type StageConfig struct {
	AppTar     io.Reader
	Buildpacks []string
	AppConfig  *AppConfig
}

type Stager

type Stager struct {
	UI           UI
	DiegoVersion string
	GoVersion    string
	StackVersion string
	Docker       *docker.Client
	Logs         io.Writer
	ExitChan     <-chan struct{}
}

func (*Stager) Download

func (s *Stager) Download(path string) (stream Stream, err error)

func (*Stager) Stage

func (s *Stager) Stage(config *StageConfig, color Colorizer) (droplet Stream, err error)

type Stream

type Stream struct {
	io.ReadCloser
	Size int64
}

func NewStream added in v0.3.0

func NewStream(data io.ReadCloser, size int64) Stream

func (Stream) Write added in v0.3.0

func (s Stream) Write(dst io.Writer) error

type UI added in v0.7.0

type UI interface {
	Loading(message string, f func() error) error
}

Jump to

Keyboard shortcuts

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