Documentation ¶
Index ¶
- Constants
- type ApiError
- type ApiErrorResponseBody
- type ApiInfo
- type Audit
- type AuditUserRef
- type ClientOptions
- type ComputeCluster
- type Disk
- type DiskUpdate
- type KubernetesCluster
- type KubernetesClusterCreate
- type KubernetesClusterExt
- type KubernetesClusterKubeConfigRequest
- type KubernetesClusterKubeConfigResponse
- type KubernetesClusterService
- type KubernetesClusterServiceImpl
- func (c *KubernetesClusterServiceImpl) Create(create KubernetesClusterCreate) (*Reference, error)
- func (c *KubernetesClusterServiceImpl) Delete(id string) error
- func (c *KubernetesClusterServiceImpl) Get(id string) (*KubernetesClusterExt, error)
- func (c *KubernetesClusterServiceImpl) GetKubeConfig(id string, endpoint string) (KubernetesClusterKubeConfigResponse, error)
- func (c *KubernetesClusterServiceImpl) Page(request PageRequest) (*Page, *[]KubernetesCluster, error)
- func (c *KubernetesClusterServiceImpl) Update(id string, update KubernetesClusterUpdate) error
- type KubernetesClusterUpdate
- type NetworkInterface
- type NetworkInterfaceUpdate
- type OpenConsoleResult
- type OwnerReference
- type Page
- type PageRequest
- type PreviderClient
- func (c *PreviderClient) ApiInfo() (*ApiInfo, error)
- func (c *PreviderClient) Delete(url string, responseBody interface{}) error
- func (c *PreviderClient) Get(url string, responseBody interface{}, requestParams *PageRequest) error
- func (c *PreviderClient) Post(url string, requestBody, responseBody interface{}) error
- func (c *PreviderClient) Put(url string, requestBody, responseBody interface{}) error
- type Reference
- type STaaSCredential
- type STaaSEnvironment
- type STaaSEnvironmentCreate
- type STaaSEnvironmentDelete
- type STaaSEnvironmentExt
- type STaaSEnvironmentService
- type STaaSEnvironmentServiceImpl
- func (c *STaaSEnvironmentServiceImpl) Create(create STaaSEnvironmentCreate) (*Reference, error)
- func (c *STaaSEnvironmentServiceImpl) CreateNetwork(id string, create STaaSNetworkCreate) error
- func (c *STaaSEnvironmentServiceImpl) CreateVolume(id string, create STaaSVolumeCreate) error
- func (c *STaaSEnvironmentServiceImpl) Delete(id string, delete STaaSEnvironmentDelete) error
- func (c *STaaSEnvironmentServiceImpl) DeleteNetwork(id string, networkId string) error
- func (c *STaaSEnvironmentServiceImpl) DeleteVolume(id string, volumeId string, delete STaaSVolumeDelete) error
- func (c *STaaSEnvironmentServiceImpl) Get(id string) (*STaaSEnvironmentExt, error)
- func (c *STaaSEnvironmentServiceImpl) Page(request PageRequest) (*Page, *[]STaaSEnvironment, error)
- func (c *STaaSEnvironmentServiceImpl) Update(id string, update STaaSEnvironmentUpdate) error
- func (c *STaaSEnvironmentServiceImpl) UpdateVolume(id string, volumeId string, create STaaSVolumeUpdate) error
- type STaaSEnvironmentUpdate
- type STaaSNetwork
- type STaaSNetworkCreate
- type STaaSRoute
- type STaaSVolume
- type STaaSVolumeCreate
- type STaaSVolumeDelete
- type STaaSVolumeUpdate
- type Task
- type TaskService
- type TaskServiceOp
- type VirtualFirewall
- type VirtualFirewallCreate
- type VirtualFirewallExt
- type VirtualFirewallNatRule
- type VirtualFirewallNatRuleCreate
- type VirtualFirewallService
- type VirtualFirewallServiceImpl
- func (c *VirtualFirewallServiceImpl) Create(create VirtualFirewallCreate) (*Reference, error)
- func (c *VirtualFirewallServiceImpl) CreateNatRule(firewallId string, create VirtualFirewallNatRuleCreate) (*Reference, error)
- func (c *VirtualFirewallServiceImpl) Delete(id string) error
- func (c *VirtualFirewallServiceImpl) DeleteNatRule(firewallId string, id string) error
- func (c *VirtualFirewallServiceImpl) Get(id string) (*VirtualFirewallExt, error)
- func (c *VirtualFirewallServiceImpl) Page(request PageRequest) (*Page, *[]VirtualFirewall, error)
- func (c *VirtualFirewallServiceImpl) PageNatRules(firewallId string, request PageRequest) (*Page, *[]VirtualFirewallNatRule, error)
- func (c *VirtualFirewallServiceImpl) Update(id string, update VirtualFirewallUpdate) error
- func (c *VirtualFirewallServiceImpl) UpdateNatRule(firewallId string, id string, create VirtualFirewallNatRuleCreate) error
- type VirtualFirewallUpdate
- type VirtualMachine
- type VirtualMachineCreate
- type VirtualMachineExt
- type VirtualMachineTask
- type VirtualMachineTemplate
- type VirtualMachineUpdate
- type VirtualNetwork
- type VirtualNetworkService
- type VirtualNetworkServiceImpl
- func (c *VirtualNetworkServiceImpl) Create(vn *VirtualNetworkUpdate) (*VirtualNetworkTask, error)
- func (c *VirtualNetworkServiceImpl) Delete(id string) (*VirtualNetworkTask, error)
- func (c *VirtualNetworkServiceImpl) Get(id string) (*VirtualNetwork, error)
- func (c *VirtualNetworkServiceImpl) Page(request PageRequest) (*Page, *[]VirtualNetwork, error)
- func (c *VirtualNetworkServiceImpl) Update(id string, vn *VirtualNetworkUpdate) (*VirtualNetworkTask, error)
- type VirtualNetworkTask
- type VirtualNetworkUpdate
- type VirtualServerService
- type VirtualServerServiceImpl
- func (c *VirtualServerServiceImpl) ComputeClusterList() (*[]ComputeCluster, error)
- func (c *VirtualServerServiceImpl) Control(id string, action string) (*VirtualMachineTask, error)
- func (c *VirtualServerServiceImpl) Create(vm *VirtualMachineCreate) (*VirtualMachineTask, error)
- func (c *VirtualServerServiceImpl) Delete(id string) (*VirtualMachineTask, error)
- func (c *VirtualServerServiceImpl) Get(id string) (*VirtualMachineExt, error)
- func (c *VirtualServerServiceImpl) OpenConsole(id string) (*OpenConsoleResult, error)
- func (c *VirtualServerServiceImpl) Page(request PageRequest) (*Page, *[]VirtualMachine, error)
- func (c *VirtualServerServiceImpl) Update(id string, vm *VirtualMachineUpdate) (*VirtualMachineTask, error)
- func (c *VirtualServerServiceImpl) VirtualMachineTemplateList() (*[]VirtualMachineTemplate, error)
Constants ¶
View Source
const ( VirtualNetworkStateNew = "NEW" VirtualNetworkStateReady = "READY" )
View Source
const ( VmActionPowerOn = "POWERON" VmActionPowerOff = "POWEROFF" VmActionShutdown = "SHUTDOWN" VmActionReboot = "REBOOT" VmActionSuspend = "SUSPEND" VmActionReset = "RESET" VmStateNew = "NEW" VmStateDeploying = "DEPLOYING" VmStatePoweredOff = "POWEREDOFF" VmStatePoweredOn = "POWEREDON" )
noinspection GoUnusedConst
View Source
const (
DefaultTimeout = 5 * time.Minute
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiErrorResponseBody ¶
type Audit ¶ added in v1.3.0
type Audit struct { CreatedBy AuditUserRef `json:"createdBy"` CreatedAt int `json:"createdAt"` LastModifiedBy AuditUserRef `json:"lastModifiedBy"` LastModifiedAt int `json:"lastModifiedAt"` }
type AuditUserRef ¶ added in v1.3.0
type ClientOptions ¶
type ComputeCluster ¶
type DiskUpdate ¶ added in v1.1.3
type KubernetesCluster ¶ added in v1.1.3
type KubernetesClusterCreate ¶ added in v1.1.3
type KubernetesClusterCreate struct { KubernetesClusterUpdate Vips []string `json:"vips"` Endpoints []string `json:"endpoints,omitempty"` CNI string `json:"cni"` Network string `json:"network"` }
type KubernetesClusterExt ¶ added in v1.1.3
type KubernetesClusterExt struct { KubernetesCluster Vips []string `json:"vips"` Endpoints []string `json:"endpoints"` MinimalNodes int `json:"minimalNodes"` MaximalNodes int `json:"maximalNodes"` AutoUpdate bool `json:"autoUpdate"` AutoScaleEnabled bool `json:"autoScaleEnabled"` ControlPlaneCpuCores int `json:"controlPlaneCpuCores"` ControlPlaneMemoryGb int `json:"controlPlaneMemoryGb"` ControlPlaneStorageGb int `json:"controlPlaneStorageGb"` NodeCpuCores int `json:"nodeCpuCores"` NodeMemoryGb int `json:"nodeMemoryGb"` NodeStorageGb int `json:"nodeStorageGb"` ComputeCluster string `json:"computeCluster"` CNI string `json:"cni"` HighAvailableControlPlane bool `json:"highAvailableControlPlane"` Network string `json:"network"` Reference string `json:"reference"` }
type KubernetesClusterKubeConfigRequest ¶ added in v1.1.3
type KubernetesClusterKubeConfigRequest struct {
Endpoint string `json:"endpoint"`
}
type KubernetesClusterKubeConfigResponse ¶ added in v1.1.3
type KubernetesClusterKubeConfigResponse struct {
Config string `json:"config"`
}
type KubernetesClusterService ¶ added in v1.1.3
type KubernetesClusterService interface { Page(request PageRequest) (*Page, *[]KubernetesCluster, error) Get(id string) (*KubernetesClusterExt, error) Create(create KubernetesClusterCreate) (*Reference, error) Delete(id string) error Update(id string, update KubernetesClusterUpdate) error GetKubeConfig(id string, endpoint string) (KubernetesClusterKubeConfigResponse, error) }
type KubernetesClusterServiceImpl ¶ added in v1.3.0
type KubernetesClusterServiceImpl struct {
// contains filtered or unexported fields
}
func (*KubernetesClusterServiceImpl) Create ¶ added in v1.3.0
func (c *KubernetesClusterServiceImpl) Create(create KubernetesClusterCreate) (*Reference, error)
func (*KubernetesClusterServiceImpl) Delete ¶ added in v1.3.0
func (c *KubernetesClusterServiceImpl) Delete(id string) error
func (*KubernetesClusterServiceImpl) Get ¶ added in v1.3.0
func (c *KubernetesClusterServiceImpl) Get(id string) (*KubernetesClusterExt, error)
func (*KubernetesClusterServiceImpl) GetKubeConfig ¶ added in v1.3.0
func (c *KubernetesClusterServiceImpl) GetKubeConfig(id string, endpoint string) (KubernetesClusterKubeConfigResponse, error)
func (*KubernetesClusterServiceImpl) Page ¶ added in v1.3.0
func (c *KubernetesClusterServiceImpl) Page(request PageRequest) (*Page, *[]KubernetesCluster, error)
func (*KubernetesClusterServiceImpl) Update ¶ added in v1.3.0
func (c *KubernetesClusterServiceImpl) Update(id string, update KubernetesClusterUpdate) error
type KubernetesClusterUpdate ¶ added in v1.1.3
type KubernetesClusterUpdate struct { Name string `json:"name"` Version string `json:"version,omitempty"` MinimalNodes int `json:"minimalNodes"` MaximalNodes int `json:"maximalNodes,omitempty"` AutoUpdate bool `json:"autoUpdate"` AutoScaleEnabled bool `json:"autoScaleEnabled"` ControlPlaneCpuCores int `json:"controlPlaneCpuCores"` ControlPlaneMemoryGb int `json:"controlPlaneMemoryGb"` ControlPlaneStorageGb int `json:"controlPlaneStorageGb"` NodeCpuCores int `json:"nodeCpuCores"` NodeMemoryGb int `json:"nodeMemoryGb"` NodeStorageGb int `json:"nodeStorageGb"` ComputeCluster string `json:"computeCluster"` HighAvailableControlPlane bool `json:"highAvailableControlPlane"` }
type NetworkInterface ¶
type NetworkInterface struct { Id string `json:"id,omitempty"` Network string `json:"network"` Connected bool `json:"connected"` MacAddress string `json:"macAddress,omitempty"` DiscoveredAddresses []string `json:"discoveredAddresses,omitempty"` AssignedAddresses []string `json:"assignedAddresses,omitempty"` Primary bool `json:"primary,omitempty"` Label string `json:"label,omitempty"` Type string `json:"type,omitempty"` }
type NetworkInterfaceUpdate ¶ added in v1.1.3
type OpenConsoleResult ¶
type OpenConsoleResult struct {
ConsoleUrl string `json:"consoleUrl,omitempty"`
}
type OwnerReference ¶ added in v1.2.0
type PageRequest ¶ added in v1.1.3
type PreviderClient ¶ added in v1.3.0
type PreviderClient struct { Task TaskService VirtualServer VirtualServerService VirtualNetwork VirtualNetworkService VirtualFirewall VirtualFirewallService KubernetesCluster KubernetesClusterService STaaSEnvironment STaaSEnvironmentService // contains filtered or unexported fields }
func New ¶
func New(options *ClientOptions) (*PreviderClient, error)
noinspection GoUnusedExportedFunction
func (*PreviderClient) ApiInfo ¶ added in v1.3.0
func (c *PreviderClient) ApiInfo() (*ApiInfo, error)
func (*PreviderClient) Delete ¶ added in v1.3.0
func (c *PreviderClient) Delete(url string, responseBody interface{}) error
func (*PreviderClient) Get ¶ added in v1.3.0
func (c *PreviderClient) Get(url string, responseBody interface{}, requestParams *PageRequest) error
func (*PreviderClient) Post ¶ added in v1.3.0
func (c *PreviderClient) Post(url string, requestBody, responseBody interface{}) error
func (*PreviderClient) Put ¶ added in v1.3.0
func (c *PreviderClient) Put(url string, requestBody, responseBody interface{}) error
type STaaSCredential ¶ added in v1.2.0
type STaaSEnvironment ¶ added in v1.2.0
type STaaSEnvironmentCreate ¶ added in v1.2.0
type STaaSEnvironmentCreate struct { STaaSEnvironment Windows bool `json:"windows,omitempty"` Type string `json:"type"` Cluster string `json:"cluster"` }
type STaaSEnvironmentDelete ¶ added in v1.2.0
type STaaSEnvironmentDelete struct {
Force bool `json:"force"`
}
type STaaSEnvironmentExt ¶ added in v1.2.0
type STaaSEnvironmentExt struct { STaaSEnvironment Volumes []STaaSVolume `json:"volumes,omitempty"` Networks []STaaSNetwork `json:"networks,omitempty"` Credentials []STaaSCredential `json:"credentials,omitempty"` Routes []STaaSRoute `json:"routes,omitempty"` Windows bool `json:"windows,omitempty"` SynchronousClusterId string `json:"synchronousClusterId,omitempty"` }
type STaaSEnvironmentService ¶ added in v1.2.0
type STaaSEnvironmentService interface { Page(request PageRequest) (*Page, *[]STaaSEnvironment, error) Get(id string) (*STaaSEnvironmentExt, error) Create(create STaaSEnvironmentCreate) (*Reference, error) Delete(id string, delete STaaSEnvironmentDelete) error Update(id string, update STaaSEnvironmentUpdate) error CreateVolume(id string, create STaaSVolumeCreate) error UpdateVolume(id string, volumeId string, update STaaSVolumeUpdate) error DeleteVolume(id string, volumeId string, delete STaaSVolumeDelete) error CreateNetwork(id string, create STaaSNetworkCreate) error DeleteNetwork(id string, networkId string) error }
type STaaSEnvironmentServiceImpl ¶ added in v1.3.0
type STaaSEnvironmentServiceImpl struct {
// contains filtered or unexported fields
}
func (*STaaSEnvironmentServiceImpl) Create ¶ added in v1.3.0
func (c *STaaSEnvironmentServiceImpl) Create(create STaaSEnvironmentCreate) (*Reference, error)
func (*STaaSEnvironmentServiceImpl) CreateNetwork ¶ added in v1.3.0
func (c *STaaSEnvironmentServiceImpl) CreateNetwork(id string, create STaaSNetworkCreate) error
func (*STaaSEnvironmentServiceImpl) CreateVolume ¶ added in v1.3.0
func (c *STaaSEnvironmentServiceImpl) CreateVolume(id string, create STaaSVolumeCreate) error
func (*STaaSEnvironmentServiceImpl) Delete ¶ added in v1.3.0
func (c *STaaSEnvironmentServiceImpl) Delete(id string, delete STaaSEnvironmentDelete) error
func (*STaaSEnvironmentServiceImpl) DeleteNetwork ¶ added in v1.3.0
func (c *STaaSEnvironmentServiceImpl) DeleteNetwork(id string, networkId string) error
func (*STaaSEnvironmentServiceImpl) DeleteVolume ¶ added in v1.3.0
func (c *STaaSEnvironmentServiceImpl) DeleteVolume(id string, volumeId string, delete STaaSVolumeDelete) error
func (*STaaSEnvironmentServiceImpl) Get ¶ added in v1.3.0
func (c *STaaSEnvironmentServiceImpl) Get(id string) (*STaaSEnvironmentExt, error)
func (*STaaSEnvironmentServiceImpl) Page ¶ added in v1.3.0
func (c *STaaSEnvironmentServiceImpl) Page(request PageRequest) (*Page, *[]STaaSEnvironment, error)
func (*STaaSEnvironmentServiceImpl) Update ¶ added in v1.3.0
func (c *STaaSEnvironmentServiceImpl) Update(id string, update STaaSEnvironmentUpdate) error
func (*STaaSEnvironmentServiceImpl) UpdateVolume ¶ added in v1.3.0
func (c *STaaSEnvironmentServiceImpl) UpdateVolume(id string, volumeId string, create STaaSVolumeUpdate) error
type STaaSEnvironmentUpdate ¶ added in v1.2.0
type STaaSEnvironmentUpdate struct { STaaSEnvironment Windows bool `json:"windows,omitempty"` }
type STaaSNetwork ¶ added in v1.2.0
type STaaSNetworkCreate ¶ added in v1.2.0
type STaaSRoute ¶ added in v1.2.0
type STaaSVolume ¶ added in v1.2.0
type STaaSVolume struct { Id string `json:"id,omitempty"` Name string `json:"name"` State string `json:"state"` Type string `json:"type"` SynchronousEnvironmentId string `json:"synchronousEnvironmentId,omitempty"` SynchronousEnvironmentName string `json:"synchronousEnvironmentName,omitempty"` AllowedIpsRo []string `json:"allowedIpsRo,omitempty"` AllowedIpsRw []string `json:"allowedIpsRw,omitempty"` SizeMb int `json:"sizeMb"` }
type STaaSVolumeCreate ¶ added in v1.2.0
type STaaSVolumeCreate struct { Name string `json:"name"` Type string `json:"type"` SynchronousEnvironmentId string `json:"synchronousEnvironmentId,omitempty"` SynchronousEnvironmentName string `json:"synchronousEnvironmentName,omitempty"` AllowedIpsRo []string `json:"allowedIpsRo,omitempty"` AllowedIpsRw []string `json:"allowedIpsRw,omitempty"` SizeMb int `json:"sizeMb"` }
type STaaSVolumeDelete ¶ added in v1.2.0
type STaaSVolumeDelete struct {
Force bool `json:"force"`
}
type STaaSVolumeUpdate ¶ added in v1.2.0
type STaaSVolumeUpdate struct {
STaaSVolumeCreate
}
type TaskService ¶
type TaskServiceOp ¶
type TaskServiceOp struct {
// contains filtered or unexported fields
}
func (*TaskServiceOp) List ¶
func (c *TaskServiceOp) List() (*[]Task, error)
func (*TaskServiceOp) WaitForTask ¶
type VirtualFirewall ¶ added in v1.3.0
type VirtualFirewall struct { Id string `json:"id,omitempty"` Name string `json:"name"` Group string `json:"group,omitempty"` GroupName string `json:"groupName,omitempty"` TypeLabel string `json:"typeLabel"` TypeName string `json:"typeName"` Network string `json:"network"` NetworkName string `json:"networkName"` WanAddress []string `json:"wanAddress,omitempty"` LanAddress string `json:"lanAddress"` State string `json:"state"` }
type VirtualFirewallCreate ¶ added in v1.3.0
type VirtualFirewallCreate struct { VirtualFirewallUpdate Type string `json:"type"` }
type VirtualFirewallExt ¶ added in v1.3.0
type VirtualFirewallExt struct { VirtualFirewall TerminationProtected bool `json:"terminationProtected"` Audit Audit `json:"audit"` DhcpEnabled bool `json:"dhcpEnabled"` DhcpRangeStart string `json:"dhcpRangeStart"` DhcpRangeEnd string `json:"dhcpRangeEnd"` LocalDomainName string `json:"localDomainName"` DnsEnabled bool `json:"dnsEnabled"` Nameservers []string `json:"nameservers"` IcmpWanEnabled bool `json:"icmpWanEnabled"` IcmpLanEnabled bool `json:"icmpLanEnabled"` }
type VirtualFirewallNatRule ¶ added in v1.3.0
type VirtualFirewallNatRule struct { Id string `json:"id"` Description string `json:"description"` Active bool `json:"active"` Port int `json:"port"` Protocol string `json:"protocol"` Source string `json:"source"` Destination string `json:"destination"` NatDestination string `json:"natDestination"` NatPort int `json:"natPort"` WanInterface string `json:"wanInterface"` }
type VirtualFirewallNatRuleCreate ¶ added in v1.3.0
type VirtualFirewallService ¶ added in v1.3.0
type VirtualFirewallService interface { Page(request PageRequest) (*Page, *[]VirtualFirewall, error) Get(id string) (*VirtualFirewallExt, error) Create(create VirtualFirewallCreate) (*Reference, error) Delete(id string) error Update(id string, update VirtualFirewallUpdate) error PageNatRules(firewallId string, request PageRequest) (*Page, *[]VirtualFirewallNatRule, error) CreateNatRule(firewallId string, create VirtualFirewallNatRuleCreate) (*Reference, error) UpdateNatRule(firewallId string, id string, create VirtualFirewallNatRuleCreate) error DeleteNatRule(firewallId string, id string) error }
type VirtualFirewallServiceImpl ¶ added in v1.3.0
type VirtualFirewallServiceImpl struct {
// contains filtered or unexported fields
}
func (*VirtualFirewallServiceImpl) Create ¶ added in v1.3.0
func (c *VirtualFirewallServiceImpl) Create(create VirtualFirewallCreate) (*Reference, error)
func (*VirtualFirewallServiceImpl) CreateNatRule ¶ added in v1.3.0
func (c *VirtualFirewallServiceImpl) CreateNatRule(firewallId string, create VirtualFirewallNatRuleCreate) (*Reference, error)
func (*VirtualFirewallServiceImpl) Delete ¶ added in v1.3.0
func (c *VirtualFirewallServiceImpl) Delete(id string) error
func (*VirtualFirewallServiceImpl) DeleteNatRule ¶ added in v1.3.0
func (c *VirtualFirewallServiceImpl) DeleteNatRule(firewallId string, id string) error
func (*VirtualFirewallServiceImpl) Get ¶ added in v1.3.0
func (c *VirtualFirewallServiceImpl) Get(id string) (*VirtualFirewallExt, error)
func (*VirtualFirewallServiceImpl) Page ¶ added in v1.3.0
func (c *VirtualFirewallServiceImpl) Page(request PageRequest) (*Page, *[]VirtualFirewall, error)
func (*VirtualFirewallServiceImpl) PageNatRules ¶ added in v1.3.0
func (c *VirtualFirewallServiceImpl) PageNatRules(firewallId string, request PageRequest) (*Page, *[]VirtualFirewallNatRule, error)
NAT Rules
func (*VirtualFirewallServiceImpl) Update ¶ added in v1.3.0
func (c *VirtualFirewallServiceImpl) Update(id string, update VirtualFirewallUpdate) error
func (*VirtualFirewallServiceImpl) UpdateNatRule ¶ added in v1.3.0
func (c *VirtualFirewallServiceImpl) UpdateNatRule(firewallId string, id string, create VirtualFirewallNatRuleCreate) error
type VirtualFirewallUpdate ¶ added in v1.3.0
type VirtualFirewallUpdate struct { Name string `json:"name"` Group string `json:"group,omitempty"` Network string `json:"network"` LanAddress string `json:"lanAddress"` DhcpEnabled bool `json:"dhcpEnabled"` DhcpRangeStart net.IP `json:"dhcpRangeStart"` DhcpRangeEnd net.IP `json:"dhcpRangeEnd"` LocalDomainName string `json:"localDomainName"` DnsEnabled bool `json:"dnsEnabled"` Nameservers []net.IP `json:"nameservers"` TerminationProtected bool `json:"terminationProtected"` IcmpWanEnabled bool `json:"icmpWanEnabled"` IcmpLanEnabled bool `json:"icmpLanEnabled"` }
type VirtualMachine ¶
type VirtualMachine struct { Id string `json:"id,omitempty"` Name string `json:"name"` Group string `json:"group,omitempty"` GroupName string `json:"groupName,omitempty"` ComputeCluster string `json:"computeCluster"` CpuCores int `json:"cpuCores"` Memory uint64 `json:"memory"` Template string `json:"template"` GuestId string `json:"guestId"` State string `json:"state"` TotalDiskSize int `json:"totalDiskSize"` HasSnapshots bool `json:"hasSnapshots"` MarkedAsTemplate bool `json:"markedAsTemplate"` Managed bool `json:"managed"` }
type VirtualMachineCreate ¶
type VirtualMachineCreate struct { VirtualMachineExt Template string `json:"template,omitempty"` SourceVirtualMachine string `json:"sourceVirtualMachine,omitempty"` UserData string `json:"userData,omitempty"` GuestId string `json:"guestId,omitempty"` ProvisioningType string `json:"provisioningType,omitempty"` PowerOnAfterClone bool `json:"powerOnAfterClone,omitempty"` }
type VirtualMachineExt ¶
type VirtualMachineExt struct { VirtualMachine Hostname string `json:"hostname"` Tags []string `json:"tags"` Disks []Disk `json:"disks"` NetworkInterfaces []NetworkInterface `json:"networkInterfaces"` TerminationProtectionEnabled bool `json:"terminationProtectionEnabled"` Flavor string `json:"flavor,omitempty"` GuestToolsStatus string `json:"guestToolsStatus"` InitialUsername string `json:"initialUsername"` InitialPassword string `json:"initialPassword"` CreatedAt int `json:"createdAt"` CreatedBy string `json:"createdBy"` LastModifiedAt int `json:"lastModifiedAt"` LastModifiedBy string `json:"lastModifiedBy"` }
type VirtualMachineTask ¶
type VirtualMachineTemplate ¶
type VirtualMachineUpdate ¶ added in v1.1.3
type VirtualMachineUpdate struct { VirtualMachine Tags []string `json:"tags"` Disks []DiskUpdate `json:"disks"` NetworkInterfaces []NetworkInterfaceUpdate `json:"networkInterfaces,"` TerminationProtectionEnabled bool `json:"terminationProtectionEnabled"` Flavor string `json:"flavor,omitempty"` }
type VirtualNetwork ¶
type VirtualNetworkService ¶
type VirtualNetworkService interface { Page(request PageRequest) (*Page, *[]VirtualNetwork, error) Get(id string) (*VirtualNetwork, error) Create(vn *VirtualNetworkUpdate) (*VirtualNetworkTask, error) Delete(id string) (*VirtualNetworkTask, error) Update(id string, vn *VirtualNetworkUpdate) (*VirtualNetworkTask, error) }
type VirtualNetworkServiceImpl ¶ added in v1.3.0
type VirtualNetworkServiceImpl struct {
// contains filtered or unexported fields
}
func (*VirtualNetworkServiceImpl) Create ¶ added in v1.3.0
func (c *VirtualNetworkServiceImpl) Create(vn *VirtualNetworkUpdate) (*VirtualNetworkTask, error)
func (*VirtualNetworkServiceImpl) Delete ¶ added in v1.3.0
func (c *VirtualNetworkServiceImpl) Delete(id string) (*VirtualNetworkTask, error)
func (*VirtualNetworkServiceImpl) Get ¶ added in v1.3.0
func (c *VirtualNetworkServiceImpl) Get(id string) (*VirtualNetwork, error)
func (*VirtualNetworkServiceImpl) Page ¶ added in v1.3.0
func (c *VirtualNetworkServiceImpl) Page(request PageRequest) (*Page, *[]VirtualNetwork, error)
func (*VirtualNetworkServiceImpl) Update ¶ added in v1.3.0
func (c *VirtualNetworkServiceImpl) Update(id string, vn *VirtualNetworkUpdate) (*VirtualNetworkTask, error)
type VirtualNetworkTask ¶
type VirtualNetworkUpdate ¶
type VirtualServerService ¶ added in v1.3.0
type VirtualServerService interface { ComputeClusterList() (*[]ComputeCluster, error) VirtualMachineTemplateList() (*[]VirtualMachineTemplate, error) Page(request PageRequest) (*Page, *[]VirtualMachine, error) Get(id string) (*VirtualMachineExt, error) Create(vm *VirtualMachineCreate) (*VirtualMachineTask, error) Delete(id string) (*VirtualMachineTask, error) Update(id string, vm *VirtualMachineUpdate) (*VirtualMachineTask, error) Control(id string, action string) (*VirtualMachineTask, error) OpenConsole(id string) (*OpenConsoleResult, error) }
type VirtualServerServiceImpl ¶ added in v1.3.0
type VirtualServerServiceImpl struct {
// contains filtered or unexported fields
}
func (*VirtualServerServiceImpl) ComputeClusterList ¶ added in v1.3.0
func (c *VirtualServerServiceImpl) ComputeClusterList() (*[]ComputeCluster, error)
func (*VirtualServerServiceImpl) Control ¶ added in v1.3.0
func (c *VirtualServerServiceImpl) Control(id string, action string) (*VirtualMachineTask, error)
func (*VirtualServerServiceImpl) Create ¶ added in v1.3.0
func (c *VirtualServerServiceImpl) Create(vm *VirtualMachineCreate) (*VirtualMachineTask, error)
func (*VirtualServerServiceImpl) Delete ¶ added in v1.3.0
func (c *VirtualServerServiceImpl) Delete(id string) (*VirtualMachineTask, error)
func (*VirtualServerServiceImpl) Get ¶ added in v1.3.0
func (c *VirtualServerServiceImpl) Get(id string) (*VirtualMachineExt, error)
func (*VirtualServerServiceImpl) OpenConsole ¶ added in v1.3.0
func (c *VirtualServerServiceImpl) OpenConsole(id string) (*OpenConsoleResult, error)
func (*VirtualServerServiceImpl) Page ¶ added in v1.3.0
func (c *VirtualServerServiceImpl) Page(request PageRequest) (*Page, *[]VirtualMachine, error)
func (*VirtualServerServiceImpl) Update ¶ added in v1.3.0
func (c *VirtualServerServiceImpl) Update(id string, vm *VirtualMachineUpdate) (*VirtualMachineTask, error)
func (*VirtualServerServiceImpl) VirtualMachineTemplateList ¶ added in v1.3.0
func (c *VirtualServerServiceImpl) VirtualMachineTemplateList() (*[]VirtualMachineTemplate, error)
Click to show internal directories.
Click to hide internal directories.