router

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const ExtensionBundleLocationKey = "tekton-dashboard-bundle-location"

Extension UI bundle location annotation

View Source
const ExtensionDisplayNameKey = "tekton-dashboard-display-name"

Extension display name annotation

View Source
const ExtensionEndpointDelimiter = "."

Delimiter to be used between the extension endpoints annotation value

View Source
const ExtensionLabel = ExtensionLabelKey + "=" + ExtensionLabelValue

Full label required by services to be registered as a dashboard extension

View Source
const ExtensionLabelKey = "tekton-dashboard-extension"

Label key required by services to be registered as a dashboard extension

View Source
const ExtensionLabelValue = "true"

Label value required by services to be registered as a dashboard extension

View Source
const ExtensionRoot = "/v1/extensions"

extensionRoot

View Source
const ExtensionUrlKey = "tekton-dashboard-endpoints"

Annotation that specifies the valid extension path, defaults to "/"

Variables

This section is empty.

Functions

func Register

func Register(resource endpoints.Resource) *restful.Container

func RegisterExtension

func RegisterExtension(extensionService *corev1.Service)

Add a discovered extension as a webservice (that must have a unique rootPath) to the container/mux

func UnregisterExtension

func UnregisterExtension(extensionService *corev1.Service)

Should be called PRIOR to registration of extensionService on informer update

Types

type Extension

type Extension struct {
	Name           string `json:"name"`
	URL            string `json:"url"`
	Port           string `json:"port"`
	DisplayName    string `json:"displayname"`
	BundleLocation string `json:"bundlelocation"`
}

Back-end extension: Requests to the URL are passed through to the Port of the Name service (extension) "label: tekton-dashboard-extension=true" in the service defines the extension "annotation: tekton-dashboard-endpoints=<URL>" specifies the path for the extension

func GetExtensions

func GetExtensions() []Extension

Jump to

Keyboard shortcuts

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