clients

package
v0.0.0-...-38618e0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComputeClient

type ComputeClient struct {
	*gophercloud.ServiceClient
	Authorized bool
}

func NewComputeClient

func NewComputeClient(provider *gophercloud.ProviderClient) (*ComputeClient, error)

func (ComputeClient) GetServer

func (c ComputeClient) GetServer(id string, sc chan<- *servers.Server, ec chan<- error, wg *sync.WaitGroup)

type IronicClient

type IronicClient struct {
	*gophercloud.ServiceClient
}

func NewIronicClient

func NewIronicClient(provider *gophercloud.ProviderClient) (*IronicClient, error)

func (IronicClient) GetNodes

func (c IronicClient) GetNodes() ([]IronicNode, error)

type IronicNode

type IronicNode struct {
	ID                   string  `json:"uuid"`
	InstanceUuID         string  `json:"instance_uuid"`
	Name                 string  `json:"name"`
	ProvisionState       string  `json:"provision_state"`
	Maintenance          bool    `json:"maintenance"`
	TargetProvisionState *string `json:"target_provision_state"`
	Properties           struct {
		Cores           veryFlexibleUint64 `json:"cpus"`
		DiskGiB         veryFlexibleUint64 `json:"local_gb"`
		MemoryMiB       veryFlexibleUint64 `json:"memory_mb"`
		CPUArchitecture string             `json:"cpu_arch"`
		Capabilities    string             `json:"capabilities"`
		SerialNumber    string             `json:"serial"`
		Manufacturer    string             `json:"manufacturer"`
		Model           string             `json:"model"`
	} `json:"properties"`
	DriverInfo struct {
		IpmiPassword string `json:"ipmi_password"`
		IpmiAddress  string `json:"ipmi_address"`
		IpmiUsername string `json:"ipmi_username"`
	} `json:"driver_info"`
}

func (IronicNode) ProvisionStateEnroll

func (n IronicNode) ProvisionStateEnroll() bool

func (IronicNode) StableProvisionState

func (n IronicNode) StableProvisionState() string

Jump to

Keyboard shortcuts

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