data

package
v0.14.5 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VPC_ARCH_X86_64 vpcArch = "amd64"
	VPC_ARCH_IBMZ   vpcArch = "s390x"
)

Variables

This section is empty.

Functions

func GetImage

func GetImage(mCtx *mc.Context, args *PiImageArgs) (*string, error)

func GetVPCImage

func GetVPCImage(args *VPCImageArgs) (*string, error)

func ProfileSupportsSpot added in v0.14.5

func ProfileSupportsSpot(name string) (bool, error)

ProfileSupportsSpot returns true when the named profile permits spot (preemptible) instances. Profiles with a fixed availability class of "standard" only cannot be used with spot.

Types

type ComputeSelector added in v0.14.5

type ComputeSelector struct{}

func NewComputeSelector added in v0.14.5

func NewComputeSelector() *ComputeSelector

func (*ComputeSelector) Select added in v0.14.5

Select returns the smallest IBM Cloud VPC instance profile name satisfying the requested CPUs, memory, and optional family restrictions. The profile must support the amd64 architecture.

type PiImageArgs

type PiImageArgs struct {
	CloudInstanceId string
	Name            string
}

type VPCImageArgs

type VPCImageArgs struct {
	Name string
	Arch vpcArch
}

Jump to

Keyboard shortcuts

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