data

package
v0.14.7 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: Apache-2.0 Imports: 16 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func GetCatalogOfferingVersionCRN added in v0.14.6

func GetCatalogOfferingVersionCRN(offeringName string) (string, error)

func GetImage

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

func GetLatestCatalogOfferingVersionCRN added in v0.14.6

func GetLatestCatalogOfferingVersionCRN(arch string) (string, 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