propertiesv1

package
v19.10.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Composite

type Composite struct {
	// Array of tenants hosting a multu-tenant cluster (multi starting from 1)
	Tenants []string `json:"tenants"`
}

Composite ...

func (*Composite) Clone

func (c *Composite) Clone() serialize.Property

Clone ... (serialize.Property interface)

func (*Composite) Content

func (c *Composite) Content() interface{}

Content ... (serialize.Property interface)

func (*Composite) Replace

Replace ... (serialize.Property interface)

type Defaults

type Defaults struct {
	// GatewaySizing keeps the default node definition
	GatewaySizing resources.HostDefinition `json:"gateway_sizing"`
	// MasterSizing keeps the default node definition
	MasterSizing resources.HostDefinition `json:"master_sizing"`
	// NodeSizing keeps the default node definition
	NodeSizing resources.HostDefinition `json:"node_sizing"`
	// Image keeps the default Linux image to use
	Image string `json:"image"`
}

Defaults ...

func (*Defaults) Clone

func (d *Defaults) Clone() serialize.Property

Clone ... (serialize.Property interface)

func (*Defaults) Content

func (d *Defaults) Content() interface{}

Content ... (serialize.Property interface)

func (*Defaults) Replace

Replace ... (serialize.Property interface)

type Features

type Features struct {
	// Installed ...
	Installed map[string]string `json:"installed"`
	// Disabled keeps track of features normally automatically added with cluster creation,
	// but explicitely disabled; if a disabled feature is added, must be removed from this property
	Disabled map[string]struct{} `json:"disabled"`
}

Features ...

func (*Features) Clone

func (f *Features) Clone() serialize.Property

Clone ... (serialize.Property interface)

func (*Features) Content

func (f *Features) Content() interface{}

Content ... (serialize.Property interface)

func (*Features) Replace

Replace ... (serialize.Property interface)

type Network

type Network struct {
	NetworkID string `json:"network_id"` // contains the ID of the network
	GatewayID string `json:"gateway_id"`
	GatewayIP string `json:"gateway_ip"` // contains the private IP address of the gateway
	PublicIP  string `json:"public_ip"`  // contains the IP address to reach the cluster (== PublicIP of gateway)
	CIDR      string `json:"cidr"`       // the network CIDR
}

Network ...

func (*Network) Clone

func (n *Network) Clone() serialize.Property

Clone ... (serialize.Property interface)

func (*Network) Content

func (n *Network) Content() interface{}

Content ... (serialize.Property interface)

func (*Network) Replace

Replace ... (serialize.Property interface)

type Node

type Node struct {
	ID        string `json:"id"`         // ID of the node
	Name      string `json:"name"`       // Name of the node
	PublicIP  string `json:"public_ip"`  // public ip of the node
	PrivateIP string `json:"private_ip"` // private ip of the node
}

Node ...

type Nodes

type Nodes struct {
	Masters          []*Node `json:"masters"`                 // Masters contains the ID of the masters
	PublicNodes      []*Node `json:"public_nodes,omitempty"`  // PublicNodes is a slice of IDs of the public cluster nodes
	PrivateNodes     []*Node `json:"private_nodes,omitempty"` // PrivateNodes is a slice of IDs of the private cluster nodes
	MasterLastIndex  int     `json:"master_last_index"`       // MasterLastIndex
	PrivateLastIndex int     `json:"private_last_index"`      // PrivateLastIndex
	PublicLastIndex  int     `json:"public_last_index"`       // PublicLastIndex
}

Nodes ...

func (*Nodes) Clone

func (n *Nodes) Clone() serialize.Property

Clone ... (serialize.Property interface)

func (*Nodes) Content

func (n *Nodes) Content() interface{}

Content ... (serialize.Property interface)

func (*Nodes) Replace

func (n *Nodes) Replace(p serialize.Property) serialize.Property

Replace ... (serialize.Property interface)

type State

type State struct {
	// State of the cluster
	State ClusterState.Enum
	// StateCollectInterval in seconds
	StateCollectInterval time.Duration `json:"state_collect_interval,omitempty"`
}

State contains the bare minimum information about a cluster

func (*State) Clone

func (s *State) Clone() serialize.Property

Clone ... (serialize.Property interface)

func (*State) Content

func (s *State) Content() interface{}

Content ... (serialize.Property interface)

func (*State) Replace

func (s *State) Replace(p serialize.Property) serialize.Property

Replace ... (serialize.Property interface)

Jump to

Keyboard shortcuts

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