disktype

package
v0.4.0 Latest Latest
Warning

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

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

Documentation

Overview

Package disktype implements API functions residing under /provisioning/disk_type. This path contains methods for querying ips available disk types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	List(ctx context.Context, locationID string, page, limit int) ([]DiskType, error)
}

API contains methods for disk_type querying.

func NewAPI

func NewAPI(c client.Client) API

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

type DiskType

type DiskType struct {
	ID          string `json:"id"`
	StorageType string `json:"storage_type"`
	Bandwidth   int    `json:"bandwidth"`
	IOPS        int    `json:"iops"`
	Latency     int    `json:"latency"`
}

DiskType represents a disk type that may be used for VMs.

Jump to

Keyboard shortcuts

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