director

package
v0.0.0-...-5000e08 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Host string
	Port int

	CACert string

	Client       string
	ClientSecret string
}

func (Config) AnonymousUserConfig

func (c Config) AnonymousUserConfig() boshdir.Config

func (Config) UserConfig

func (c Config) UserConfig() boshdir.Config

func (Config) Validate

func (c Config) Validate() error

type Director

type Director interface {
	AllInstances() ([]Instance, error)
}

type DirectorImpl

type DirectorImpl struct {
	// contains filtered or unexported fields
}

func (DirectorImpl) AllInstances

func (d DirectorImpl) AllInstances() ([]Instance, error)

type Factory

type Factory struct {
	// contains filtered or unexported fields
}

func NewFactory

func NewFactory(config Config, logger boshlog.Logger) Factory

func (Factory) New

func (c Factory) New() (Director, error)

type Instance

type Instance interface {
	ID() string
	Group() string
	Deployment() string
	AZ() string

	AgentID() string
	HasVM() bool

	DeleteVM() error
}

type InstanceImpl

type InstanceImpl struct {
	// contains filtered or unexported fields
}

func (InstanceImpl) AZ

func (i InstanceImpl) AZ() string

func (InstanceImpl) AgentID

func (i InstanceImpl) AgentID() string

func (InstanceImpl) DeleteVM

func (i InstanceImpl) DeleteVM() error

func (InstanceImpl) Deployment

func (i InstanceImpl) Deployment() string

func (InstanceImpl) Group

func (i InstanceImpl) Group() string

func (InstanceImpl) HasVM

func (i InstanceImpl) HasVM() bool

func (InstanceImpl) ID

func (i InstanceImpl) ID() string

Jump to

Keyboard shortcuts

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