undercloud

package
v0.0.0-...-8bfe3b3 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CreateAction = "create"
	UpdateAction = "update"
	DeleteAction = "delete"

	ProvisionProvisioningAction = "PROVISION"
	ImportProvisioningAction    = "IMPORT"
	TestIntrospectionDir        = "./test_data/introspection"
)

Cloud deployer related constants.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaremetalServer

type BaremetalServer struct {
	IMPMIAddress string        `json:"ipmi_address"`
	NumaTopology *NumaTopology `json:"numa_topology"`
}

BaremetalServer is the ironic introspected server

type Config

type Config struct {
	// http client of api server
	APIServer *client.HTTP
	// UUID of resource to be managed.
	ResourceID string
	// Action to the performed with the resource (values: create, update, delete).
	Action string
	// Logging level
	LogLevel string
	// Logging  file
	LogFile string
	// Template root directory
	TemplateRoot string

	// Optional Test var to run command in test mode
	Test bool
	// Work root directory
	WorkRoot string
}

Config represents Command configuration.

type Data

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

Data is the representation of cloud manager details.

func NewData

func NewData(apiClient *client.HTTP) *Data

NewData creates a undercloud data

type Nic

type Nic struct {
	Name string `json:"name"`
}

Nic is the Nic in the server

type NumaTopology

type NumaTopology struct {
	Nics []*Nic `json:"nics"`
}

NumaTopology is the Nic topology of the server

type OvercloudNetworkData

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

OvercloudNetworkData is the representation of overcloud network details.

func NewOvercloudNetworkData

func NewOvercloudNetworkData(overcloudNetwork *models.RhospdOvercloudNetwork,
	apiClient *client.HTTP) *OvercloudNetworkData

NewOvercloudNetworkData creates a undercloud data

type UnderCloud

type UnderCloud struct {
	APIServer *client.HTTP
	// contains filtered or unexported fields
}

UnderCloud represents contrail undercloud manager

func NewUnderCloud

func NewUnderCloud(c *Config) (*UnderCloud, error)

NewUnderCloud creates UnderCloud with given configuration.

func (*UnderCloud) GetDeployer

func (u *UnderCloud) GetDeployer() (base.Deployer, error)

GetDeployer creates new deployer based on the type

Jump to

Keyboard shortcuts

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