clients

package
v0.0.0-...-d9482cb Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProviderClient

func NewProviderClient(i config.OpenstackAuth) (pc *gophercloud.ProviderClient, err error)

Types

type AwxClient

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

func (AwxClient) ExecTemplates

func (a AwxClient) ExecTemplates(host string) (err error)

type Console

type Console struct {
	Enabled bool `json:"enabled"`
}

type Netbox

type Netbox struct {
	Client *netboxclient.NetBoxAPI
	// contains filtered or unexported fields
}

NetboxClient is ..

func NewNetbox

func NewNetbox(cfg config.Config, ctxLogger *log.Entry) (n *Netbox, err error)

NewNetboxClient creates netbox client instance

func (*Netbox) LoadNodes

func (n *Netbox) LoadNodes(query, status, region *string) (nodes []string, err error)

LoadNodes loads all nodes with role server

type NodeNotFoundError

type NodeNotFoundError struct {
	Err string
}

NodeNotFoundError error for missing node

func (*NodeNotFoundError) Error

func (n *NodeNotFoundError) Error() string

type Openstack

type Openstack struct {
	Clients map[string]*gophercloud.ServiceClient
	// contains filtered or unexported fields
}

Openstack is

func NewClient

func NewClient(cfg config.Config, ctxLogger *log.Entry) *Openstack

NewClient creates a new client containing different openstack-clients (baremetal, compute, dns)

func (*Openstack) GetServiceClient

func (oc *Openstack) GetServiceClient(client string) (c *gophercloud.ServiceClient, err error)

func (*Openstack) ServiceEnabled

func (c *Openstack) ServiceEnabled(service string) (bool, error)

type PortGroup

type PortGroup struct {
	UUID                     string                 `json:"uuid,omitempty"`
	NodeUUID                 string                 `json:"node_uuid"`
	Name                     string                 `json:"name,omitempty"`
	Address                  string                 `json:"address,omitempty"`
	StandalonePortsSupported bool                   `json:"standalone_ports_supported,omitempty"`
	Mode                     string                 `json:"mode,omitempty"`
	Properties               map[string]interface{} `json:"properties,omitempty"`
}

func (PortGroup) ToPortCreateMap

func (opts PortGroup) ToPortCreateMap() (map[string]interface{}, error)

ToPortCreateMap assembles a request body based on the contents of a CreateOpts.

type Redfish

type Redfish struct {
	ClientConfig *gofish.ClientConfig
	Client       *gofish.APIClient
	// contains filtered or unexported fields
}

func NewRedfish

func NewRedfish(cfg config.Config, ctxLogger *log.Entry) *Redfish

NewRedfishClient creates redfish client

func (*Redfish) Connect

func (r *Redfish) Connect() (err error)

func (*Redfish) Logout

func (r *Redfish) Logout()

func (*Redfish) SetEndpoint

func (r *Redfish) SetEndpoint(remoteIP string) (err error)

SetEndpoint sets the redfish api endpoint

Jump to

Keyboard shortcuts

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