start

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2018 License: Apache-2.0 Imports: 17 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
	DepsIsoPath         string
	NoProvision         bool
	Cpus                int
	Mem                 int
}

type CFDevD

type CFDevD interface {
	Install() error
}

type Cache

type Cache interface {
	Sync(resource.Catalog) 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 IsoReader

type IsoReader interface {
	Read(isoPath string) (iso.Metadata, error)
}

type Provisioner

type Provisioner interface {
	Ping() error
	DeployBosh() error
	DeployCloudFoundry([]string) error
	GetServices() ([]provision.Service, string, error)
	WhiteListServices(string, []provision.Service) ([]provision.Service, error)
	DeployServices(provision.UI, []provision.Service) error
	ReportProgress(provision.UI, string)
}

type Start

type Start struct {
	Exit            chan struct{}
	LocalExit       chan string
	UI              UI
	Config          config.Config
	IsoReader       IsoReader
	Analytics       AnalyticsClient
	AnalyticsToggle Toggle
	HostNet         HostNet
	Host            Host
	Cache           Cache
	CFDevD          CFDevD
	VpnKit          VpnKit
	AnalyticsD      AnalyticsD
	Hypervisor      Hypervisor
	Provisioner     Provisioner
	Stop            Stop
	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