handlers

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2019 License: Apache-2.0 Imports: 31 Imported by: 22

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppDashboard added in v0.12.0

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

AppDashboard is the API handler to fetch Istio dashboard, related to a single app

func AppDetails added in v0.7.0

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

AppDetails is the API handler to fetch all details to be displayed, related to a single app

func AppHealth added in v0.6.0

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

AppHealth is the API handler to get health of a single app

func AppList added in v0.7.0

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

AppList is the API handler to fetch all the apps to be displayed, related to a single namespace

func AppMetrics added in v0.6.0

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

AppMetrics is the API handler to fetch metrics to be displayed, related to an app-label grouping

func Authenticate added in v0.16.0

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

func AuthenticationInfo added in v0.16.0

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

func Config added in v0.10.0

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

Config is a REST http.HandlerFunc serving up the Kiali configuration made public to clients.

func CustomDashboard added in v0.12.0

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

CustomDashboard is the API handler to fetch runtime metrics to be displayed, related to a single app

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 Istio installation namespace

func GetJaegerInfo

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

Get JaegerInfo provides the Jaeger URL and other info, first by checking if a config exists then (if not) by inspecting the Kubernetes Jaeger service in Istio installation namespace

func GraphNamespaces added in v0.10.0

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

GraphNamespaces is a REST http.HandlerFunc handling graph generation for 1 or more namespaces

func GraphNode added in v0.8.0

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

GraphNode is a REST http.HandlerFunc handling node-detail graph config generation.

func Healthz added in v0.17.0

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

Healthz is a trivial endpoint that simply returns a 200 status code with no response body. This is to simply confirm the readiness of the server. You can use this for readiness and liveness probes.

func IstioConfigCreate added in v0.14.0

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

func IstioConfigDelete added in v0.9.1

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

func IstioConfigDetails

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

func IstioConfigList

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

func IstioConfigUpdate added in v0.12.0

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

func Logout added in v0.16.0

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

func MeshTls added in v0.21.0

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

MeshTls is the API to get mesh-wide mTLS status

func NamespaceHealth

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

NamespaceHealth is the API handler to get app-based health of every services in the 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 NamespaceTls added in v0.16.0

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

NamespaceTls is the API to get namespace-wide mTLS status

func PodDetails added in v0.18.0

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

PodDetails is the API handler to fetch all details to be displayed, related to a single pod

func PodLogs added in v0.18.0

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

PodLogs is the API handler to fetch logs for a single pod container

func RespondWithCode added in v0.14.0

func RespondWithCode(w http.ResponseWriter, code int)

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)

Root provides basic status of the server.

func ServiceDashboard added in v0.12.0

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

ServiceDashboard is the API handler to fetch Istio dashboard, related to a single service

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 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

func ThreeScaleHandlersCreate added in v0.20.0

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

func ThreeScaleHandlersDelete added in v0.20.0

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

func ThreeScaleHandlersList added in v0.20.0

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

func ThreeScaleHandlersUpdate added in v0.20.0

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

func ThreeScaleServiceRuleCreate added in v0.20.0

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

func ThreeScaleServiceRuleDelete added in v0.20.0

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

func ThreeScaleServiceRuleGet added in v0.20.0

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

func ThreeScaleServiceRuleUpdate added in v0.20.0

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

func ThreeScaleStatus added in v0.20.0

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

func WorkloadDashboard added in v0.12.0

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

WorkloadDashboard is the API handler to fetch Istio dashboard, related to a single workload

func WorkloadDetails added in v0.6.0

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

WorkloadDetails is the API handler to fetch all details to be displayed, related to a single workload

func WorkloadHealth added in v0.6.0

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

WorkloadHealth is the API handler to get health of a single workload

func WorkloadList added in v0.6.0

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

WorkloadList is the API handler to fetch all the workloads to be displayed, related to a single namespace

func WorkloadMetrics added in v0.6.0

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

WorkloadMetrics is the API handler to fetch metrics to be displayed, related to a single workload

Types

type AuthInfo added in v0.16.0

type AuthInfo struct {
	Strategy              string      `json:"strategy"`
	AuthorizationEndpoint string      `json:"authorizationEndpoint,omitempty"`
	LogoutEndpoint        string      `json:"logoutEndpoint,omitempty"`
	LogoutRedirect        string      `json:"logoutRedirect,omitempty"`
	SessionInfo           sessionInfo `json:"sessionInfo"`
	SecretMissing         bool        `json:"secretMissing,omitempty"`
}

type AuthenticationHandler added in v0.16.0

type AuthenticationHandler struct {
	// contains filtered or unexported fields
}

func NewAuthenticationHandler added in v0.16.0

func NewAuthenticationHandler() (AuthenticationHandler, error)

func (AuthenticationHandler) Handle added in v0.16.0

func (aHandler AuthenticationHandler) Handle(next http.Handler) http.Handler

func (AuthenticationHandler) HandleUnauthenticated added in v0.16.0

func (aHandler AuthenticationHandler) HandleUnauthenticated(next http.Handler) http.Handler

type PrometheusConfig added in v0.15.0

type PrometheusConfig struct {
	GlobalScrapeInterval int64 `json:"globalScrapeInterval,omitempty"`
	StorageTsdbRetention int64 `json:"storageTsdbRetention,omitempty"`
}

PrometheusConfig holds actual Prometheus configuration that is useful to Kiali. All durations are in seconds.

type PrometheusPartialConfig added in v0.15.0

type PrometheusPartialConfig struct {
	Global struct {
		Scrape_interval string
	}
}

type PublicConfig added in v0.10.0

type PublicConfig struct {
	InstallationTag string             `json:"installationTag,omitempty"`
	IstioNamespace  string             `json:"istioNamespace,omitempty"`
	IstioLabels     config.IstioLabels `json:"istioLabels,omitempty"`
	Prometheus      PrometheusConfig   `json:"prometheus,omitempty"`
}

PublicConfig is a subset of Kiali configuration that can be exposed to clients to help them interact with the system.

type TokenResponse added in v0.16.0

type TokenResponse struct {
	// The username for the token
	// A string with the user's username
	//
	// example: admin
	// required: true
	Username string `json:"username"`
	// The authentication token
	// A string with the authentication token for the user
	//
	// example: zI1NiIsIsR5cCI6IkpXVCJ9.ezJ1c2VybmFtZSI6ImFkbWluIiwiZXhwIjoxNTI5NTIzNjU0fQ.PPZvRGnR6VA4v7FmgSfQcGQr-VD
	// required: true
	Token string `json:"token"`
	// The expired time for the token
	// A string with the Datetime when the token will be expired
	//
	// example: Thu, 07 Mar 2019 17:50:26 +0000
	// required: true
	ExpiresOn string `json:"expiresOn"`
}

TokenResponse tokenResponse

This is used for returning the token

swagger:model TokenResponse

Jump to

Keyboard shortcuts

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