cpuperformancetype

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2022 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Overview

Package templates implements API functions residing under /provisioning/cpuperformancetype. This path contains methods for querying available VM templates.

Index

Constants

View Source
const (
	// TemplateTypeTemplates are templates that already contain a distribution.
	TemplateTypeTemplates string = "templates"
	// TemplateTypeFromScratch are templates that need to have distribution added to work.
	TemplateTypeFromScratch string = "from_scratch"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	List(ctx context.Context) ([]CPUPerformanceType, error)
}

API contains methods for template querying.

func NewAPI

func NewAPI(c client.Client) API

NewAPI creates a new template API instance with the given client.

type CPUPerformanceType

type CPUPerformanceType struct {
	ID             string  `json:"id"`
	Prioritization string  `json:"prioritization"`
	Limit          float64 `json:"limit"`
	Unit           string  `json:"unit"`
}

CPUPerformanceType

Jump to

Keyboard shortcuts

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