v1alpha1

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: Apache-2.0 Imports: 14 Imported by: 16

Documentation

Overview

+k8s:deepcopy-gen=package,register +k8s:openapi-gen=true +k8s:defaulter-gen=TypeMeta +groupName=ui.k8s.appscode.com

Index

Constants

View Source
const (
	ResourceKindResourceDashboard = "ResourceDashboard"
	ResourceResourceDashboard     = "resourcedashboard"
	ResourceResourceDashboards    = "resourcedashboards"
)
View Source
const (
	ResourceKindResourceEditor = "ResourceEditor"
	ResourceResourceEditor     = "resourceeditor"
	ResourceResourceEditors    = "resourceeditors"
)
View Source
const (
	ObjectMetaSchema = `` /* 1545-byte string literal not displayed */

	ObjectMetaFullSchema = `` /* 11089-byte string literal not displayed */

)

Variables

View Source
var (
	// TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api.
	// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
	SchemeBuilder runtime.SchemeBuilder

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: ui.GroupName, Version: "v1alpha1"}

Functions

func FormatMetadata

func FormatMetadata(data []byte) ([]byte, error)

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type DashboardProvider

type DashboardProvider string

+kubebuilder:validation:Enum=Grafana

const (
	DashboardProviderGrafana DashboardProvider = "Grafana"
)

type ResourceDashboard

type ResourceDashboard struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              ResourceDashboardSpec `json:"spec,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:resource:path=resourcedashboards,singular=resourcedashboard,scope=Cluster +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"

func (ResourceDashboard) CustomResourceDefinition

func (v ResourceDashboard) CustomResourceDefinition() *apiextensions.CustomResourceDefinition

func (*ResourceDashboard) DeepCopy

func (in *ResourceDashboard) DeepCopy() *ResourceDashboard

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

func (*ResourceDashboard) DeepCopyInto

func (in *ResourceDashboard) DeepCopyInto(out *ResourceDashboard)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ResourceDashboard) DeepCopyObject

func (in *ResourceDashboard) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ResourceDashboardList

type ResourceDashboardList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ResourceDashboard `json:"items,omitempty"`
}

func (*ResourceDashboardList) DeepCopy

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

func (*ResourceDashboardList) DeepCopyInto

func (in *ResourceDashboardList) DeepCopyInto(out *ResourceDashboardList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ResourceDashboardList) DeepCopyObject

func (in *ResourceDashboardList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ResourceDashboardSpec

type ResourceDashboardSpec struct {
	Resource   kmapi.ResourceID   `json:"resource"`
	Provider   DashboardProvider  `json:"provider,omitempty"`
	Dashboards []shared.Dashboard `json:"dashboards"`
}

func (*ResourceDashboardSpec) DeepCopy

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

func (*ResourceDashboardSpec) DeepCopyInto

func (in *ResourceDashboardSpec) DeepCopyInto(out *ResourceDashboardSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ResourceEditor

type ResourceEditor struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              ResourceEditorSpec `json:"spec,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:resource:path=resourceeditors,singular=resourceeditor,scope=Cluster +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"

func (ResourceEditor) CustomResourceDefinition

func (v ResourceEditor) CustomResourceDefinition() *apiextensions.CustomResourceDefinition

func (*ResourceEditor) DeepCopy

func (in *ResourceEditor) DeepCopy() *ResourceEditor

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

func (*ResourceEditor) DeepCopyInto

func (in *ResourceEditor) DeepCopyInto(out *ResourceEditor)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ResourceEditor) DeepCopyObject

func (in *ResourceEditor) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ResourceEditorList

type ResourceEditorList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ResourceEditor `json:"items,omitempty"`
}

func (*ResourceEditorList) DeepCopy

func (in *ResourceEditorList) DeepCopy() *ResourceEditorList

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

func (*ResourceEditorList) DeepCopyInto

func (in *ResourceEditorList) DeepCopyInto(out *ResourceEditorList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ResourceEditorList) DeepCopyObject

func (in *ResourceEditorList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ResourceEditorSpec

type ResourceEditorSpec struct {
	Resource kmapi.ResourceID     `json:"resource"`
	UI       *shared.UIParameters `json:"ui,omitempty"`
	// Icons is an optional list of icons for an application. Icon information includes the source, size,
	// and mime type.
	Icons []shared.ImageSpec `json:"icons,omitempty"`
	// Kind == VendorChartPreset | ClusterChartPreset
	Variants  []VariantRef                 `json:"variants,omitempty"`
	Installer *shared.DeploymentParameters `json:"installer,omitempty"`
}

func (*ResourceEditorSpec) DeepCopy

func (in *ResourceEditorSpec) DeepCopy() *ResourceEditorSpec

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

func (*ResourceEditorSpec) DeepCopyInto

func (in *ResourceEditorSpec) DeepCopyInto(out *ResourceEditorSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type VariantRef

type VariantRef struct {
	core.TypedLocalObjectReference `json:",inline"`

	// Icons is an optional list of icons for an application. Icon information includes the source, size,
	// and mime type.
	Icons []shared.ImageSpec `json:"icons,omitempty"`
}

func (*VariantRef) DeepCopy

func (in *VariantRef) DeepCopy() *VariantRef

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

func (*VariantRef) DeepCopyInto

func (in *VariantRef) DeepCopyInto(out *VariantRef)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type YAMLFormatter

type YAMLFormatter interface {
	ToYAML() ([]byte, error)
}

Jump to

Keyboard shortcuts

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