compute

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ImageCategoryLinux   = "linux"
	ImageCategoryWindows = "windows"
	ImageCategoryBSD     = "bsd"
)

Variables

View Source
var IPRangeAny = net.IPNet{
	IP:   net.IPv4zero,
	Mask: net.IPv4Mask(0, 0, 0, 0),
}
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]any

type CertificateCreate

type CertificateCreate = compute.CertificateCreateReq

type CertificateDelete added in v2.1.0

type CertificateDelete = compute.CertificateDeleteReq

type CertificateGet added in v2.1.0

type CertificateGet = compute.CertificateGetReq

type CertificateList added in v2.1.0

type CertificateList = core.Cursor

type ElasticIP

type ElasticIP compute.ElasticIP

func (ElasticIP) Columns

func (e ElasticIP) Columns() []string

func (ElasticIP) Keys

func (e ElasticIP) Keys() []string

func (ElasticIP) String

func (e ElasticIP) String() string

func (ElasticIP) Values

func (e ElasticIP) Values() map[string]any

type ElasticIPCreate

type ElasticIPCreate = compute.ElasticIPCreateReq

type ElasticIPDelete added in v2.1.0

type ElasticIPDelete = compute.ElasticIPDeleteReq

type ElasticIPDetach added in v2.1.0

type ElasticIPDetach = compute.ElasticIPAttachmentDeleteReq

type ElasticIPList added in v2.1.0

type ElasticIPList = core.Cursor

type GenericElasticIPService added in v2.1.0

type GenericElasticIPService struct {
	generic.CFD[
		compute.ElasticIP,
		ElasticIP,
		ElasticIPCreate,
		ElasticIPList,
		ElasticIPDelete,
	]
	// contains filtered or unexported fields
}

func ElasticIPService

func ElasticIPService() GenericElasticIPService

func (GenericElasticIPService) Attach added in v2.1.0

func (GenericElasticIPService) Detach added in v2.1.0

type GenericKeyPairService added in v2.1.0

type GenericKeyPairService = generic.CFD[
	compute.KeyPair,
	KeyPair,
	KeyPairCreate,
	KeyPairList,
	KeyPairDelete,
]

func KeyPairService

func KeyPairService() GenericKeyPairService

type GenericNetworkService added in v2.1.0

func NetworkService

func NetworkService() GenericNetworkService

type GenericRouteService added in v2.1.0

type GenericRouteService = generic.CFD[
	compute.Route,
	Route,
	RouteCreate,
	RouteList,
	RouteDelete,
]

func RouteService

func RouteService() GenericRouteService

type GenericRouterService added in v2.1.0

func RouterService

func RouterService() GenericRouterService

type GenericServerService added in v2.1.0

func ServerService

func ServerService() GenericServerService

func (GenericServerService) Upgrade added in v2.1.0

type GenericVolumeService added in v2.1.0

func VolumeService

func VolumeService() GenericVolumeService

func (GenericVolumeService) Attach added in v2.1.0

func (v GenericVolumeService) Attach(ctx context.Context, attach VolumeAttach) (Volume, error)

func (GenericVolumeService) Detach added in v2.1.0

func (v GenericVolumeService) Detach(ctx context.Context, detach VolumeDetach) error

func (GenericVolumeService) Expand added in v2.1.0

func (v GenericVolumeService) Expand(ctx context.Context, expand VolumeExpand) (Volume, error)

func (GenericVolumeService) Revert added in v2.1.0

func (v GenericVolumeService) Revert(ctx context.Context, revert VolumeRevert) (Volume, error)

type Image

type Image struct {
	compute.Image

	Availability []common.Location `json:"-"`
}

func Images

func Images(ctx context.Context) ([]Image, error)

func (Image) AvailableAt

func (i Image) AvailableAt(location common.Location) bool

func (Image) Columns

func (i Image) Columns() []string

func (Image) IsWindows

func (i Image) IsWindows() bool

func (Image) Keys

func (i Image) Keys() []string

func (Image) String

func (i Image) String() string

func (Image) Values

func (i Image) Values() map[string]any

type KeyPair

type KeyPair compute.KeyPair

func (KeyPair) Columns

func (k KeyPair) Columns() []string

func (KeyPair) Keys

func (k KeyPair) Keys() []string

func (KeyPair) String

func (k KeyPair) String() string

func (KeyPair) Values

func (k KeyPair) Values() map[string]any

type KeyPairCreate

type KeyPairCreate = compute.KeyPairCreateReq

type KeyPairDelete added in v2.1.0

type KeyPairDelete = compute.KeyPairDeleteReq

type KeyPairList added in v2.1.0

type KeyPairList = core.Cursor

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]any

type LoadBalancerAlgorithm

type LoadBalancerAlgorithm compute.LoadBalancerAlgorithm

func LoadBalancerAlgorithms

func LoadBalancerAlgorithms(ctx context.Context, client *goclient.Client) ([]LoadBalancerAlgorithm, error)

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]any

type LoadBalancerCreate

type LoadBalancerCreate = compute.LoadBalancerCreateReq

type LoadBalancerDelete added in v2.1.0

type LoadBalancerDelete = compute.LoadBalancerDeleteReq

type LoadBalancerGet added in v2.1.0

type LoadBalancerGet = compute.LoadBalancerGetReq

type LoadBalancerHealthCheckOptions

type LoadBalancerHealthCheckOptions = compute.LoadBalancerHealthCheckOptions

type LoadBalancerHealthCheckType

type LoadBalancerHealthCheckType compute.LoadBalancerHealthCheckType

func LoadBalancerHealthCheckTypes

func LoadBalancerHealthCheckTypes(ctx context.Context, client *goclient.Client) ([]LoadBalancerHealthCheckType, error)

func (LoadBalancerHealthCheckType) Columns

func (l LoadBalancerHealthCheckType) Columns() []string

func (LoadBalancerHealthCheckType) Keys

func (LoadBalancerHealthCheckType) String

func (LoadBalancerHealthCheckType) Values

func (l LoadBalancerHealthCheckType) Values() map[string]any

type LoadBalancerList added in v2.1.0

type LoadBalancerList = core.Cursor

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]any

type LoadBalancerMemberCreate

type LoadBalancerMemberCreate = compute.LoadBalancerMemberCreateReq

type LoadBalancerMemberDelete added in v2.1.0

type LoadBalancerMemberDelete = compute.LoadBalancerMemberDeleteReq

type LoadBalancerMemberList added in v2.1.0

type LoadBalancerMemberList = compute.LoadBalancerMemberListReq

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]any

type LoadBalancerPoolCreate

type LoadBalancerPoolCreate = compute.LoadBalancerPoolCreateReq

type LoadBalancerPoolDelete added in v2.1.0

type LoadBalancerPoolDelete = compute.LoadBalancerPoolDeleteReq

type LoadBalancerPoolGet added in v2.1.0

type LoadBalancerPoolGet = compute.LoadBalancerPoolGetReq

type LoadBalancerPoolList added in v2.1.0

type LoadBalancerPoolList = compute.LoadBalancerPoolListReq

type LoadBalancerPoolUpdate

type LoadBalancerPoolUpdate = compute.LoadBalancerPoolUpdateReq

type LoadBalancerProtocol

type LoadBalancerProtocol compute.LoadBalancerProtocol

func LoadBalancerProtocols

func LoadBalancerProtocols(ctx context.Context, client *goclient.Client) ([]LoadBalancerProtocol, error)

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]any

type LoadBalancerRunAction added in v2.1.0

type LoadBalancerRunAction = compute.LoadBalancerPerformReq

type LoadBalancerUpdate

type LoadBalancerUpdate = compute.LoadBalancerUpdateReq

type Network

type Network compute.Network

func (Network) Columns

func (n Network) Columns() []string

func (Network) Keys

func (n Network) Keys() []string

func (Network) String

func (n Network) String() string

func (Network) Values

func (n Network) Values() map[string]any

type NetworkCreate

type NetworkCreate = compute.NetworkCreateReq

type NetworkDelete added in v2.1.0

type NetworkDelete = compute.NetworkDeleteReq

type NetworkGet added in v2.1.0

type NetworkGet = compute.NetworkGetReq

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]any

type NetworkInterfaceCreate

type NetworkInterfaceCreate = compute.NetworkInterfaceCreateReq

type NetworkInterfaceDelete added in v2.1.0

type NetworkInterfaceDelete = compute.NetworkInterfaceDeleteReq

type NetworkInterfaceList added in v2.1.0

type NetworkInterfaceList = compute.NetworkInterfaceListReq

type NetworkInterfaceSecurityUpdate

type NetworkInterfaceSecurityUpdate = compute.NetworkInterfaceSecurityUpdateReq

type NetworkList added in v2.1.0

type NetworkList = core.Cursor

type NetworkUpdate

type NetworkUpdate = compute.NetworkUpdateReq

type Route

type Route compute.Route

func (Route) Columns

func (r Route) Columns() []string

func (Route) Keys

func (r Route) Keys() []string

func (Route) String

func (r Route) String() string

func (Route) Values

func (r Route) Values() map[string]any

type RouteCreate

type RouteCreate = compute.RouteCreateReq

type RouteDelete added in v2.1.0

type RouteDelete = compute.RouteDeleteReq

type RouteList added in v2.1.0

type RouteList = compute.RouteListReq

type Router

type Router compute.Router

func (Router) Columns

func (r Router) Columns() []string

func (Router) Keys

func (r Router) Keys() []string

func (Router) String

func (r Router) String() string

func (Router) Values

func (r Router) Values() map[string]any

type RouterCreate

type RouterCreate = compute.RouterCreateReq

type RouterDelete added in v2.1.0

type RouterDelete = compute.RouterDeleteReq

type RouterGet added in v2.1.0

type RouterGet = compute.RouterGetReq

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]any

type RouterInterfaceCreate

type RouterInterfaceCreate = compute.RouterInterfaceCreateReq

type RouterInterfaceDelete added in v2.1.0

type RouterInterfaceDelete = compute.RouterInterfaceDeleteReq

type RouterInterfaceList added in v2.1.0

type RouterInterfaceList = compute.RouterInterfaceListReq

type RouterList added in v2.1.0

type RouterList = core.Cursor

type RouterUpdate

type RouterUpdate = compute.RouterUpdateReq

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]any

type SecurityGroupCreate

type SecurityGroupCreate = compute.SecurityGroupCreateReq

type SecurityGroupDelete added in v2.1.0

type SecurityGroupDelete = compute.SecurityGroupDeleteReq

type SecurityGroupGet added in v2.1.0

type SecurityGroupGet = compute.SecurityGroupGetReq

type SecurityGroupList added in v2.1.0

type SecurityGroupList = core.Cursor

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]any

type SecurityGroupRuleCreate

type SecurityGroupRuleCreate = compute.SecurityGroupRuleCreateReq

type SecurityGroupRuleDelete added in v2.1.0

type SecurityGroupRuleDelete = compute.SecurityGroupRuleDeleteReq

type SecurityGroupRuleList added in v2.1.0

type SecurityGroupRuleList = compute.SecurityGroupRuleListReq

type SecurityGroupRuleUpdate

type SecurityGroupRuleUpdate = compute.SecurityGroupRuleUpdateReq

type SecurityGroupUpdate

type SecurityGroupUpdate = compute.SecurityGroupUpdateReq

type Server

type Server compute.Server

func (Server) Columns

func (s Server) Columns() []string

func (Server) Keys

func (s Server) Keys() (identifiers []string)

func (Server) String

func (s Server) String() string

func (Server) Values

func (s Server) Values() map[string]any

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]any

type ServerCreate

type ServerCreate = compute.ServerCreateReq

type ServerDelete added in v2.1.0

type ServerDelete = compute.ServerDeleteReq

type ServerGet added in v2.1.0

type ServerGet = compute.ServerGetReq

type ServerList added in v2.1.0

type ServerList = core.Cursor

type ServerRunAction

type ServerRunAction = compute.ServerPerformReq

type ServerUpdate

type ServerUpdate = compute.ServerUpdateReq

type ServerUpgrade

type ServerUpgrade = compute.ServerUpgradeReq

type Snapshot

type Snapshot compute.Snapshot

func (Snapshot) Columns

func (s Snapshot) Columns() []string

func (Snapshot) Keys

func (s Snapshot) Keys() []string

func (Snapshot) String

func (s Snapshot) String() string

func (Snapshot) Values

func (s Snapshot) Values() map[string]any

type SnapshotCreate

type SnapshotCreate = compute.SnapshotCreateReq

type SnapshotDelete added in v2.1.0

type SnapshotDelete = compute.SnapshotDeleteReq

type SnapshotGet added in v2.1.0

type SnapshotGet = compute.SnapshotGetReq

type SnapshotList added in v2.1.0

type SnapshotList = core.Cursor

type SnapshotUpdate

type SnapshotUpdate = compute.SnapshotUpdateReq

type Volume

type Volume compute.Volume

func (Volume) Columns

func (v Volume) Columns() []string

func (Volume) Keys

func (v Volume) Keys() []string

func (Volume) String

func (v Volume) String() string

func (Volume) Values

func (v Volume) Values() map[string]any

type VolumeAttach

type VolumeAttach = compute.VolumeAttachReq

type VolumeCreate

type VolumeCreate = compute.VolumeCreateReq

type VolumeDelete added in v2.1.0

type VolumeDelete = compute.VolumeDeleteReq

type VolumeDetach added in v2.1.0

type VolumeDetach = compute.VolumeDetachReq

type VolumeExpand

type VolumeExpand = compute.VolumeExpandReq

type VolumeGet added in v2.1.0

type VolumeGet = compute.VolumeGetReq

type VolumeList added in v2.1.0

type VolumeList = core.Cursor

type VolumeRevert

type VolumeRevert = compute.VolumeRevertReq

type VolumeUpdate

type VolumeUpdate = compute.VolumeUpdateReq

Jump to

Keyboard shortcuts

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