clusters

package
v0.0.99 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2020 License: UPL-1.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Clusters contains all clusters.
	Clusters []Cluster
)

Functions

func Init

func Init(listers controller.Listers)

Init initialization for clusters API.

func ReturnAllClusters

func ReturnAllClusters(w http.ResponseWriter, r *http.Request)

ReturnAllClusters returns all Verrazzano managed cluster resources.

func ReturnSingleCluster

func ReturnSingleCluster(w http.ResponseWriter, r *http.Request)

ReturnSingleCluster returns a single Verrazzano managed cluster resource identified by a Kubernetes UID.

Types

type Cluster

type Cluster struct {
	ID            string `json:"id"`
	Name          string `json:"name"`
	Type          string `json:"type"`
	ServerAddress string `json:"serverAddress"`
	Description   string `json:"description"`
	Status        string `json:"status"`
}

Cluster details of cluster returned in API calls.

func GetClusters

func GetClusters() ([]Cluster, error)

GetClusters returns list of clusters.

Jump to

Keyboard shortcuts

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