Documentation ¶
Overview ¶
+k8s:deepcopy-gen=package,register +k8s:openapi-gen=true +k8s:defaulter-gen=TypeMeta +groupName=ui.k8s.appscode.com
Index ¶
- Constants
- Variables
- func FormatMetadata(data []byte) ([]byte, error)
- func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
- func Resource(resource string) schema.GroupResource
- type DashboardProvider
- type ResourceDashboard
- type ResourceDashboardList
- type ResourceDashboardSpec
- type ResourceEditor
- type ResourceEditorList
- type ResourceEditorSpec
- type VariantRef
- type YAMLFormatter
Constants ¶
const ( ResourceKindResourceDashboard = "ResourceDashboard" ResourceResourceDashboard = "resourcedashboard" ResourceResourceDashboards = "resourcedashboards" )
const ( ResourceKindResourceEditor = "ResourceEditor" ResourceResourceEditor = "resourceeditor" ResourceResourceEditors = "resourceeditors" )
const ( ObjectMetaSchema = `` /* 1545-byte string literal not displayed */ ObjectMetaFullSchema = `` /* 11089-byte string literal not displayed */ )
Variables ¶
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 )
var SchemeGroupVersion = schema.GroupVersion{Group: ui.GroupName, Version: "v1alpha1"}
Functions ¶
func FormatMetadata ¶
func GetOpenAPIDefinitions ¶
func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
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 ¶
func (in *ResourceDashboardList) DeepCopy() *ResourceDashboardList
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 ¶
func (in *ResourceDashboardSpec) DeepCopy() *ResourceDashboardSpec
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.