v1

package
v4.0.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: MPL-2.0 Imports: 2 Imported by: 0

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

func RegisterDefaults(scheme *runtime.Scheme) error

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 struct {
	// Position holds the position of the button, can be one of:
	// TopStart, TopEnd, BottomStart, BottomEnd. Defaults to BottomEnd
	// +optional
	Position string `json:"position,omitempty"`
	// Text holds text for the button
	// +optional
	Text string `json:"text,omitempty"`
	// Link holds the link of the navbar button
	// +optional
	Link string `json:"link,omitempty"`
	// Icon holds the url of the icon to display
	// +optional
	Icon string `json:"icon,omitempty"`
}
func (in *NavBarButton) DeepCopy() *NavBarButton

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NavBarButton.

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 Platform"
	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"`
	// NavBarButtons holds extra nav bar buttons
	// +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.

Jump to

Keyboard shortcuts

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