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 ActionTemplate
- type ActionTemplateGroup
- type DashboardProvider
- type ResourceDashboard
- type ResourceDashboardList
- type ResourceDashboardSpec
- type ResourceEditor
- type ResourceEditorList
- type ResourceEditorSpec
- type UIParameters
- 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 ActionTemplate ¶ added in v0.14.1
type ActionTemplate struct { shared.ActionInfo `json:",inline,omitempty"` // +optional Icons []shared.ImageSpec `json:"icons,omitempty"` OperationID string `json:"operationId"` Flow string `json:"flow"` DisabledTemplate string `json:"disabledTemplate,omitempty"` Editor *shared.ChartRepoRef `json:"editor,omitempty"` }
func (*ActionTemplate) DeepCopy ¶ added in v0.14.1
func (in *ActionTemplate) DeepCopy() *ActionTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ActionTemplate.
func (*ActionTemplate) DeepCopyInto ¶ added in v0.14.1
func (in *ActionTemplate) DeepCopyInto(out *ActionTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ActionTemplateGroup ¶ added in v0.14.1
type ActionTemplateGroup struct { shared.ActionInfo `json:",inline,omitempty"` Items []ActionTemplate `json:"items"` }
func (*ActionTemplateGroup) DeepCopy ¶ added in v0.14.1
func (in *ActionTemplateGroup) DeepCopy() *ActionTemplateGroup
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ActionTemplateGroup.
func (*ActionTemplateGroup) DeepCopyInto ¶ added in v0.14.1
func (in *ActionTemplateGroup) DeepCopyInto(out *ActionTemplateGroup)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
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 *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 UIParameters ¶ added in v0.14.1
type UIParameters struct { Options *shared.ChartRepoRef `json:"options,omitempty"` Editor *shared.ChartRepoRef `json:"editor,omitempty"` // app.kubernetes.io/instance label must be updated at these paths when refilling metadata // +optional InstanceLabelPaths []string `json:"instanceLabelPaths,omitempty"` // +optional Actions []*ActionTemplateGroup `json:"actions,omitempty"` }
func (*UIParameters) DeepCopy ¶ added in v0.14.1
func (in *UIParameters) DeepCopy() *UIParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UIParameters.
func (*UIParameters) DeepCopyInto ¶ added in v0.14.1
func (in *UIParameters) DeepCopyInto(out *UIParameters)
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.