Documentation
¶
Overview ¶
+k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:defaulter-gen=TypeMeta +groupName=ui.loft.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 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 ( ProductNameLoft ProductName = "Loft" ProductNameVClusterPro ProductName = "vCluster.Pro" ProductNameDevPodPro ProductName = "DevPod.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 loft 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 {
// LoftVersion holds the current loft version
// +optional
LoftVersion string `json:"loftVersion,omitempty"`
// LogoURL is url pointing to the logo to use in the Loft UI. This path must be accessible for clients accessing
// the Loft UI!
// +optional
LogoURL string `json:"logoURL,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 Loft
// +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"`
}
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 loft is running in an airgapped environment
// +optional
Offline bool `json:"offline,omitempty"`
// HasHelmRelease indicates whether loft has been installed via Helm
HasHelmRelease bool `json:"hasHelmRelease,omitempty"`
// DefaultVClusterVersion is the default version of vClusters
DefaultVClusterVersion string `json:"defaultVClusterVersion,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{}
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.