instancetype

package
v0.0.0-...-a2a92cf Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IBMInstanceTypeProvider

type IBMInstanceTypeProvider struct {
	// contains filtered or unexported fields
}

func (*IBMInstanceTypeProvider) Create

func (*IBMInstanceTypeProvider) Delete

func (*IBMInstanceTypeProvider) Get

func (*IBMInstanceTypeProvider) List

type InstanceTypeCapabilities

type InstanceTypeCapabilities struct {
	// CPU is the number of CPU cores available
	CPU int
	// Memory is the amount of memory available in GB
	Memory int
	// Architecture is the CPU architecture
	Architecture string
	// GPU indicates if GPU is available
	GPU bool
	// NetworkBandwidth is the network bandwidth in Gbps
	NetworkBandwidth int
	// StorageType is the type of storage available
	StorageType string
}

InstanceTypeCapabilities defines the capabilities of an instance type

type InstanceTypeRequirements

type InstanceTypeRequirements struct {
	// CPU is the number of CPU cores required
	CPU int
	// Memory is the amount of memory required in GB
	Memory int
	// Architecture is the CPU architecture (e.g., amd64, arm64)
	Architecture string
	// GPU indicates if GPU is required
	GPU bool
}

InstanceTypeRequirements defines the requirements for an instance type

type Provider

type Provider interface {
	// Get retrieves a specific instance type by name
	Get(ctx context.Context, name string) (*cloudprovider.InstanceType, error)

	// List returns all available instance types
	List(ctx context.Context) ([]*cloudprovider.InstanceType, error)

	// Create creates a new instance type (no-op for IBM Cloud as types are predefined)
	Create(ctx context.Context, instanceType *cloudprovider.InstanceType) error

	// Delete deletes an instance type (no-op for IBM Cloud as types are predefined)
	Delete(ctx context.Context, instanceType *cloudprovider.InstanceType) error
}

Provider defines the interface for managing IBM Cloud instance types

func NewProvider

func NewProvider() (Provider, error)

Jump to

Keyboard shortcuts

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