start

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnalyticsClient

type AnalyticsClient interface {
	Event(event string, data ...map[string]interface{}) error
	PromptOptInIfNeeded(message string) error
}

type AnalyticsD

type AnalyticsD interface {
	Start() error
	Stop() error
	IsRunning() (bool, error)
}

type Args

type Args struct {
	Registries          string
	DeploySingleService string
	DepsPath            string
	NoProvision         bool
	Cpus                int
	Mem                 int
}

type CFDevD

type CFDevD interface {
	Install() error
}

type Cache

type Cache interface {
	Sync(resource.Catalog) error
}

type Env added in v0.0.13

type Env interface {
	CreateDirs() error
	SetupState(depsFile string) error
}

type Host

type Host interface {
	CheckRequirements() error
}

type HostNet

type HostNet interface {
	AddLoopbackAliases(...string) error
}

type Hypervisor

type Hypervisor interface {
	CreateVM(vm hypervisor.VM) error
	Start(vmName string) error
	Stop(vmName string) error
	IsRunning(vmName string) (bool, error)
}

type MetaDataReader added in v0.0.13

type MetaDataReader interface {
	Read(tarballPath string) (metadata.Metadata, error)
}

type Provision added in v0.0.13

type Provision interface {
	Execute(args Args) error
}

type Provisioner

type Provisioner interface {
	Ping(duration time.Duration) error
}

type Start

type Start struct {
	Exit            chan struct{}
	LocalExit       chan string
	UI              UI
	Config          config.Config
	MetaDataReader  MetaDataReader
	Analytics       AnalyticsClient
	AnalyticsToggle Toggle
	HostNet         HostNet
	Host            Host
	Cache           Cache
	CFDevD          CFDevD
	VpnKit          VpnKit
	AnalyticsD      AnalyticsD
	Hypervisor      Hypervisor
	Stop            Stop
	Provisioner     Provisioner
	Provision       Provision
	Env             Env
	Profiler        SystemProfiler
}

func (*Start) Cmd

func (s *Start) Cmd() *cobra.Command

func (*Start) Execute

func (s *Start) Execute(args Args) error

type Stop

type Stop interface {
	RunE(cmd *cobra.Command, args []string) error
}

type SystemProfiler

type SystemProfiler interface {
	GetAvailableMemory() (uint64, error)
	GetTotalMemory() (uint64, error)
}

type Toggle

type Toggle interface {
	Enabled() bool
	SetCFAnalyticsEnabled(value bool) error
	SetCustomAnalyticsEnabled(value bool) error
	SetProp(k, v string) error
}

type UI

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

type VpnKit

type VpnKit interface {
	Start() error
	Stop() error
	Watch(chan string)
}

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