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"` 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 ¶
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
Click to show internal directories.
Click to hide internal directories.