status

package
v0.11.0-snapshot.1 Latest Latest
Warning

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

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

Documentation

Overview

status is a simple package for offering up various status information from Kiali.

Index

Constants

View Source
const (
	ConsoleVersion = name + " console version"
	CoreVersion    = name + " core version"
	CoreCommitHash = name + " core commit hash"
	State          = name + " state"
	StateRunning   = "running"
)

Variables

This section is empty.

Functions

func Put

func Put(name, value string) (previous string, hasPrevious bool)

Put adds or replaces status info for the provided name. Any previous setting is returned.

Types

type ExternalServiceInfo

type ExternalServiceInfo struct {
	// The name of the service
	//
	// required: true
	// example: Istio
	Name string `json:"name"`

	// The installed version of the service
	//
	// required: false
	// example: 0.8.0
	Version string `json:"version,omitempty"`

	// The service url
	//
	// required: false
	// example: jaeger-query-istio-system.127.0.0.1.nip.io
	Url string `json:"url,omitempty"`
}

Status response model

This is used for returning a response of Kiali Status

swagger:model externalServiceInfo

type StatusInfo

type StatusInfo struct {
	// The state of Kiali
	// A hash of key,values with versions of Kiali and state
	//
	// required: true
	Status map[string]string `json:"status"`
	// An array of external services installed
	//
	// required: true
	// swagger:allOf
	ExternalServices []ExternalServiceInfo `json:"externalServices"`
	// An array of warningMessages
	// items.example: Istio version 0.7.1 is not supported, the version should be 0.8.0
	// swagger:allOf
	WarningMessages []string `json:"warningMessages"`
}

StatusInfo statusInfo

This is used for returning a response of Kiali Status

swagger:model StatusInfo

func Get

func Get() (status StatusInfo)

Get returns a copy of the current status info.

Jump to

Keyboard shortcuts

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