vmlist

package
v0.7.6 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	Get(ctx context.Context, page, limit int) ([]VM, error)
}

API contains methods for VM listing.

func NewAPI

func NewAPI(c client.Client) API

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

type VM

type VM struct {
	Name            string `json:"name"`
	CustomName      string `json:"custom_name"`
	Identifier      string `json:"identifier"`
	LocationCode    string `json:"location_code"`
	LocationCountry string `json:"location_country"`
	LocationName    string `json:"location_name"`
	OSName          string `json:"os_name"`
	OSFamily        string `json:"os_family"`
	Tags            string `json:"tags"`
}

Jump to

Keyboard shortcuts

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