Documentation ¶
Index ¶
- type IBMInstanceTypeProvider
- func (p *IBMInstanceTypeProvider) Create(ctx context.Context, instanceType *cloudprovider.InstanceType) error
- func (p *IBMInstanceTypeProvider) Delete(ctx context.Context, instanceType *cloudprovider.InstanceType) error
- func (p *IBMInstanceTypeProvider) Get(ctx context.Context, name string) (*cloudprovider.InstanceType, error)
- func (p *IBMInstanceTypeProvider) List(ctx context.Context) ([]*cloudprovider.InstanceType, error)
- type InstanceTypeCapabilities
- type InstanceTypeRequirements
- type Provider
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 (p *IBMInstanceTypeProvider) Create(ctx context.Context, instanceType *cloudprovider.InstanceType) error
func (*IBMInstanceTypeProvider) Delete ¶
func (p *IBMInstanceTypeProvider) Delete(ctx context.Context, instanceType *cloudprovider.InstanceType) error
func (*IBMInstanceTypeProvider) Get ¶
func (p *IBMInstanceTypeProvider) Get(ctx context.Context, name string) (*cloudprovider.InstanceType, error)
func (*IBMInstanceTypeProvider) List ¶
func (p *IBMInstanceTypeProvider) List(ctx context.Context) ([]*cloudprovider.InstanceType, error)
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 ¶
Click to show internal directories.
Click to hide internal directories.