handlers

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2018 License: Apache-2.0 Imports: 25 Imported by: 22

Documentation

Index

Constants

View Source
const TF = "2006-01-02 15:04:05"

TF is the TimeFormat for printing timestamp

Variables

This section is empty.

Functions

func GetGrafanaInfo

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

GetGrafanaInfo provides the Grafana URL and other info, first by checking if a config exists then (if not) by inspecting the Kubernetes Grafana service in namespace istio-system

func GetJaegerInfo

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

GetjaegerInfo provides the jaeger URLo, first by checking if a config exists then (if not) by inspecting the Kubernetes Jaeger service in namespace istio-system

func GetToken

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

func GraphNamespace

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

GraphNamespace is a REST http.HandlerFunc handling namespace-wide servicegraph config generation.

func GraphService

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

GraphService is a REST http.HandlerFunc handling service-specific servicegraph config generation.

func IstioConfigDetails

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

func IstioConfigList

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

func IstioConfigValidations

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

func NamespaceHealth

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

NamespaceHealth is the API handler to get health of every services in the given namespace

func NamespaceIstioValidations

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

NamespaceIstioValidations is the API handler to get istio validations of a given namespace

func NamespaceList

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

func NamespaceMetrics

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

NamespaceMetrics is the API handler to fetch metrics to be displayed, related to all services in the namespace

func RespondWithError

func RespondWithError(w http.ResponseWriter, code int, message string)

func RespondWithJSON

func RespondWithJSON(w http.ResponseWriter, code int, payload interface{})

func RespondWithJSONIndent

func RespondWithJSONIndent(w http.ResponseWriter, code int, payload interface{})

func Root

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

func ServiceDetails

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

ServiceDetails is the API handler to fetch full details of an specific service

func ServiceHealth

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

ServiceHealth is the API handler to get health of a single service

func ServiceIstioValidations

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

ServiceIstioValidations is the API handler to get istio validations of a single service that returns an IstioValidation object which contains for each object type one validation per each detected object in the current cluster that have an error/warning in its configuration.

func ServiceList

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

ServiceList is the API handler to fetch the list of services in a given namespace

func ServiceMetrics

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

ServiceMetrics is the API handler to fetch metrics to be displayed, related to a single service

Types

This section is empty.

Jump to

Keyboard shortcuts

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