bmcapacity

package
v0.6.20 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AvailableNodes

type AvailableNodes struct {
	Capacity map[string]int `json:"capacity"`
}

AvailableNodes represents available baremetal nodes

type GetAvailableNodesResult

type GetAvailableNodesResult struct {
	// contains filtered or unexported fields
}

GetAvailableNodesResult represents the result of a get operation. Call its Extract method to interpret it as a AvailableNodes.

func GetAvailableNodes

func GetAvailableNodes(c *gcorecloud.ServiceClient) (r GetAvailableNodesResult)

GetAvailableNodes retrieves available baremetal nodes

func (GetAvailableNodesResult) Extract

func (r GetAvailableNodesResult) Extract() (*AvailableNodes, error)

Extract is a function that accepts a result and extracts amount of available baremetal nodes

func (GetAvailableNodesResult) ExtractInto

func (r GetAvailableNodesResult) ExtractInto(v interface{}) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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