vm

package
v0.0.0-...-8e9553d Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultBoshPolicy = "22,80,443,8443,25777,25555,8447,6868"
View Source
const DefaultBoshPolicyName = "DefaultBoshPolicy"

Variables

This section is empty.

Functions

This section is empty.

Types

type Creator

type Creator interface {
	CreateInstance(icfg InstanceConfiguration) (*resource.Instance, error)
}

func NewCreator

func NewCreator(c client.Connector, l boshlog.Logger) Creator

type CreatorFactory

type CreatorFactory func(client.Connector, boshlog.Logger) Creator

type Finder

type Finder interface {
	FindInstance(instanceID string) (*resource.Instance, error)
}

func NewFinder

func NewFinder(c client.Connector, l boshlog.Logger) Finder

type FinderFactory

type FinderFactory func(client.Connector, boshlog.Logger) Finder

type InstanceConfiguration

type InstanceConfiguration struct {
	ImageId        string
	Name           string
	ServerIp       string
	DatacenterId   string
	SecondaryIps   []string
	Cores          int
	DiskSize       int
	Ram            float32
	SSHKey         string
	Network        Networks
	InstanceFlavor string
	SSHKeyPair     string
	EphemeralDisk  int
	LBId           string
}

type NetworkConfiguration

type NetworkConfiguration struct {
	PrivateNetworkId string
	PolicyName       string
	OpenPorts        []Rule
}

type Networks

type Networks []NetworkConfiguration

type Rule

type Rule struct {
	PortFrom *int
	PortTo   *int
	Source   string
}

type Terminator

type Terminator interface {
	TerminateInstance(instanceID string) error
}

func NewTerminator

func NewTerminator(c client.Connector, l boshlog.Logger) Terminator

type TerminatorFactory

type TerminatorFactory func(client.Connector, boshlog.Logger) Terminator

type Updater

type Updater interface {
	UpdateInstanceName(instanceID string, name string) error
}

func NewUpdater

func NewUpdater(c client.Connector, l boshlog.Logger) Updater

type UpdaterFactory

type UpdaterFactory func(client.Connector, boshlog.Logger) Updater

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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