propertiesv3

package
v21.11.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2022 License: Apache-2.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterDefaults added in v21.11.1

type ClusterDefaults struct {
	GatewaySizing     propertiesv2.HostSizingRequirements `json:"gateway_sizing,omitempty"`      // GatewaySizing keeps the default node definition
	GatewayTemplateID string                              `json:"gateway_template_id,omitempty"` // template id used at creation for gateways
	MasterSizing      propertiesv2.HostSizingRequirements `json:"master_sizing,omitempty"`       // MasterSizing keeps the default node definition
	MasterTemplateID  string                              `json:"master_template_id,omitempty"`  // template ID used at creation for masters
	NodeSizing        propertiesv2.HostSizingRequirements `json:"node_sizing,omitempty"`         // NodeSizing keeps the default node definition
	NodeTemplateID    string                              `json:"node_template_id,omitempty"`    // template ID used at creation for nodes
	Image             string                              `json:"image,omitempty"`               // Image keeps the default Linux image name to use
	ImageID           string                              `json:"image_id,omitempty"`            // contains the ID of the image used at creation
	FeatureParameters []string                            `json:"feature_params,omitempty"`      // contains the parameters submitted for automatic installed Features during Cluster creation
}

ClusterDefaults ... !!! FROZEN !!!

func (ClusterDefaults) Clone added in v21.11.1

func (cd ClusterDefaults) Clone() (data.Clonable, error)

Clone ... satisfies interface data.Clonable

func (*ClusterDefaults) IsNull added in v21.11.1

func (cd *ClusterDefaults) IsNull() bool

IsNull ... satisfies interface data.Clonable

func (*ClusterDefaults) Replace added in v21.11.1

func (cd *ClusterDefaults) Replace(p data.Clonable) (data.Clonable, error)

Replace ... satisfies interface data.Clonable

type ClusterNetwork

type ClusterNetwork struct {
	NetworkID          string           `json:"network_id,omitempty"`           // contains the ID of the network
	CreatedNetwork     bool             `json:"created_network,omitempty"`      // tells if the network had been created with the cluster
	SubnetID           string           `json:"subnet_id,omitempty"`            // contains the ID of the subnet
	CIDR               string           `json:"cidr,omitempty"`                 // the network CIDR
	GatewayID          string           `json:"gateway_id,omitempty"`           // contains the ID of the primary gateway
	GatewayIP          string           `json:"gateway_ip,omitempty"`           // contains the private IP address of the primary gateway
	SecondaryGatewayID string           `json:"secondary_gateway_id,omitempty"` // contains the ID of the secondary gateway
	SecondaryGatewayIP string           `json:"secondary_gateway_ip,omitempty"` // contains the private IP of the secondary gateway
	DefaultRouteIP     string           `json:"default_route_ip,omitempty"`     // contains the IP of the default route
	PrimaryPublicIP    string           `json:"primary_public_ip,omitempty"`    // contains the public IP of the primary gateway
	SecondaryPublicIP  string           `json:"secondary_public_ip,omitempty"`  // contains the public IP of the secondary gateway
	EndpointIP         string           `json:"endpoint_ip,omitempty"`          // contains the IP of the external Endpoint
	SubnetState        subnetstate.Enum `json:"status,omitempty"`               // contains the network state
	Domain             string           `json:"domain,omitempty"`               // contains the domain used to define the FQDN of hosts created (taken from network)X
}

ClusterNetwork contains network information relative to cluster not FROZEN yet

func (ClusterNetwork) Clone

func (n ClusterNetwork) Clone() (data.Clonable, error)

Clone ... satisfies interface data.Clonable

func (*ClusterNetwork) IsNull

func (n *ClusterNetwork) IsNull() bool

IsNull ... satisfies interface data.Clonable

func (*ClusterNetwork) Replace

func (n *ClusterNetwork) Replace(p data.Clonable) (data.Clonable, error)

Replace ... satisfies interface data.Clonable

type ClusterNode

type ClusterNode struct {
	ID          string `json:"id"`         // ID of the node
	NumericalID uint   `json:"intid"`      // Numerical (unsigned integer) ID of the node
	Name        string `json:"name"`       // GetName of the node
	PublicIP    string `json:"public_ip"`  // public ip of the node
	PrivateIP   string `json:"private_ip"` // private ip of the node
}

ClusterNode describes a node in the cluster !!! FROZEN !!!

type ClusterNodes

type ClusterNodes struct {
	Masters           []uint                `json:"masters,omitempty"`
	MasterByName      map[string]uint       `json:"master_by_name,omitempty"`
	MasterByID        map[string]uint       `json:"master_by_id,omitempty"`
	PrivateNodes      []uint                `json:"private_nodes,omitempty"`
	PrivateNodeByName map[string]uint       `json:"private_node_by_name,omitempty"`
	PrivateNodeByID   map[string]uint       `json:"private_node_by_id,omitempty"`
	PublicNodes       []uint                `json:"public_nodes,omitempty"`
	PublicNodeByName  map[string]uint       `json:"public_node_by_name,omitempty"`
	PublicNodeByID    map[string]uint       `json:"public_node_by_id,omitempty"`
	ByNumericalID     map[uint]*ClusterNode `json:"host_by_numeric_id,omitempty"` // maps *ClusterNode with NumericalID
	MasterLastIndex   int                   `json:"master_last_index,omitempty"`  // is used to keep the index associated to the name of the last created master
	PrivateLastIndex  int                   `json:"private_last_index,omitempty"` // is used to keep the index associated to the name of the last created private node
	PublicLastIndex   int                   `json:"public_last_index,omitempty"`  // is used to keep the index associated to the name of the last created public node
	GlobalLastIndex   uint                  `json:"global_last_index,omitempty"`  // is used to keep the index associated to the last created ClusterNode (being master or node)
}

ClusterNodes contains all the nodes created in the cluster Not frozen yet

func (ClusterNodes) Clone

func (n ClusterNodes) Clone() (data.Clonable, error)

Clone ... satisfies interface data.Clonable

func (*ClusterNodes) IsNull

func (n *ClusterNodes) IsNull() bool

IsNull ... satisfies interface data.Clonable

func (*ClusterNodes) Replace

func (n *ClusterNodes) Replace(p data.Clonable) (data.Clonable, error)

Replace ... satisfies interface data.Clonable

Jump to

Keyboard shortcuts

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