admin

package
v0.102.3 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

README

Admin

Specific structures for admin users.

  • ListVirtualMachines with the ListAll argument.

Documentation

Overview

Package admin contains the privileged API calls.

Some aspects of the Exoscale API are restricted to admin privileges, meaning not all field would be useful for everyone if we allowed them to coexist with the base structs. E.g. an admin can list all resources belonging to anyone using the listall=true parameter.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ListVirtualMachines

type ListVirtualMachines struct {
	egoscale.ListVirtualMachines
	ListAll *bool `json:"listall,omitempty"`
}

ListVirtualMachines represents the enriched ListVirtualMachines command

func (ListVirtualMachines) Response

func (ListVirtualMachines) Response() interface{}

Response returns the struct to unmarshal

type ListVirtualMachinesResponse

type ListVirtualMachinesResponse struct {
	Count          int              `json:"count"`
	VirtualMachine []VirtualMachine `json:"virtualmachine"`
}

ListVirtualMachinesResponse represents the list of VirtualMachine in the admin world

type VirtualMachine

type VirtualMachine struct {
	egoscale.VirtualMachine
	Account   string         `json:"account,omitempty" doc:"list resources by account"`
	AccountID *egoscale.UUID `json:"accountid,omitempty"`
	HostID    *egoscale.UUID `json:"hostid,omitempty" doc:"the host ID"`
	PodID     *egoscale.UUID `json:"podid,omitempty" doc:"the pod ID"`
	StorageID *egoscale.UUID `json:"storageid,omitempty" doc:"the storage ID where vm's volumes belong to"`
	HostName  string         `json:"string,omitempty"`
}

VirtualMachine represents the enriched VirtualMachine in the admin world

Jump to

Keyboard shortcuts

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