droplet_runner

package
v0.0.0-...-098adc7 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2015 License: Apache-2.0 Imports: 17 Imported by: 5

Documentation

Index

Constants

View Source
const (
	DropletStack  = "cflinuxfs2"
	DropletRootFS = "preloaded:" + DropletStack
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BlobStore

type BlobStore interface {
	List() ([]blob.Blob, error)
	Delete(path string) error
	Upload(path string, contents io.ReadSeeker) error
	Download(path string) (io.ReadCloser, error)

	blob_store.DropletStore
}

type Droplet

type Droplet struct {
	Name    string
	Created time.Time
	Size    int64
}

type DropletRunner

type DropletRunner interface {
	UploadBits(dropletName, uploadPath string) error
	BuildDroplet(taskName, dropletName, buildpackUrl string, environment map[string]string, memoryMB, cpuWeight, diskMB int) error
	LaunchDroplet(appName, dropletName, startCommand string, startArgs []string, appEnvironmentParams app_runner.AppEnvironmentParams) error
	ListDroplets() ([]Droplet, error)
	RemoveDroplet(dropletName string) error
	ExportDroplet(dropletName string) (io.ReadCloser, error)
	ImportDroplet(dropletName, dropletPath string) error
}

func New

func New(appRunner app_runner.AppRunner, taskRunner task_runner.TaskRunner, config *config.Config, blobStore BlobStore, appExaminer app_examiner.AppExaminer, proxyConfReader ProxyConfReader) DropletRunner

type HTTPProxyConfReader

type HTTPProxyConfReader struct {
	URL string
}

func (*HTTPProxyConfReader) ProxyConf

func (p *HTTPProxyConfReader) ProxyConf() (ProxyConf, error)

type ProxyConf

type ProxyConf struct {
	HTTPProxy  string `json:"http_proxy"`
	HTTPSProxy string `json:"https_proxy"`
	NoProxy    string `json:"no_proxy"`
}

type ProxyConfReader

type ProxyConfReader interface {
	ProxyConf() (ProxyConf, error)
}

Directories

Path Synopsis
cf_ignore/fake_cf_ignore
This file was generated by counterfeiter
This file was generated by counterfeiter
fake_blob_store_verifier
This file was generated by counterfeiter
This file was generated by counterfeiter
zipper/fake_zipper
This file was generated by counterfeiter
This file was generated by counterfeiter
This file was generated by counterfeiter
This file was generated by counterfeiter
This file was generated by counterfeiter
This file was generated by counterfeiter
This file was generated by counterfeiter
This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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