server

package
v0.0.0-...-eb548cc Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2015 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttachedVolumes

type AttachedVolumes []string

type Metadata

type Metadata map[string]interface{}

type Network

type Network struct {
	Type           string
	IP             string
	Gateway        string
	Netmask        string
	DNS            []string
	Default        []string
	Network        string
	SecurityGroups []string
}

func (Network) DNSList

func (n Network) DNSList() (dnsList []string)

func (Network) IPAddress

func (n Network) IPAddress() string

func (Network) IsDynamic

func (n Network) IsDynamic() bool

func (Network) IsManual

func (n Network) IsManual() bool

func (Network) IsVip

func (n Network) IsVip() bool

func (Network) NetworkName

func (n Network) NetworkName() string

func (Network) SecurityGroupsList

func (n Network) SecurityGroupsList() (securityGroupsList []string)

func (Network) Validate

func (n Network) Validate() error

type Networks

type Networks map[string]Network

func (Networks) DNSList

func (n Networks) DNSList() (dnsList []string)

func (Networks) FloatingIP

func (n Networks) FloatingIP() string

func (Networks) SecurityGroupsList

func (n Networks) SecurityGroupsList() (securityGroupsList []string)

func (Networks) Validate

func (n Networks) Validate() error

type OpenStackServerService

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

func NewOpenStackServerService

func NewOpenStackServerService(
	computeService *gophercloud.ServiceClient,
	floatingIPService floatingip.Service,
	networkService network.Service,
	securityGroupService securitygroup.Service,
	defaultSecurityGroups []string,
	disableConfigDrive bool,
	disableNeutron bool,
	uuidGen boshuuid.Generator,
	logger boshlog.Logger,
) OpenStackServerService

func (OpenStackServerService) AddNetworkConfiguration

func (s OpenStackServerService) AddNetworkConfiguration(id string, networks Networks) error

func (OpenStackServerService) AttachVolume

func (s OpenStackServerService) AttachVolume(id string, volumeID string) (string, string, error)

func (OpenStackServerService) AttachedVolumes

func (s OpenStackServerService) AttachedVolumes(id string) (AttachedVolumes, error)

func (OpenStackServerService) CleanUp

func (s OpenStackServerService) CleanUp(id string)

func (OpenStackServerService) Create

func (s OpenStackServerService) Create(serverProps *Properties, networks Networks, registryEndpoint string) (string, error)

func (OpenStackServerService) Delete

func (s OpenStackServerService) Delete(id string) error

func (OpenStackServerService) DeleteNetworkConfiguration

func (s OpenStackServerService) DeleteNetworkConfiguration(id string) error

func (OpenStackServerService) DetachVolume

func (s OpenStackServerService) DetachVolume(id string, volumeID string) error

func (OpenStackServerService) Find

func (OpenStackServerService) Reboot

func (s OpenStackServerService) Reboot(id string) error

func (OpenStackServerService) SetMetadata

func (s OpenStackServerService) SetMetadata(id string, serverMetadata Metadata) error

func (OpenStackServerService) UpdateNetworkConfiguration

func (s OpenStackServerService) UpdateNetworkConfiguration(id string, networks Networks) error

type OpenStackUserData

type OpenStackUserData struct {
	Server   OpenStackUserDataServerName       `json:"server"`
	Registry OpenStackUserDataRegistryEndpoint `json:"registry"`
	DNS      OpenStackUserDataDNSItems         `json:"dns,omitempty"`
}

type OpenStackUserDataDNSItems

type OpenStackUserDataDNSItems struct {
	NameServer []string `json:"nameserver,omitempty"`
}

type OpenStackUserDataRegistryEndpoint

type OpenStackUserDataRegistryEndpoint struct {
	Endpoint string `json:"endpoint"`
}

type OpenStackUserDataServerName

type OpenStackUserDataServerName struct {
	Name string `json:"name"`
}

type Properties

type Properties struct {
	ImageID          string
	FlavorID         string
	AvailabilityZone string
	KeyPair          string
	RootDiskSizeGb   int
	SchedulerHints   SchedulerHintsProperties
}

type SchedulerHintsProperties

type SchedulerHintsProperties struct {
	Group           string
	DifferentHost   []string
	SameHost        []string
	Query           []interface{}
	TargetCell      string
	BuildNearHostIP string
}

type Service

type Service interface {
	AddNetworkConfiguration(id string, networks Networks) error
	AttachVolume(id string, volumeID string) (string, string, error)
	AttachedVolumes(id string) (AttachedVolumes, error)
	CleanUp(id string)
	Create(vmProps *Properties, networks Networks, registryEndpoint string) (string, error)
	Delete(id string) error
	DeleteNetworkConfiguration(id string) error
	DetachVolume(id string, volumeID string) error
	Find(id string) (*servers.Server, bool, error)
	Reboot(id string) error
	SetMetadata(id string, serverMetadata Metadata) error
	UpdateNetworkConfiguration(id string, networks Networks) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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