Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsTriggersInstalled ¶ added in v0.6.0
Types ¶
type Options ¶ added in v0.7.0
type Options struct { InstallNamespace string PipelinesNamespace string TriggersNamespace string TenantNamespace string ReadOnly bool LogoutURL string StreamLogs bool ExternalLogsURL string XFrameOptions string }
Options for enpoints
func (Options) GetPipelinesNamespace ¶ added in v0.7.0
GetPipelinesNamespace returns the PipelinesNamespace property if set or the InstallNamespace property otherwise (this assumes Tekton pipelines is installed in the same namespace as the dashboard if the property is not set)
func (Options) GetTriggersNamespace ¶ added in v0.7.0
GetTriggersNamespace returns the TriggersNamespace property if set or the InstallNamespace property otherwise (this assumes Tekton triggers is installed in the same namespace as the dashboard if the property is not set)
type Properties ¶
type Properties struct { DashboardNamespace string `json:"dashboardNamespace"` DashboardVersion string `json:"dashboardVersion"` ExternalLogsURL string `json:"externalLogsURL"` LogoutURL string `json:"logoutURL,omitempty"` PipelineNamespace string `json:"pipelinesNamespace"` PipelineVersion string `json:"pipelinesVersion"` ReadOnly bool `json:"isReadOnly"` StreamLogs bool `json:"streamLogs"` TenantNamespace string `json:"tenantNamespace,omitempty"` TriggersNamespace string `json:"triggersNamespace,omitempty"` TriggersVersion string `json:"triggersVersion,omitempty"` }
Properties : properties we want to be able to retrieve via REST
type Resource ¶
type Resource struct { Config *rest.Config K8sClient k8sclientset.Interface Options Options }
Store all types here that are reused throughout files Wrapper around all necessary clients used for endpoints
func (Resource) CheckHealth ¶
func (r Resource) CheckHealth(response http.ResponseWriter, request *http.Request)
func (Resource) GetProperties ¶
func (r Resource) GetProperties(response http.ResponseWriter, request *http.Request)
GetProperties is used to get the installed namespace for the Dashboard, the version of the Tekton Dashboard, the version of Tekton Pipelines, when one's in read-only mode and Tekton Triggers version (if Installed)