Documentation
¶
Overview ¶
+k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:defaulter-gen=TypeMeta +groupName=ui.devsy.sh
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterDefaults ¶
RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.
Types ¶
type CspPolicy ¶
func (*CspPolicy) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CspPolicy.
func (*CspPolicy) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Csps ¶
func (Csps) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Csps.
func (Csps) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DevsyVersion ¶
type DevsyVersion struct {
// TagName is the full tag name
Tag string `json:"tagName,omitempty"`
// PreRelease determines if the version is marked as prerelease
PreRelease bool `json:"prerelease,omitempty"`
}
func (*DevsyVersion) DeepCopy ¶
func (in *DevsyVersion) DeepCopy() *DevsyVersion
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyVersion.
func (*DevsyVersion) DeepCopyInto ¶
func (in *DevsyVersion) DeepCopyInto(out *DevsyVersion)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ExternalURLs ¶
type ExternalURLs struct {
// Block determines if requests to external URLs from the UI should be blocked
// +optional
Block bool `json:"block,omitempty"`
// Allow specifies which external URLs can be called. In addition to the predefined modules,
// - "devsy" (license page, feature descriptions, ...)
// - "gtm" (google tag manager)
// - "featurebase" (changelog)
// any URL can be added to this list. This will allow the UI to make any request to this URL.
// This is only active when Block is true.
// +optional
Allow []string `json:"allow,omitempty"`
}
func (*ExternalURLs) DeepCopy ¶
func (in *ExternalURLs) DeepCopy() *ExternalURLs
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalURLs.
func (*ExternalURLs) DeepCopyInto ¶
func (in *ExternalURLs) DeepCopyInto(out *ExternalURLs)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NavBarButton ¶
type NavBarButton struct {
// TopStart, TopEnd, BottomStart, BottomEnd. Defaults to BottomEnd
// +optional
Position string `json:"position,omitempty"`
// +optional
Text string `json:"text,omitempty"`
// +optional
Link string `json:"link,omitempty"`
// +optional
Icon string `json:"icon,omitempty"`
}
func (*NavBarButton) DeepCopy ¶
func (in *NavBarButton) DeepCopy() *NavBarButton
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NavBarButton.
func (*NavBarButton) DeepCopyInto ¶
func (in *NavBarButton) DeepCopyInto(out *NavBarButton)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProductName ¶
type ProductName string
const ( ProductNameDevsy ProductName = "Devsy" ProductNameDevsyPro ProductName = "Devsy Platform" ProductNameDevsyWorkspaces ProductName = "Devsy.Pro" )
type UISettings ¶
type UISettings struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec UISettingsSpec `json:"spec,omitempty"`
Status UISettingsStatus `json:"status,omitempty"`
}
UISettings holds the devsy ui configuration settings +k8s:openapi-gen=true
func (*UISettings) DeepCopy ¶
func (in *UISettings) DeepCopy() *UISettings
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UISettings.
func (*UISettings) DeepCopyInto ¶
func (in *UISettings) DeepCopyInto(out *UISettings)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*UISettings) DeepCopyObject ¶
func (in *UISettings) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type UISettingsConfig ¶
type UISettingsConfig struct {
// DevsyVersion holds the current devsy version
// +optional
DevsyVersion string `json:"loftVersion,omitempty"`
// LogoURL is url pointing to the logo to use in the Devsy UI. This path must be accessible for clients accessing
// the Devsy UI!
// +optional
LogoURL string `json:"logoURL,omitempty"`
// SmallLogoURL is url pointing to the small logo to use in the Devsy UI. This path must be accessible for clients accessing
// the Devsy UI!
// +optional
SmallLogoURL string `json:"smallLogoURL,omitempty"`
// LogoBackgroundColor is the color value (ex: "#12345") to use as the background color for the logo
// +optional
LogoBackgroundColor string `json:"logoBackgroundColor,omitempty"`
// LegalTemplate is a text (html) string containing the legal template to prompt to users when authenticating to Devsy
// +optional
LegalTemplate string `json:"legalTemplate,omitempty"`
// PrimaryColor is the color value (ex: "#12345") to use as the primary color
// +optional
PrimaryColor string `json:"primaryColor,omitempty"`
// SidebarColor is the color value (ex: "#12345") to use for the sidebar
// +optional
SidebarColor string `json:"sidebarColor,omitempty"`
// AccentColor is the color value (ex: "#12345") to use for the accent
// +optional
AccentColor string `json:"accentColor,omitempty"`
// CustomCSS holds URLs with custom css files that should be included when loading the UI
// +optional
CustomCSS []string `json:"customCss,omitempty"`
// CustomJavaScript holds URLs with custom js files that should be included when loading the UI
// +optional
CustomJavaScript []string `json:"customJavaScript,omitempty"`
// +optional
NavBarButtons []NavBarButton `json:"navBarButtons,omitempty"`
// External URLs that can be called from the UI
// +optional
ExternalURLs ExternalURLs `json:"externalURLs,omitempty"`
}
func (*UISettingsConfig) DeepCopy ¶
func (in *UISettingsConfig) DeepCopy() *UISettingsConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UISettingsConfig.
func (*UISettingsConfig) DeepCopyInto ¶
func (in *UISettingsConfig) DeepCopyInto(out *UISettingsConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type UISettingsSpec ¶
type UISettingsSpec struct {
UISettingsConfig `json:",inline"`
// Name is the name of the product
// +optional
ProductName string `json:"productName,omitempty"`
// Offline is true if devsy is running in an airgapped environment
// +optional
Offline bool `json:"offline,omitempty"`
// HasHelmRelease indicates whether the Devsy Platform instance
// has been installed via Helm
HasHelmRelease bool `json:"hasHelmRelease,omitempty"`
// DefaultDevsyVersion is the default version of vClusters
DefaultDevsyVersion string `json:"defaultDevsyVersion,omitempty"`
// AvailableDevsyVersions lists all virtual cluster versions available to the platform instance
// +optional
AvailableDevsyVersions []DevsyVersion `json:"availableDevsyVersions,omitempty"`
// DevsyHosted indicates whether the Devsy Platform instance
// is hosted and operated by Devsy Labs Inc.
DevsyHosted bool `json:"loftHosted,omitempty"`
}
UISettingsSpec holds the specification
func (*UISettingsSpec) DeepCopy ¶
func (in *UISettingsSpec) DeepCopy() *UISettingsSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UISettingsSpec.
func (*UISettingsSpec) DeepCopyInto ¶
func (in *UISettingsSpec) DeepCopyInto(out *UISettingsSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type UISettingsStatus ¶
type UISettingsStatus struct {
// Csps holds Content Security Policies
// +optional
Csps Csps `json:"csps,omitempty"`
// CspConfig holds the raw csp config from the user
// +optional
CspConfig string `json:"cspConfig,omitempty"`
}
UISettingsStatus holds the status
func (*UISettingsStatus) DeepCopy ¶
func (in *UISettingsStatus) DeepCopy() *UISettingsStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UISettingsStatus.
func (*UISettingsStatus) DeepCopyInto ¶
func (in *UISettingsStatus) DeepCopyInto(out *UISettingsStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.