nodes

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddNodeToF5 added in v1.1.1

func AddNodeToF5(clientset *kubernetes.Interface, kubeNode *corev1.Node, partition string, poolName string, monitorName string, monitorPort string)

func CreateNodeOnF5 added in v1.1.1

func CreateNodeOnF5(node Node)

func DeleteNodeOnF5 added in v1.1.1

func DeleteNodeOnF5(partition string, node string)

func IsWorkerNode added in v1.1.2

func IsWorkerNode(kubeNode *corev1.Node) bool

func RemoveNodeFromF5 added in v1.1.1

func RemoveNodeFromF5(clientset *kubernetes.Interface, kubeNode *corev1.Node, partition string, poolName string, monitorName string, monitorPort string)

func ResyncNodes added in v1.1.1

func ResyncNodes(clientset *kubernetes.Interface, partition string, poolName string, monitorName string, monitorPort string)

func UpdatePool added in v1.1.1

func UpdatePool(partition string, nodes []Node, pool string, monitor string, poolPort string)

Types

type Memberlist added in v1.1.1

type Memberlist struct {
	Members []Memberlistmember `json:"members"`
}

type Memberlistmember added in v1.1.1

type Memberlistmember struct {
	Name    string `json:"name"`
	Monitor string `json:"monitor"`
}

type Members added in v1.1.1

type Members struct {
	Kind     string `json:"kind"`
	SelfLink string `json:"selfLink"`
	Items    []struct {
		Kind            string `json:"kind"`
		Name            string `json:"name"`
		Partition       string `json:"partition"`
		FullPath        string `json:"fullPath"`
		Generation      int    `json:"generation"`
		SelfLink        string `json:"selfLink"`
		Address         string `json:"address"`
		ConnectionLimit int    `json:"connectionLimit"`
		DynamicRatio    int    `json:"dynamicRatio"`
		Ephemeral       string `json:"ephemeral"`
		Fqdn            struct {
			Autopopulate string `json:"autopopulate"`
		} `json:"fqdn"`
		InheritProfile string `json:"inheritProfile"`
		Logging        string `json:"logging"`
		Monitor        string `json:"monitor"`
		PriorityGroup  int    `json:"priorityGroup"`
		RateLimit      string `json:"rateLimit"`
		Ratio          int    `json:"ratio"`
		Session        string `json:"session"`
		State          string `json:"state"`
	} `json:"items"`
}

type Node added in v1.1.1

type Node struct {
	Name      string `json:"name"`
	Partition string `json:"partition"`
	Address   string `json:"address"`
	Labels    struct {
		NodeRoleKubernetesIoWorker string `json:"node-role.kubernetes.io/worker"`
	}
}

func GetNodesFromKubernetes added in v1.1.1

func GetNodesFromKubernetes(clientset *kubernetes.Interface, partition string) []Node

type NodeList added in v1.1.1

type NodeList struct {
	Items []Node `json:"items"`
}

func GetNodesFromF5 added in v1.1.1

func GetNodesFromF5(partition string) NodeList

Jump to

Keyboard shortcuts

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