flavors

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2025 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Flavor

type Flavor struct {
	Name                 string  `json:"name"`
	Cpu                  float64 `json:"cpu"`
	Memory               float64 `json:"memory"`
	Gpu                  int     `json:"gpu"`
	GpuModel             string  `json:"gpu_model"`
	GpuMemory            float64 `json:"gpu_memory"`
	IsGpuShared          bool    `json:"is_gpu_shared"`
	GpuComputeCapability string  `json:"gpu_compute_capability"`
}

func ListAllFlavor

func ListAllFlavor(c *gcorecloud.ServiceClient) ([]Flavor, error)

ListAllFlavor lists all inference flavors.

type GetResult

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

GetResult represents the result of a get operation. Call its Extract method to interpret it as a InferenceDeployment.

func GetFlavor

func GetFlavor(c *gcorecloud.ServiceClient, name string) (r GetResult)

GetFlavor get inference flavor instance.

func (GetResult) Extract

func (r GetResult) Extract() (*Flavor, error)

Extract is a function that accepts a result and extracts an inference flavor resource.

func (GetResult) ExtractInto

func (r GetResult) ExtractInto(v interface{}) error

type ListResult

type ListResult struct {
	gcorecloud.Result
}

func (ListResult) Extract

func (r ListResult) Extract() ([]Flavor, error)

Extract is a function that accepts a result and extracts an inference flavors resource.

func (ListResult) ExtractInto

func (r ListResult) ExtractInto(v interface{}) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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