api

package
v1.8.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SystemBanner

type SystemBanner struct {
	Message  string               `json:"message"`
	Severity SystemBannerSeverity `json:"severity"`
}

SystemBanner represents system banner.

type SystemBannerManager

type SystemBannerManager interface {
	// Get system banner.
	Get() *SystemBanner
}

SystemBannerManager is used for user system banner management.

type SystemBannerSeverity

type SystemBannerSeverity string

SystemBannerSeverity represents severity of system banner.

const (
	// SystemBannerSeverityInfo is the lowest of allowed system banner severities.
	SystemBannerSeverityInfo SystemBannerSeverity = "INFO"

	// SystemBannerSeverityInfo is in the middle of allowed system banner severities.
	SystemBannerSeverityWarning SystemBannerSeverity = "WARNING"

	// SystemBannerSeverityInfo is the highest of allowed system banner severities.
	SystemBannerSeverityError SystemBannerSeverity = "ERROR"
)

func GetSeverity

func GetSeverity(severity string) SystemBannerSeverity

GetSeverity returns one of allowed severity values based on given parameter.

Jump to

Keyboard shortcuts

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