local

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2017 License: GPL-3.0 Imports: 19 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
	Port      uint
	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
	Port        uint
	AppDir      string
	AppDirEmpty bool
	AppConfig   *AppConfig
}

type Runner

type Runner struct {
	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 {
	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
}

Jump to

Keyboard shortcuts

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