provision

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2019 License: Apache-2.0 Imports: 20 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

View Source
const (
	Preparing     = "preparing"
	Deploying     = "deploying"
	RunningErrand = "running-errand"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Bosh added in v0.0.15

type Bosh struct {
	Runner BoshRunner
}

func NewBosh added in v0.0.15

func NewBosh(runner BoshRunner) *Bosh

func (*Bosh) GetVMProgress added in v0.0.15

func (b *Bosh) GetVMProgress(start time.Time, deploymentName string, isErrand bool) VMProgress

type BoshRunner added in v0.0.15

type BoshRunner interface {
	Output(args ...string) ([]byte, error)
}

type Controller

type Controller struct {
	Config    config.Config
	Workspace *workspace.Workspace
}

func NewController

func NewController(config config.Config) *Controller

func (*Controller) DeployBosh

func (c *Controller) DeployBosh() error

func (*Controller) DeployService

func (c *Controller) DeployService(service workspace.Service, dockerRegistries []string) error

func (*Controller) DeployServices

func (c *Controller) DeployServices(ui UI, services []workspace.Service, dockerRegistries []string) error

func (*Controller) GetWhiteListedService added in v0.0.13

func (c *Controller) GetWhiteListedService(serviceName string, whiteList []workspace.Service) (*workspace.Service, error)

func (*Controller) Ping

func (c *Controller) Ping(duration time.Duration) error

func (*Controller) WhiteListServices

func (c *Controller) WhiteListServices(whiteList string, services []workspace.Service) ([]workspace.Service, error)

type Instance added in v0.0.15

type Instance struct {
	ID           string `json:"instance"`
	Process      string `json:"process"`
	ProcessState string `json:"process_state"`
}

type SSH added in v0.0.14

type SSH struct {
	Error error
	// contains filtered or unexported fields
}

func NewSSH added in v0.0.15

func NewSSH(
	ip string,
	port string,
	key []byte,
	timeout time.Duration,
	stdout io.Writer,
	stderr io.Writer,
) (*SSH, error)

func (*SSH) Close added in v0.0.15

func (s *SSH) Close()

func (*SSH) RetrieveFile added in v0.0.14

func (s *SSH) RetrieveFile(filePath string, remoteFilePath string)

func (*SSH) Run added in v0.0.15

func (s *SSH) Run(command string)

func (*SSH) SendData added in v0.0.15

func (s *SSH) SendData(srcData []byte, remoteFilePath string)

func (*SSH) SendFile added in v0.0.15

func (s *SSH) SendFile(filePath string, remoteFilePath string)

type UI

type UI interface {
	Say(message string, args ...interface{})
	Writer() io.Writer
}

type VMProgress added in v0.0.15

type VMProgress struct {
	State    string
	Total    int
	Done     int
	Duration time.Duration
}

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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