Documentation ¶
Overview ¶
+k8s:deepcopy-gen=package,register +k8s:openapi-gen=true +k8s:defaulter-gen=TypeMeta +groupName=ui.openviz.dev
Index ¶
- Constants
- Variables
- func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
- func Resource(resource string) schema.GroupResource
- type DashboardGroup
- type DashboardGroupRequest
- type DashboardGroupResponse
- type DashboardRef
- type DashboardRequest
- type DashboardResponse
- type DashboardVar
- type DashboardVarType
- type PanelLinkRequest
- type PanelLinkResponse
- type TimeRange
Constants ¶
const ( ResourceKindDashboardGroup = "DashboardGroup" ResourceDashboardGroup = "dashboardgroup" ResourceDashboardGroups = "dashboardgroups" )
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 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 DashboardGroup ¶
type DashboardGroup struct { metav1.TypeMeta `json:",inline"` Request *DashboardGroupRequest `json:"request,omitempty"` Response *DashboardGroupResponse `json:"response,omitempty"` }
+genclient +genclient:nonNamespaced +genclient:onlyVerbs=create +k8s:openapi-gen=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*DashboardGroup) DeepCopy ¶
func (in *DashboardGroup) DeepCopy() *DashboardGroup
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DashboardGroup.
func (*DashboardGroup) DeepCopyInto ¶
func (in *DashboardGroup) DeepCopyInto(out *DashboardGroup)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DashboardGroup) DeepCopyObject ¶
func (in *DashboardGroup) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DashboardGroupRequest ¶
type DashboardGroupRequest struct { Dashboards []DashboardRequest `json:"dashboards"` // +optional // +kubebuilder:default="30s" RefreshInterval string `json:"refreshInterval,omitempty"` // +optional // // +kubebuilder:default={from: "now-3h", to: "now"} TimeRange *TimeRange `json:"timeRange,omitempty"` // +optional EmbeddedLink bool `json:"embeddedLink,omitempty"` // +optional App *kmapi.ObjectReference `json:"app,omitempty"` }
func (*DashboardGroupRequest) DeepCopy ¶
func (in *DashboardGroupRequest) DeepCopy() *DashboardGroupRequest
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DashboardGroupRequest.
func (*DashboardGroupRequest) DeepCopyInto ¶
func (in *DashboardGroupRequest) DeepCopyInto(out *DashboardGroupRequest)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DashboardGroupResponse ¶
type DashboardGroupResponse struct {
Dashboards []DashboardResponse `json:"dashboards"`
}
func (*DashboardGroupResponse) DeepCopy ¶
func (in *DashboardGroupResponse) DeepCopy() *DashboardGroupResponse
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DashboardGroupResponse.
func (*DashboardGroupResponse) DeepCopyInto ¶
func (in *DashboardGroupResponse) DeepCopyInto(out *DashboardGroupResponse)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DashboardRef ¶
type DashboardRef struct { // +optional *kmapi.ObjectReference `json:",inline"` // +optional Title string `json:"title,omitempty"` }
func (*DashboardRef) DeepCopy ¶
func (in *DashboardRef) DeepCopy() *DashboardRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DashboardRef.
func (*DashboardRef) DeepCopyInto ¶
func (in *DashboardRef) DeepCopyInto(out *DashboardRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DashboardRequest ¶
type DashboardRequest struct { DashboardRef `json:",inline"` // +optional Vars []DashboardVar `json:"vars,omitempty"` // +optional Panels []PanelLinkRequest `json:"panels,omitempty"` }
func (*DashboardRequest) DeepCopy ¶
func (in *DashboardRequest) DeepCopy() *DashboardRequest
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DashboardRequest.
func (*DashboardRequest) DeepCopyInto ¶
func (in *DashboardRequest) DeepCopyInto(out *DashboardRequest)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DashboardResponse ¶
type DashboardResponse struct { DashboardRef `json:",inline"` // +optional URL string `json:"url,omitempty"` // +optional Panels []PanelLinkResponse `json:"panels,omitempty"` }
func (*DashboardResponse) DeepCopy ¶
func (in *DashboardResponse) DeepCopy() *DashboardResponse
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DashboardResponse.
func (*DashboardResponse) DeepCopyInto ¶
func (in *DashboardResponse) DeepCopyInto(out *DashboardResponse)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DashboardVar ¶
type DashboardVar struct { Name string `json:"name"` Value string `json:"value"` // +optional // +kubebuilder:default:=Source Type DashboardVarType `json:"type,omitempty"` }
func (*DashboardVar) DeepCopy ¶
func (in *DashboardVar) DeepCopy() *DashboardVar
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DashboardVar.
func (*DashboardVar) DeepCopyInto ¶
func (in *DashboardVar) DeepCopyInto(out *DashboardVar)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (DashboardVar) VarName ¶
func (v DashboardVar) VarName() string
type DashboardVarType ¶
type DashboardVarType string
+kubebuilder:validation:Enum=Source;Target
const ( DashboardVarTypeSource DashboardVarType = "Source" DashboardVarTypeTarget DashboardVarType = "Target" )
type PanelLinkRequest ¶
type PanelLinkRequest struct { Title string `json:"title"` // +optional Width int `json:"width,omitempty"` }
func (*PanelLinkRequest) DeepCopy ¶
func (in *PanelLinkRequest) DeepCopy() *PanelLinkRequest
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PanelLinkRequest.
func (*PanelLinkRequest) DeepCopyInto ¶
func (in *PanelLinkRequest) DeepCopyInto(out *PanelLinkRequest)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PanelLinkResponse ¶
type PanelLinkResponse struct { Title string `json:"title"` URL string `json:"url"` // +optional Width int `json:"width,omitempty"` }
func (*PanelLinkResponse) DeepCopy ¶
func (in *PanelLinkResponse) DeepCopy() *PanelLinkResponse
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PanelLinkResponse.
func (*PanelLinkResponse) DeepCopyInto ¶
func (in *PanelLinkResponse) DeepCopyInto(out *PanelLinkResponse)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.