propertiesv3

package
v21.11.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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

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

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

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

Replace ... satisfies interface data.Clonable

Jump to

Keyboard shortcuts

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