Documentation ¶
Index ¶
Constants ¶
const ExtensionBundleLocationKey = "tekton-dashboard-bundle-location"
Extension UI bundle location annotation
const ExtensionDisplayNameKey = "tekton-dashboard-display-name"
Extension display name annotation
const ExtensionEndpointDelimiter = "."
Delimiter to be used between the extension endpoints annotation value
const ExtensionLabel = ExtensionLabelKey + "=" + ExtensionLabelValue
Full label required by services to be registered as a dashboard extension
const ExtensionLabelKey = "tekton-dashboard-extension"
Label key required by services to be registered as a dashboard extension
const ExtensionLabelValue = "true"
Label value required by services to be registered as a dashboard extension
const ExtensionRoot = "/v1/extensions"
extensionRoot
const ExtensionUrlKey = "tekton-dashboard-endpoints"
Annotation that specifies the valid extension path, defaults to "/"
Variables ¶
This section is empty.
Functions ¶
func RegisterExtension ¶
Add a discovered extension as a webservice (that must have a unique rootPath) to the container/mux
func UnregisterExtension ¶
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