Documentation
¶
Index ¶
- func NewCloudStackProviderConfiguration(fileName string) (providers.ProviderConfiguration, error)
- type CloudStackOptions
- type ClusterIDSetter
- type Configuration
- type HostIDSetter
- type HypervisorSetter
- type Network
- type NetworkInfos
- type NetworkInterface
- type PodIDSetter
- type ProjectIDSetter
- type SecurityGroup
- type ServerInstance
- func (wrapper ServerInstance) AttachInstance(instanceName string, controlPlane bool, nodeIndex int) (handler providers.ProviderHandler, err error)
- func (wrapper ServerInstance) ConfigurationDidLoad() (err error)
- func (instance *ServerInstance) Create(controlPlane bool, nodeGroup, serviceOfferingId, userData string, diskSize int) (err error)
- func (wrapper ServerInstance) CreateInstance(instanceName, instanceType string, controlPlane bool, nodeIndex int) (handler providers.ProviderHandler, err error)
- func (instance *ServerInstance) Delete() (err error)
- func (wrapper ServerInstance) GetAvailableGpuTypes() map[string]string
- func (wrapper ServerInstance) GetMode() bool
- func (wrapper ServerInstance) InstanceExists(name string) (exists bool)
- func (instance *ServerInstance) PowerOff(ctx *context.Context) (err error)
- func (instance *ServerInstance) PowerOn(ctx *context.Context) (err error)
- func (wrapper ServerInstance) RetrieveNetworkInfos(vmuuid string, network *providers.Network) (err error)
- func (wrapper ServerInstance) SetMode(test bool)
- func (instance *ServerInstance) ShutdownGuest() (err error)
- func (instance *ServerInstance) Status() (status providers.InstanceStatus, err error)
- func (wrapper ServerInstance) UUID(name string) (vmuuid string, err error)
- func (instance *ServerInstance) WaitForIP(callback providers.CallbackWaitSSHReady) (address string, err error)
- func (instance *ServerInstance) WaitForPowered() error
- type SetKeypairSetter
- type TemplateIDSetter
- type VpcIDSetter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCloudStackProviderConfiguration ¶
func NewCloudStackProviderConfiguration(fileName string) (providers.ProviderConfiguration, error)
Types ¶
type CloudStackOptions ¶
type CloudStackOptions []cloudstack.OptionFunc
func (CloudStackOptions) ApplyOptions ¶
func (opts CloudStackOptions) ApplyOptions(cs *cloudstack.CloudStackClient, params interface{}) (err error)
type ClusterIDSetter ¶
type ClusterIDSetter interface {
SetClusterid(string)
}
type Configuration ¶
type Configuration struct {
ApiUrl string `json:"api-url,omitempty"`
ApiKey string `json:"api-key,omitempty"`
SecretKey string `json:"secret-key,omitempty"`
SSLNoVerify bool `json:"ssl-no-verify,omitempty"`
SshKeyName string `json:"ssh-key-name,omitempty"`
ProjectID string `json:"project-id,omitempty"`
ZoneId string `json:"zone-id,omitempty"`
PodId string `json:"pod-id,omitempty"`
ClusterId string `json:"cluster-id,omitempty"`
HostId string `json:"host-id,omitempty"`
VpcId string `json:"vpc-id,omitempty"`
Hypervisor string `json:"hypervisor,omitempty"`
TemplateId string `json:"template,omitempty"`
Timeout time.Duration `json:"timeout"`
AvailableGPUTypes map[string]string `json:"gpu-types"`
UseBind9 bool `json:"use-bind9"`
Bind9Host string `json:"bind9-host"`
RndcKeyFile string `json:"rndc-key-file"`
Network Network `json:"network"`
}
type HostIDSetter ¶
type HostIDSetter interface {
SetHostid(string)
}
type HypervisorSetter ¶
type HypervisorSetter interface {
SetHypervisor(string)
}
type Network ¶
type Network struct {
Domain string `json:"domain,omitempty" yaml:"domain,omitempty"`
Interfaces []*NetworkInterface `json:"interfaces,omitempty" yaml:"interfaces,omitempty"`
PublicControlPlaneNode bool `json:"public-control-plane,omitempty"`
PublicWorkerNode bool `json:"public-worker-node,omitempty"`
SecurityGroup SecurityGroup `json:"security-group"`
}
type NetworkInfos ¶
type NetworkInterface ¶
type NetworkInterface struct {
Enabled *bool `json:"enabled,omitempty" yaml:"primary,omitempty"`
Primary bool `json:"primary,omitempty" yaml:"primary,omitempty"`
NetworkName string `json:"network,omitempty" yaml:"network,omitempty"`
DHCP bool `json:"dhcp,omitempty" yaml:"dhcp,omitempty"`
IPAddress string `json:"address,omitempty" yaml:"address,omitempty"`
Netmask string `json:"netmask,omitempty" yaml:"netmask,omitempty"`
}
type PodIDSetter ¶
type PodIDSetter interface {
SetPodid(string)
}
type ProjectIDSetter ¶
type ProjectIDSetter interface {
SetProjectid(string)
}
type SecurityGroup ¶
type ServerInstance ¶
type ServerInstance struct {
NodeIndex int
InstanceName string
PrivateDNSName string
InstanceID string
AddressIP string
PublicAddress string
PublicAddressID string
ZoneName string
HostName string
// contains filtered or unexported fields
}
func (ServerInstance) AttachInstance ¶
func (ServerInstance) ConfigurationDidLoad ¶
func (wrapper ServerInstance) ConfigurationDidLoad() (err error)
func (*ServerInstance) Create ¶
func (instance *ServerInstance) Create(controlPlane bool, nodeGroup, serviceOfferingId, userData string, diskSize int) (err error)
Create will create a named VM not powered memory and disk are in megabytes
func (ServerInstance) CreateInstance ¶
func (*ServerInstance) Delete ¶
func (instance *ServerInstance) Delete() (err error)
func (ServerInstance) GetAvailableGpuTypes ¶
func (ServerInstance) InstanceExists ¶
func (*ServerInstance) PowerOff ¶
func (instance *ServerInstance) PowerOff(ctx *context.Context) (err error)
func (*ServerInstance) PowerOn ¶
func (instance *ServerInstance) PowerOn(ctx *context.Context) (err error)
func (ServerInstance) RetrieveNetworkInfos ¶
func (*ServerInstance) ShutdownGuest ¶
func (instance *ServerInstance) ShutdownGuest() (err error)
func (*ServerInstance) Status ¶
func (instance *ServerInstance) Status() (status providers.InstanceStatus, err error)
func (*ServerInstance) WaitForIP ¶
func (instance *ServerInstance) WaitForIP(callback providers.CallbackWaitSSHReady) (address string, err error)
WaitForIP wait ip a VM by name
func (*ServerInstance) WaitForPowered ¶
func (instance *ServerInstance) WaitForPowered() error
WaitForPowered wait ip a VM by name
type SetKeypairSetter ¶
type SetKeypairSetter interface {
SetKeypair(string)
}
type TemplateIDSetter ¶
type TemplateIDSetter interface {
SetTemplateid(string)
}
type VpcIDSetter ¶
type VpcIDSetter interface {
SetVpcid(string)
}
Click to show internal directories.
Click to hide internal directories.