Documentation
¶
Index ¶
Constants ¶
View Source
const ( VPC_ARCH_X86_64 vpcArch = "amd64" VPC_ARCH_IBMZ vpcArch = "s390x" )
Variables ¶
This section is empty.
Functions ¶
func GetVPCImage ¶
func GetVPCImage(args *VPCImageArgs) (*string, error)
func ProfileSupportsSpot ¶ added in v0.14.5
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
func (c *ComputeSelector) Select(args *computerequest.ComputeRequestArgs) ([]string, error)
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 VPCImageArgs ¶
type VPCImageArgs struct {
Name string
Arch vpcArch
}
Click to show internal directories.
Click to hide internal directories.