Documentation
¶
Index ¶
- Constants
- Variables
- type Certificate
- type CertificateCreate
- type CertificateService
- type ElasticIP
- type ElasticIPAttach
- type ElasticIPCreate
- type ElasticIPService
- func (e ElasticIPService) Attach(ctx context.Context, serverID int, data ElasticIPAttach) (ElasticIP, error)
- func (e ElasticIPService) Create(ctx context.Context, data ElasticIPCreate) (ElasticIP, error)
- func (e ElasticIPService) Delete(ctx context.Context, id int) error
- func (e ElasticIPService) Detach(ctx context.Context, serverID, elasticIPID int) error
- func (e ElasticIPService) List(ctx context.Context) ([]ElasticIP, error)
- type Image
- type KeyPair
- type KeyPairCreate
- type KeyPairService
- type LoadBalancer
- type LoadBalancerAlgorithm
- type LoadBalancerCreate
- type LoadBalancerHealthCheckOptions
- type LoadBalancerHealthCheckType
- type LoadBalancerMember
- type LoadBalancerMemberCreate
- type LoadBalancerMemberService
- type LoadBalancerPool
- type LoadBalancerPoolCreate
- type LoadBalancerPoolService
- func (l LoadBalancerPoolService) Create(ctx context.Context, data LoadBalancerPoolCreate) (LoadBalancerPool, error)
- func (l LoadBalancerPoolService) Delete(ctx context.Context, id int) error
- func (l LoadBalancerPoolService) List(ctx context.Context) ([]LoadBalancerPool, error)
- func (l LoadBalancerPoolService) Update(ctx context.Context, id int, data LoadBalancerPoolUpdate) (LoadBalancerPool, error)
- type LoadBalancerPoolUpdate
- type LoadBalancerProtocol
- type LoadBalancerService
- func (l LoadBalancerService) Create(ctx context.Context, data LoadBalancerCreate) (common.Ordering, error)
- func (l LoadBalancerService) Delete(ctx context.Context, id int) error
- func (l LoadBalancerService) Get(ctx context.Context, id int) (LoadBalancer, error)
- func (l LoadBalancerService) List(ctx context.Context) ([]LoadBalancer, error)
- func (l LoadBalancerService) Update(ctx context.Context, id int, data LoadBalancerUpdate) (LoadBalancer, error)
- type LoadBalancerUpdate
- type Network
- type NetworkCreate
- type NetworkInterface
- type NetworkInterfaceCreate
- type NetworkInterfaceSecurityGroupUpdate
- type NetworkInterfaceSecurityUpdate
- type NetworkInterfaceService
- func (n NetworkInterfaceService) Create(ctx context.Context, data NetworkInterfaceCreate) (NetworkInterface, error)
- func (n NetworkInterfaceService) Delete(ctx context.Context, id int) error
- func (n NetworkInterfaceService) List(ctx context.Context) ([]NetworkInterface, error)
- func (n NetworkInterfaceService) UpdateSecurity(ctx context.Context, id int, data NetworkInterfaceSecurityUpdate) (NetworkInterface, error)
- func (n NetworkInterfaceService) UpdateSecurityGroups(ctx context.Context, id int, data NetworkInterfaceSecurityGroupUpdate) (NetworkInterface, error)
- type NetworkService
- func (n NetworkService) Create(ctx context.Context, data NetworkCreate) (Network, error)
- func (n NetworkService) Delete(ctx context.Context, id int) error
- func (n NetworkService) List(ctx context.Context) ([]Network, error)
- func (n NetworkService) Update(ctx context.Context, id int, data NetworkUpdate) (Network, error)
- type NetworkUpdate
- type Route
- type RouteCreate
- type RouteService
- type Router
- type RouterCreate
- type RouterInterface
- type RouterInterfaceCreate
- type RouterInterfaceService
- type RouterService
- func (r RouterService) Create(ctx context.Context, data RouterCreate) (Router, error)
- func (r RouterService) Delete(ctx context.Context, id int) error
- func (r RouterService) List(ctx context.Context) ([]Router, error)
- func (r RouterService) Update(ctx context.Context, id int, data RouterUpdate) (Router, error)
- type RouterUpdate
- type SecurityGroup
- type SecurityGroupCreate
- type SecurityGroupRule
- type SecurityGroupRuleCreate
- type SecurityGroupRuleService
- func (s SecurityGroupRuleService) Create(ctx context.Context, data SecurityGroupRuleCreate) (SecurityGroupRule, error)
- func (s SecurityGroupRuleService) Delete(ctx context.Context, id int) error
- func (s SecurityGroupRuleService) List(ctx context.Context) ([]SecurityGroupRule, error)
- func (s SecurityGroupRuleService) Update(ctx context.Context, id int, data SecurityGroupRuleUpdate) (SecurityGroupRule, error)
- type SecurityGroupRuleUpdate
- type SecurityGroupService
- func (s SecurityGroupService) Create(ctx context.Context, data SecurityGroupCreate) (SecurityGroup, error)
- func (s SecurityGroupService) Delete(ctx context.Context, id int) error
- func (s SecurityGroupService) List(ctx context.Context) ([]SecurityGroup, error)
- func (s SecurityGroupService) Update(ctx context.Context, id int, data SecurityGroupUpdate) (SecurityGroup, error)
- type SecurityGroupUpdate
- type Server
- type ServerAction
- type ServerActionService
- type ServerCreate
- type ServerRunAction
- type ServerService
- func (s ServerService) Create(ctx context.Context, data ServerCreate) (common.Ordering, error)
- func (s ServerService) Delete(ctx context.Context, id int, deleteElasticIPs bool) error
- func (s ServerService) Get(ctx context.Context, id int) (Server, error)
- func (s ServerService) List(ctx context.Context) ([]Server, error)
- func (s ServerService) Update(ctx context.Context, id int, data ServerUpdate) (Server, error)
- func (s ServerService) Upgrade(ctx context.Context, id int, data ServerUpgrade) (common.Ordering, error)
- type ServerUpdate
- type ServerUpgrade
- type Snapshot
- type SnapshotCreate
- type SnapshotService
- func (v SnapshotService) Create(ctx context.Context, data SnapshotCreate) (Snapshot, error)
- func (v SnapshotService) Delete(ctx context.Context, volumeID int) error
- func (v SnapshotService) List(ctx context.Context) ([]Snapshot, error)
- func (v SnapshotService) Update(ctx context.Context, volumeID int, data SnapshotUpdate) (Snapshot, error)
- type SnapshotUpdate
- type Volume
- type VolumeAttach
- type VolumeCreate
- type VolumeExpand
- type VolumeRevert
- type VolumeService
- func (v VolumeService) Attach(ctx context.Context, volumeID int, data VolumeAttach) (Volume, error)
- func (v VolumeService) Create(ctx context.Context, data VolumeCreate) (Volume, error)
- func (v VolumeService) Delete(ctx context.Context, volumeID int) error
- func (v VolumeService) Detach(ctx context.Context, volumeID, serverID int) error
- func (v VolumeService) Expand(ctx context.Context, volumeID int, data VolumeExpand) (Volume, error)
- func (v VolumeService) List(ctx context.Context) ([]Volume, error)
- func (v VolumeService) Revert(ctx context.Context, volumeID int, data VolumeRevert) (Volume, error)
- func (v VolumeService) Update(ctx context.Context, volumeID int, data VolumeUpdate) (Volume, error)
- type VolumeUpdate
Constants ¶
View Source
const ( ImageCategoryLinux = "linux" ImageCategoryWindows = "windows" ImageCategoryBSD = "bsd" )
Variables ¶
View Source
var ProtocolIDs = map[string]int{ "any": compute.ProtocolAny, "icmp": compute.ProtocolICMP, "tcp": compute.ProtocolTCP, "udp": compute.ProtocolUDP, }
View Source
var ProtocolNames = map[int]string{ compute.ProtocolAny: "any", compute.ProtocolICMP: "icmp", compute.ProtocolTCP: "tcp", compute.ProtocolUDP: "udp", }
Functions ¶
This section is empty.
Types ¶
type Certificate ¶
type Certificate compute.Certificate
func (Certificate) Columns ¶
func (c Certificate) Columns() []string
func (Certificate) Keys ¶
func (c Certificate) Keys() []string
func (Certificate) String ¶
func (c Certificate) String() string
func (Certificate) Values ¶
func (c Certificate) Values() map[string]interface{}
type CertificateCreate ¶
type CertificateCreate = compute.CertificateCreate
type CertificateService ¶
type CertificateService struct {
// contains filtered or unexported fields
}
func NewCertificateService ¶
func NewCertificateService(client goclient.Client) CertificateService
func (CertificateService) Create ¶
func (c CertificateService) Create(ctx context.Context, data CertificateCreate) (Certificate, error)
func (CertificateService) Delete ¶
func (c CertificateService) Delete(ctx context.Context, id int) error
func (CertificateService) List ¶
func (c CertificateService) List(ctx context.Context) ([]Certificate, error)
type ElasticIPAttach ¶
type ElasticIPAttach = compute.ElasticIPAttach
type ElasticIPCreate ¶
type ElasticIPCreate = compute.ElasticIPCreate
type ElasticIPService ¶
type ElasticIPService struct {
// contains filtered or unexported fields
}
func NewElasticIPService ¶
func NewElasticIPService(client goclient.Client) ElasticIPService
func (ElasticIPService) Attach ¶
func (e ElasticIPService) Attach(ctx context.Context, serverID int, data ElasticIPAttach) (ElasticIP, error)
func (ElasticIPService) Create ¶
func (e ElasticIPService) Create(ctx context.Context, data ElasticIPCreate) (ElasticIP, error)
func (ElasticIPService) Delete ¶
func (e ElasticIPService) Delete(ctx context.Context, id int) error
type KeyPairCreate ¶
type KeyPairCreate = compute.KeyPairCreate
type KeyPairService ¶
type KeyPairService struct {
// contains filtered or unexported fields
}
func NewKeyPairService ¶
func NewKeyPairService(client goclient.Client) KeyPairService
func (KeyPairService) Create ¶
func (k KeyPairService) Create(ctx context.Context, data KeyPairCreate) (KeyPair, error)
type LoadBalancer ¶
type LoadBalancer compute.LoadBalancer
func (LoadBalancer) Columns ¶
func (l LoadBalancer) Columns() []string
func (LoadBalancer) Keys ¶
func (l LoadBalancer) Keys() []string
func (LoadBalancer) String ¶
func (l LoadBalancer) String() string
func (LoadBalancer) Values ¶
func (l LoadBalancer) Values() map[string]interface{}
type LoadBalancerAlgorithm ¶
type LoadBalancerAlgorithm compute.LoadBalancerAlgorithm
func LoadBalancerAlgorithms ¶
func (LoadBalancerAlgorithm) Columns ¶
func (l LoadBalancerAlgorithm) Columns() []string
func (LoadBalancerAlgorithm) Keys ¶
func (l LoadBalancerAlgorithm) Keys() []string
func (LoadBalancerAlgorithm) String ¶
func (l LoadBalancerAlgorithm) String() string
func (LoadBalancerAlgorithm) Values ¶
func (l LoadBalancerAlgorithm) Values() map[string]interface{}
type LoadBalancerCreate ¶
type LoadBalancerCreate = compute.LoadBalancerCreate
type LoadBalancerHealthCheckOptions ¶
type LoadBalancerHealthCheckOptions = compute.LoadBalancerHealthCheckOptions
type LoadBalancerHealthCheckType ¶
type LoadBalancerHealthCheckType compute.LoadBalancerHealthCheckType
func (LoadBalancerHealthCheckType) Columns ¶
func (l LoadBalancerHealthCheckType) Columns() []string
func (LoadBalancerHealthCheckType) Keys ¶
func (l LoadBalancerHealthCheckType) Keys() []string
func (LoadBalancerHealthCheckType) String ¶
func (l LoadBalancerHealthCheckType) String() string
func (LoadBalancerHealthCheckType) Values ¶
func (l LoadBalancerHealthCheckType) Values() map[string]interface{}
type LoadBalancerMember ¶
type LoadBalancerMember compute.LoadBalancerMember
func (LoadBalancerMember) Columns ¶
func (l LoadBalancerMember) Columns() []string
func (LoadBalancerMember) Host ¶
func (l LoadBalancerMember) Host() string
func (LoadBalancerMember) Keys ¶
func (l LoadBalancerMember) Keys() []string
func (LoadBalancerMember) String ¶
func (l LoadBalancerMember) String() string
func (LoadBalancerMember) Values ¶
func (l LoadBalancerMember) Values() map[string]interface{}
type LoadBalancerMemberCreate ¶
type LoadBalancerMemberCreate = compute.LoadBalancerMemberCreate
type LoadBalancerMemberService ¶
type LoadBalancerMemberService struct {
// contains filtered or unexported fields
}
func NewLoadBalancerMemberService ¶
func NewLoadBalancerMemberService(client goclient.Client, loadBalancerID, poolID int) LoadBalancerMemberService
func (LoadBalancerMemberService) Create ¶
func (l LoadBalancerMemberService) Create(ctx context.Context, data LoadBalancerMemberCreate) (LoadBalancerMember, error)
func (LoadBalancerMemberService) Delete ¶
func (l LoadBalancerMemberService) Delete(ctx context.Context, id int) error
func (LoadBalancerMemberService) List ¶
func (l LoadBalancerMemberService) List(ctx context.Context) ([]LoadBalancerMember, error)
type LoadBalancerPool ¶
type LoadBalancerPool compute.LoadBalancerPool
func (LoadBalancerPool) Columns ¶
func (l LoadBalancerPool) Columns() []string
func (LoadBalancerPool) Keys ¶
func (l LoadBalancerPool) Keys() []string
func (LoadBalancerPool) NameWithoutSpaces ¶
func (l LoadBalancerPool) NameWithoutSpaces() string
func (LoadBalancerPool) String ¶
func (l LoadBalancerPool) String() string
func (LoadBalancerPool) Values ¶
func (l LoadBalancerPool) Values() map[string]interface{}
type LoadBalancerPoolCreate ¶
type LoadBalancerPoolCreate = compute.LoadBalancerPoolCreate
type LoadBalancerPoolService ¶
type LoadBalancerPoolService struct {
// contains filtered or unexported fields
}
func NewLoadBalancerPoolService ¶
func NewLoadBalancerPoolService(client goclient.Client, loadBalancerID int) LoadBalancerPoolService
func (LoadBalancerPoolService) Create ¶
func (l LoadBalancerPoolService) Create(ctx context.Context, data LoadBalancerPoolCreate) (LoadBalancerPool, error)
func (LoadBalancerPoolService) Delete ¶
func (l LoadBalancerPoolService) Delete(ctx context.Context, id int) error
func (LoadBalancerPoolService) List ¶
func (l LoadBalancerPoolService) List(ctx context.Context) ([]LoadBalancerPool, error)
func (LoadBalancerPoolService) Update ¶
func (l LoadBalancerPoolService) Update(ctx context.Context, id int, data LoadBalancerPoolUpdate) (LoadBalancerPool, error)
type LoadBalancerPoolUpdate ¶
type LoadBalancerPoolUpdate = compute.LoadBalancerPoolUpdate
type LoadBalancerProtocol ¶
type LoadBalancerProtocol compute.LoadBalancerProtocol
func LoadBalancerProtocols ¶
func (LoadBalancerProtocol) Columns ¶
func (l LoadBalancerProtocol) Columns() []string
func (LoadBalancerProtocol) Keys ¶
func (l LoadBalancerProtocol) Keys() []string
func (LoadBalancerProtocol) String ¶
func (l LoadBalancerProtocol) String() string
func (LoadBalancerProtocol) Values ¶
func (l LoadBalancerProtocol) Values() map[string]interface{}
type LoadBalancerService ¶
type LoadBalancerService struct {
// contains filtered or unexported fields
}
func NewLoadBalancerService ¶
func NewLoadBalancerService(client goclient.Client) LoadBalancerService
func (LoadBalancerService) Create ¶
func (l LoadBalancerService) Create(ctx context.Context, data LoadBalancerCreate) (common.Ordering, error)
func (LoadBalancerService) Delete ¶
func (l LoadBalancerService) Delete(ctx context.Context, id int) error
func (LoadBalancerService) Get ¶
func (l LoadBalancerService) Get(ctx context.Context, id int) (LoadBalancer, error)
func (LoadBalancerService) List ¶
func (l LoadBalancerService) List(ctx context.Context) ([]LoadBalancer, error)
func (LoadBalancerService) Update ¶
func (l LoadBalancerService) Update(ctx context.Context, id int, data LoadBalancerUpdate) (LoadBalancer, error)
type LoadBalancerUpdate ¶
type LoadBalancerUpdate = compute.LoadBalancerUpdate
type NetworkCreate ¶
type NetworkCreate = compute.NetworkCreate
type NetworkInterface ¶
type NetworkInterface compute.NetworkInterface
func (NetworkInterface) Columns ¶
func (n NetworkInterface) Columns() []string
func (NetworkInterface) Keys ¶
func (n NetworkInterface) Keys() []string
func (NetworkInterface) String ¶
func (n NetworkInterface) String() string
func (NetworkInterface) Values ¶
func (n NetworkInterface) Values() map[string]interface{}
type NetworkInterfaceCreate ¶
type NetworkInterfaceCreate = compute.NetworkInterfaceCreate
type NetworkInterfaceSecurityGroupUpdate ¶
type NetworkInterfaceSecurityGroupUpdate = compute.NetworkInterfaceSecurityGroupUpdate
type NetworkInterfaceSecurityUpdate ¶
type NetworkInterfaceSecurityUpdate = compute.NetworkInterfaceSecurityUpdate
type NetworkInterfaceService ¶
type NetworkInterfaceService struct {
// contains filtered or unexported fields
}
func NewNetworkInterfaceService ¶
func NewNetworkInterfaceService(client goclient.Client, serverID int) NetworkInterfaceService
func (NetworkInterfaceService) Create ¶
func (n NetworkInterfaceService) Create(ctx context.Context, data NetworkInterfaceCreate) (NetworkInterface, error)
func (NetworkInterfaceService) Delete ¶
func (n NetworkInterfaceService) Delete(ctx context.Context, id int) error
func (NetworkInterfaceService) List ¶
func (n NetworkInterfaceService) List(ctx context.Context) ([]NetworkInterface, error)
func (NetworkInterfaceService) UpdateSecurity ¶
func (n NetworkInterfaceService) UpdateSecurity(ctx context.Context, id int, data NetworkInterfaceSecurityUpdate) (NetworkInterface, error)
func (NetworkInterfaceService) UpdateSecurityGroups ¶
func (n NetworkInterfaceService) UpdateSecurityGroups(ctx context.Context, id int, data NetworkInterfaceSecurityGroupUpdate) (NetworkInterface, error)
type NetworkService ¶
type NetworkService struct {
// contains filtered or unexported fields
}
func NewNetworkService ¶
func NewNetworkService(client goclient.Client) NetworkService
func (NetworkService) Create ¶
func (n NetworkService) Create(ctx context.Context, data NetworkCreate) (Network, error)
func (NetworkService) Update ¶
func (n NetworkService) Update(ctx context.Context, id int, data NetworkUpdate) (Network, error)
type NetworkUpdate ¶
type NetworkUpdate = compute.NetworkUpdate
type RouteCreate ¶
type RouteCreate = compute.RouteCreate
type RouteService ¶
type RouteService struct {
// contains filtered or unexported fields
}
func NewRouteService ¶
func NewRouteService(client goclient.Client, routerID int) RouteService
func (RouteService) Create ¶
func (r RouteService) Create(ctx context.Context, data RouteCreate) (Route, error)
type RouterCreate ¶
type RouterCreate = compute.RouterCreate
type RouterInterface ¶
type RouterInterface compute.RouterInterface
func (RouterInterface) Columns ¶
func (r RouterInterface) Columns() []string
func (RouterInterface) Keys ¶
func (r RouterInterface) Keys() []string
func (RouterInterface) String ¶
func (r RouterInterface) String() string
func (RouterInterface) Values ¶
func (r RouterInterface) Values() map[string]interface{}
type RouterInterfaceCreate ¶
type RouterInterfaceCreate = compute.RouterInterfaceCreate
type RouterInterfaceService ¶
type RouterInterfaceService struct {
// contains filtered or unexported fields
}
func NewRouterInterfaceService ¶
func NewRouterInterfaceService(client goclient.Client, routerID int) RouterInterfaceService
func (RouterInterfaceService) Create ¶
func (r RouterInterfaceService) Create(ctx context.Context, data RouterInterfaceCreate) (RouterInterface, error)
func (RouterInterfaceService) Delete ¶
func (r RouterInterfaceService) Delete(ctx context.Context, id int) error
func (RouterInterfaceService) List ¶
func (r RouterInterfaceService) List(ctx context.Context) ([]RouterInterface, error)
type RouterService ¶
type RouterService struct {
// contains filtered or unexported fields
}
func NewRouterService ¶
func NewRouterService(client goclient.Client) RouterService
func (RouterService) Create ¶
func (r RouterService) Create(ctx context.Context, data RouterCreate) (Router, error)
func (RouterService) Update ¶
func (r RouterService) Update(ctx context.Context, id int, data RouterUpdate) (Router, error)
type RouterUpdate ¶
type RouterUpdate = compute.RouterUpdate
type SecurityGroup ¶
type SecurityGroup compute.SecurityGroup
func (SecurityGroup) Columns ¶
func (s SecurityGroup) Columns() []string
func (SecurityGroup) Keys ¶
func (s SecurityGroup) Keys() []string
func (SecurityGroup) String ¶
func (s SecurityGroup) String() string
func (SecurityGroup) Values ¶
func (s SecurityGroup) Values() map[string]interface{}
type SecurityGroupCreate ¶
type SecurityGroupCreate = compute.SecurityGroupCreate
type SecurityGroupRule ¶
type SecurityGroupRule compute.SecurityGroupRule
func (SecurityGroupRule) Columns ¶
func (s SecurityGroupRule) Columns() []string
func (SecurityGroupRule) Keys ¶
func (s SecurityGroupRule) Keys() []string
func (SecurityGroupRule) String ¶
func (s SecurityGroupRule) String() string
func (SecurityGroupRule) Values ¶
func (s SecurityGroupRule) Values() map[string]interface{}
type SecurityGroupRuleCreate ¶
type SecurityGroupRuleCreate = compute.SecurityGroupRuleOptions
type SecurityGroupRuleService ¶
type SecurityGroupRuleService struct {
// contains filtered or unexported fields
}
func NewSecurityGroupRuleService ¶
func NewSecurityGroupRuleService(client goclient.Client, securityGroupID int) SecurityGroupRuleService
func (SecurityGroupRuleService) Create ¶
func (s SecurityGroupRuleService) Create(ctx context.Context, data SecurityGroupRuleCreate) (SecurityGroupRule, error)
func (SecurityGroupRuleService) Delete ¶
func (s SecurityGroupRuleService) Delete(ctx context.Context, id int) error
func (SecurityGroupRuleService) List ¶
func (s SecurityGroupRuleService) List(ctx context.Context) ([]SecurityGroupRule, error)
func (SecurityGroupRuleService) Update ¶
func (s SecurityGroupRuleService) Update(ctx context.Context, id int, data SecurityGroupRuleUpdate) (SecurityGroupRule, error)
type SecurityGroupRuleUpdate ¶
type SecurityGroupRuleUpdate = compute.SecurityGroupRuleOptions
type SecurityGroupService ¶
type SecurityGroupService struct {
// contains filtered or unexported fields
}
func NewSecurityGroupService ¶
func NewSecurityGroupService(client goclient.Client) SecurityGroupService
func (SecurityGroupService) Create ¶
func (s SecurityGroupService) Create(ctx context.Context, data SecurityGroupCreate) (SecurityGroup, error)
func (SecurityGroupService) Delete ¶
func (s SecurityGroupService) Delete(ctx context.Context, id int) error
func (SecurityGroupService) List ¶
func (s SecurityGroupService) List(ctx context.Context) ([]SecurityGroup, error)
func (SecurityGroupService) Update ¶
func (s SecurityGroupService) Update(ctx context.Context, id int, data SecurityGroupUpdate) (SecurityGroup, error)
type SecurityGroupUpdate ¶
type SecurityGroupUpdate = compute.SecurityGroupUpdate
type ServerAction ¶
type ServerAction compute.ServerAction
func (ServerAction) Columns ¶
func (d ServerAction) Columns() []string
func (ServerAction) Keys ¶
func (d ServerAction) Keys() []string
func (ServerAction) Values ¶
func (d ServerAction) Values() map[string]interface{}
type ServerActionService ¶
type ServerActionService struct {
// contains filtered or unexported fields
}
func NewServerActionService ¶
func NewServerActionService(client goclient.Client) ServerActionService
func (ServerActionService) Run ¶
func (d ServerActionService) Run(ctx context.Context, serverID int, data ServerRunAction) (Server, error)
type ServerCreate ¶
type ServerCreate = compute.ServerCreate
type ServerRunAction ¶
type ServerRunAction = compute.ServerPerform
type ServerService ¶
type ServerService struct {
// contains filtered or unexported fields
}
func NewServerService ¶
func NewServerService(client goclient.Client) ServerService
func (ServerService) Create ¶
func (s ServerService) Create(ctx context.Context, data ServerCreate) (common.Ordering, error)
func (ServerService) Update ¶
func (s ServerService) Update(ctx context.Context, id int, data ServerUpdate) (Server, error)
func (ServerService) Upgrade ¶
func (s ServerService) Upgrade(ctx context.Context, id int, data ServerUpgrade) (common.Ordering, error)
type ServerUpdate ¶
type ServerUpdate = compute.ServerUpdate
type ServerUpgrade ¶
type ServerUpgrade = compute.ServerUpgrade
type SnapshotCreate ¶
type SnapshotCreate = compute.SnapshotCreate
type SnapshotService ¶
type SnapshotService struct {
// contains filtered or unexported fields
}
func NewSnapshotService ¶
func NewSnapshotService(client goclient.Client) SnapshotService
func (SnapshotService) Create ¶
func (v SnapshotService) Create(ctx context.Context, data SnapshotCreate) (Snapshot, error)
func (SnapshotService) Delete ¶
func (v SnapshotService) Delete(ctx context.Context, volumeID int) error
func (SnapshotService) List ¶
func (v SnapshotService) List(ctx context.Context) ([]Snapshot, error)
func (SnapshotService) Update ¶
func (v SnapshotService) Update(ctx context.Context, volumeID int, data SnapshotUpdate) (Snapshot, error)
type SnapshotUpdate ¶
type SnapshotUpdate = compute.SnapshotUpdate
type VolumeAttach ¶
type VolumeAttach = compute.VolumeAttach
type VolumeCreate ¶
type VolumeCreate = compute.VolumeCreate
type VolumeExpand ¶
type VolumeExpand = compute.VolumeExpand
type VolumeRevert ¶
type VolumeRevert = compute.VolumeRevert
type VolumeService ¶
type VolumeService struct {
// contains filtered or unexported fields
}
func NewVolumeService ¶
func NewVolumeService(client goclient.Client) VolumeService
func (VolumeService) Attach ¶
func (v VolumeService) Attach(ctx context.Context, volumeID int, data VolumeAttach) (Volume, error)
func (VolumeService) Create ¶
func (v VolumeService) Create(ctx context.Context, data VolumeCreate) (Volume, error)
func (VolumeService) Delete ¶
func (v VolumeService) Delete(ctx context.Context, volumeID int) error
func (VolumeService) Detach ¶
func (v VolumeService) Detach(ctx context.Context, volumeID, serverID int) error
func (VolumeService) Expand ¶
func (v VolumeService) Expand(ctx context.Context, volumeID int, data VolumeExpand) (Volume, error)
func (VolumeService) Revert ¶
func (v VolumeService) Revert(ctx context.Context, volumeID int, data VolumeRevert) (Volume, error)
func (VolumeService) Update ¶
func (v VolumeService) Update(ctx context.Context, volumeID int, data VolumeUpdate) (Volume, error)
type VolumeUpdate ¶
type VolumeUpdate = compute.VolumeUpdate
Source Files
¶
Click to show internal directories.
Click to hide internal directories.