Version: v1.0.0 Latest Latest

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

Go to latest
Published: Nov 27, 2018 License: Apache-2.0 Imports: 11 Imported by: 0




This section is empty.


This section is empty.


func GetClusterHierarchy

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

GetClusterHierarchy listens on /hierarchy endpoint and returns all namespaces(or nodes and PV) in the cluster

func GetClusterMetrics

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

GetClusterMetrics listens on /metrics endpoint with option for view(physical or logical)

func GetContainerHierarchy

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

GetContainerHierarchy listens on /hierarchy/container endpoint and returns all children of container

func GetContainerMetrics

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

GetContainerMetrics listens on /metrics/container

func GetDaemonsetHierarchy

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

GetDaemonsetHierarchy listens on /hierarchy/daemonset endpoint and returns all children of Daemonset

func GetDaemonsetMetrics

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

GetDaemonsetMetrics listens on /metrics/daemonset

func GetDeploymentHierarchy

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

GetDeploymentHierarchy listens on /hierarchy/deployment endpoint and returns all children of deployment

func GetDeploymentMetrics

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

GetDeploymentMetrics listens on /metrics/deployment

func GetEmptyHierarchy

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

GetEmptyHierarchy listens on /hierarchy/process and /hierarchy/pvc endpoint and returns empty data

func GetHomePage

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

GetHomePage is the default api home page

func GetJobHierarchy

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

GetJobHierarchy listens on /hierarchy/job endpoint and returns all children of Job

func GetJobMetrics

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

GetJobMetrics listens on /metrics/job

func GetNamespaceHierarchy

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

GetNamespaceHierarchy listens on /hierarchy/namespace endpoint and returns all children of namespace

func GetNamespaceMetrics

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

GetNamespaceMetrics listens on /metrics/namespace

func GetNodeHierarchy

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

GetNodeHierarchy listens on /hierarchy/node endpoint and returns all children of node

func GetNodeMetrics

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

GetNodeMetrics listens on /metrics/node

func GetPVCMetrics

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

GetPVCMetrics listens on /metrics/pv

func GetPVHierarchy

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

GetPVHierarchy listens on /hierarchy/pv endpoint and returns all children of PV

func GetPVMetrics

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

GetPVMetrics listens on /metrics/pv

func GetPodDiscoveryEdges

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

GetPodDiscoveryEdges listens on /discovery/pod/edges endpoint

func GetPodDiscoveryNodes

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

GetPodDiscoveryNodes listens on /discovery/pod/nodes endpoint

func GetPodHierarchy

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

GetPodHierarchy listens on /hierarchy/pod endpoint and returns all children of pod

func GetPodInteractions

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

GetPodInteractions listens on /interactions/pod endpoint and returns pod interactions

func GetPodMetrics

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

GetPodMetrics listens on /metrics/pod

func GetReplicasetHierarchy

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

GetReplicasetHierarchy listens on /hierarchy/replicaset endpoint and returns all children of replicaset

func GetReplicasetMetrics

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

GetReplicasetMetrics listens on /metrics/replicaset

func GetStatefulsetHierarchy

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

GetStatefulsetHierarchy listens on /hierarchy/statefulset endpoint and returns all children of statefulset

func GetStatefulsetMetrics

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

GetStatefulsetMetrics listens on /metrics/statefulset

func Logger

func Logger(inner http.Handler, name string) http.Handler

Logger implements web logging logic

func NewRouter

func NewRouter() *mux.Router

NewRouter returns a new instance of the router

func StartServer

func StartServer()

StartServer starts api server


type Route

type Route struct {
	Name        string
	Method      string
	Pattern     string
	HandlerFunc http.HandlerFunc

Route structure

type Routes

type Routes []Route

Routes list

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL