Documentation ¶
Overview ¶
+groupName=openviz.dev
Index ¶
- Constants
- Variables
- func GetGrafana(ctx context.Context, kc client.Client, ref *kmapi.ObjectReference) (*appcatalogapi.AppBinding, error)
- func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
- func Resource(resource string) schema.GroupResource
- type GrafanaConfiguration
- type GrafanaDashboard
- type GrafanaDashboardList
- type GrafanaDashboardReference
- type GrafanaDashboardSpec
- type GrafanaDashboardStatus
- type GrafanaDashboardTemplate
- func (_ GrafanaDashboardTemplate) CustomResourceDefinition() *apiextensions.CustomResourceDefinition
- func (in *GrafanaDashboardTemplate) DeepCopy() *GrafanaDashboardTemplate
- func (in *GrafanaDashboardTemplate) DeepCopyInto(out *GrafanaDashboardTemplate)
- func (in *GrafanaDashboardTemplate) DeepCopyObject() runtime.Object
- type GrafanaDashboardTemplateList
- type GrafanaDashboardTemplateReference
- type GrafanaDashboardTemplateSpec
- type GrafanaDatasource
- type GrafanaDatasourceAccessType
- type GrafanaDatasourceList
- type GrafanaDatasourceSpec
- type GrafanaDatasourceStatus
- type GrafanaDatasourceType
- type GrafanaPhase
- type ModelTemplateConfiguration
Constants ¶
const ( ResourceKindGrafanaDashboardTemplate = "GrafanaDashboardTemplate" ResourceGrafanaDashboardTemplate = "grafanadashboardtemplate" ResourceGrafanaDashboardTemplates = "grafanadashboardtemplates" )
const ( ResourceKindGrafanaDashboard = "GrafanaDashboard" ResourceGrafanaDashboard = "grafanadashboard" ResourceGrafanaDashboards = "grafanadashboards" )
const ( ResourceKindGrafanaDatasource = "GrafanaDatasource" ResourceGrafanaDatasource = "grafanadatasource" ResourceGrafanaDatasources = "grafanadatasources" )
const (
GrafanaDashboardTitleKey = ".dashboard.title"
)
const (
ResourceKindGrafanaConfiguration = "GrafanaConfiguration"
)
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: openviz.GroupName, Version: "v1alpha1"}
Functions ¶
func GetGrafana ¶
func GetGrafana(ctx context.Context, kc client.Client, ref *kmapi.ObjectReference) (*appcatalogapi.AppBinding, error)
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 GrafanaConfiguration ¶
type GrafanaConfiguration struct { metav1.TypeMeta `json:",inline,omitempty"` // Datasource defines the Grafana datasource name. // +optional Datasource string `json:"datasource,omitempty"` // FolderID defines the Grafana folder id. // +optional FolderID *int64 `json:"folderID,omitempty"` }
GrafanaConfiguration defines configuration for a Grafana AppBinding
func (*GrafanaConfiguration) DeepCopy ¶
func (in *GrafanaConfiguration) DeepCopy() *GrafanaConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GrafanaConfiguration.
func (*GrafanaConfiguration) DeepCopyInto ¶
func (in *GrafanaConfiguration) DeepCopyInto(out *GrafanaConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GrafanaConfiguration) DeepCopyObject ¶
func (in *GrafanaConfiguration) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type GrafanaDashboard ¶
type GrafanaDashboard struct { metav1.TypeMeta `json:",inline,omitempty"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec GrafanaDashboardSpec `json:"spec,omitempty"` Status GrafanaDashboardStatus `json:"status,omitempty"` }
+kubebuilder:object:root=true +kubebuilder:resource:path=grafanadashboards,singular=grafanadashboard,categories={grafana,openviz,appscode} +kubebuilder:printcolumn:name="Title",type="string",JSONPath=".spec.model.title" +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status
func (GrafanaDashboard) CustomResourceDefinition ¶
func (_ GrafanaDashboard) CustomResourceDefinition() *apiextensions.CustomResourceDefinition
func (*GrafanaDashboard) DeepCopy ¶
func (in *GrafanaDashboard) DeepCopy() *GrafanaDashboard
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GrafanaDashboard.
func (*GrafanaDashboard) DeepCopyInto ¶
func (in *GrafanaDashboard) DeepCopyInto(out *GrafanaDashboard)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GrafanaDashboard) DeepCopyObject ¶
func (in *GrafanaDashboard) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type GrafanaDashboardList ¶
type GrafanaDashboardList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []GrafanaDashboard `json:"items,omitempty"` }
func (*GrafanaDashboardList) DeepCopy ¶
func (in *GrafanaDashboardList) DeepCopy() *GrafanaDashboardList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GrafanaDashboardList.
func (*GrafanaDashboardList) DeepCopyInto ¶
func (in *GrafanaDashboardList) DeepCopyInto(out *GrafanaDashboardList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GrafanaDashboardList) DeepCopyObject ¶
func (in *GrafanaDashboardList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type GrafanaDashboardReference ¶
type GrafanaDashboardReference struct { ID *int64 `json:"id,omitempty"` UID *string `json:"uid,omitempty"` OrgID *int64 `json:"orgID,omitempty"` Slug *string `json:"slug,omitempty"` URL *string `json:"url,omitempty"` Version *int64 `json:"version,omitempty"` }
func (*GrafanaDashboardReference) DeepCopy ¶
func (in *GrafanaDashboardReference) DeepCopy() *GrafanaDashboardReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GrafanaDashboardReference.
func (*GrafanaDashboardReference) DeepCopyInto ¶
func (in *GrafanaDashboardReference) DeepCopyInto(out *GrafanaDashboardReference)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GrafanaDashboardSpec ¶
type GrafanaDashboardSpec struct { // GrafanaRef defines the grafana app binding name for the GrafanaDashboard // +optional GrafanaRef *kmapi.ObjectReference `json:"grafanaRef,omitempty"` // FolderID defines the Grafana folderID // +optional FolderID *int64 `json:"folderID,omitempty"` // +optional // +kubebuilder:pruning:PreserveUnknownFields Model *runtime.RawExtension `json:"model,omitempty"` // Overwrite defines the existing grafanadashboard with the same name(if any) should be overwritten or not // +optional Overwrite bool `json:"overwrite,omitempty"` // Templatize defines the fields which supports templating in GrafanaDashboard Model json // +optional Templatize *ModelTemplateConfiguration `json:"templatize,omitempty"` }
func (*GrafanaDashboardSpec) DeepCopy ¶
func (in *GrafanaDashboardSpec) DeepCopy() *GrafanaDashboardSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GrafanaDashboardSpec.
func (*GrafanaDashboardSpec) DeepCopyInto ¶
func (in *GrafanaDashboardSpec) DeepCopyInto(out *GrafanaDashboardSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GrafanaDashboardStatus ¶
type GrafanaDashboardStatus struct { // ObservedGeneration is the most recent generation observed for this resource. It corresponds to the // resource's generation, which is updated on mutation by the API Server. // +optional ObservedGeneration int64 `json:"observedGeneration,omitempty"` // Phase indicates the state this Vault cluster jumps in. // +optional Phase GrafanaPhase `json:"phase,omitempty"` // The reason for the current phase // +optional Reason string `json:"reason,omitempty"` // Dashboard indicates the updated grafanadashboard database // +optional Dashboard *GrafanaDashboardReference `json:"dashboard,omitempty"` // Represents the latest available observations of a GrafanaDashboard current state. // +optional Conditions []kmapi.Condition `json:"conditions,omitempty"` }
func (*GrafanaDashboardStatus) DeepCopy ¶
func (in *GrafanaDashboardStatus) DeepCopy() *GrafanaDashboardStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GrafanaDashboardStatus.
func (*GrafanaDashboardStatus) DeepCopyInto ¶
func (in *GrafanaDashboardStatus) DeepCopyInto(out *GrafanaDashboardStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GrafanaDashboardTemplate ¶
type GrafanaDashboardTemplate struct { metav1.TypeMeta `json:",inline,omitempty"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec GrafanaDashboardTemplateSpec `json:"spec,omitempty"` }
+kubebuilder:object:root=true +kubebuilder:resource:path=grafanadashboardtemplates,singular=grafanadashboardtemplate,scope=Cluster,categories={grafana,openviz,appscode} +kubebuilder:subresource:status
func (GrafanaDashboardTemplate) CustomResourceDefinition ¶
func (_ GrafanaDashboardTemplate) CustomResourceDefinition() *apiextensions.CustomResourceDefinition
func (*GrafanaDashboardTemplate) DeepCopy ¶
func (in *GrafanaDashboardTemplate) DeepCopy() *GrafanaDashboardTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GrafanaDashboardTemplate.
func (*GrafanaDashboardTemplate) DeepCopyInto ¶
func (in *GrafanaDashboardTemplate) DeepCopyInto(out *GrafanaDashboardTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GrafanaDashboardTemplate) DeepCopyObject ¶
func (in *GrafanaDashboardTemplate) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type GrafanaDashboardTemplateList ¶
type GrafanaDashboardTemplateList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []GrafanaDashboardTemplate `json:"items,omitempty"` }
func (*GrafanaDashboardTemplateList) DeepCopy ¶
func (in *GrafanaDashboardTemplateList) DeepCopy() *GrafanaDashboardTemplateList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GrafanaDashboardTemplateList.
func (*GrafanaDashboardTemplateList) DeepCopyInto ¶
func (in *GrafanaDashboardTemplateList) DeepCopyInto(out *GrafanaDashboardTemplateList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GrafanaDashboardTemplateList) DeepCopyObject ¶
func (in *GrafanaDashboardTemplateList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type GrafanaDashboardTemplateReference ¶
type GrafanaDashboardTemplateReference struct { ID *int64 `json:"id"` UID *string `json:"uid"` Title string `json:"title"` Tags []string `json:"tags"` Timezone string `json:"timezone"` SchemaVersion int64 `json:"schemaVersion"` Version int64 `json:"version"` }
func (*GrafanaDashboardTemplateReference) DeepCopy ¶
func (in *GrafanaDashboardTemplateReference) DeepCopy() *GrafanaDashboardTemplateReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GrafanaDashboardTemplateReference.
func (*GrafanaDashboardTemplateReference) DeepCopyInto ¶
func (in *GrafanaDashboardTemplateReference) DeepCopyInto(out *GrafanaDashboardTemplateReference)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GrafanaDashboardTemplateSpec ¶
type GrafanaDashboardTemplateSpec struct { GrafanaDashboardTemplate GrafanaDashboardTemplateReference `json:"grafanadashboardtemplate"` FolderID int64 `json:"folderID"` Overwrite bool `json:"overwrite"` }
func (*GrafanaDashboardTemplateSpec) DeepCopy ¶
func (in *GrafanaDashboardTemplateSpec) DeepCopy() *GrafanaDashboardTemplateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GrafanaDashboardTemplateSpec.
func (*GrafanaDashboardTemplateSpec) DeepCopyInto ¶
func (in *GrafanaDashboardTemplateSpec) DeepCopyInto(out *GrafanaDashboardTemplateSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GrafanaDatasource ¶
type GrafanaDatasource struct { metav1.TypeMeta `json:",inline,omitempty"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec GrafanaDatasourceSpec `json:"spec,omitempty"` Status GrafanaDatasourceStatus `json:"status,omitempty"` }
+kubebuilder:object:root=true +kubebuilder:resource:path=grafanadatasources,singular=grafanadatasource,categories={grafana,openviz,appscode} +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status
func (GrafanaDatasource) CustomResourceDefinition ¶
func (_ GrafanaDatasource) CustomResourceDefinition() *apiextensions.CustomResourceDefinition
func (*GrafanaDatasource) DeepCopy ¶
func (in *GrafanaDatasource) DeepCopy() *GrafanaDatasource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GrafanaDatasource.
func (*GrafanaDatasource) DeepCopyInto ¶
func (in *GrafanaDatasource) DeepCopyInto(out *GrafanaDatasource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GrafanaDatasource) DeepCopyObject ¶
func (in *GrafanaDatasource) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type GrafanaDatasourceAccessType ¶
type GrafanaDatasourceAccessType string
const ( GrafanaDatasourceAccessTypeProxy GrafanaDatasourceAccessType = "proxy" GrafanaDatasourceAccessTypeDirect GrafanaDatasourceAccessType = "direct" )
type GrafanaDatasourceList ¶
type GrafanaDatasourceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []GrafanaDatasource `json:"items,omitempty"` }
func (*GrafanaDatasourceList) DeepCopy ¶
func (in *GrafanaDatasourceList) DeepCopy() *GrafanaDatasourceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GrafanaDatasourceList.
func (*GrafanaDatasourceList) DeepCopyInto ¶
func (in *GrafanaDatasourceList) DeepCopyInto(out *GrafanaDatasourceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GrafanaDatasourceList) DeepCopyObject ¶
func (in *GrafanaDatasourceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type GrafanaDatasourceSpec ¶
type GrafanaDatasourceSpec struct { GrafanaRef *kmapi.ObjectReference `json:"grafanaRef"` ID int64 `json:"id,omitempty"` OrgID int64 `json:"orgId"` Name string `json:"name"` Type GrafanaDatasourceType `json:"type"` Access GrafanaDatasourceAccessType `json:"access"` URL string `json:"url"` Password string `json:"password,omitempty"` User string `json:"user,omitempty"` Database string `json:"database,omitempty"` BasicAuth bool `json:"basicAuth,omitempty"` BasicAuthUser string `json:"basicAuthUser,omitempty"` BasicAuthPassword string `json:"basicAuthPassword,omitempty"` IsDefault bool `json:"isDefault,omitempty"` Editable bool `json:"editable,omitempty"` }
func (*GrafanaDatasourceSpec) DeepCopy ¶
func (in *GrafanaDatasourceSpec) DeepCopy() *GrafanaDatasourceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GrafanaDatasourceSpec.
func (*GrafanaDatasourceSpec) DeepCopyInto ¶
func (in *GrafanaDatasourceSpec) DeepCopyInto(out *GrafanaDatasourceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GrafanaDatasourceStatus ¶
type GrafanaDatasourceStatus struct { // ObservedGeneration is the most recent generation observed for this resource. It corresponds to the // resource's generation, which is updated on mutation by the API Server. // +optional ObservedGeneration int64 `json:"observedGeneration,omitempty"` GrafanaDatasourceID *int64 `json:"grafanadatasourceId,omitempty"` Phase GrafanaPhase `json:"phase,omitempty"` Reason string `json:"reason,omitempty"` Conditions []kmapi.Condition `json:"conditions,omitempty"` }
func (*GrafanaDatasourceStatus) DeepCopy ¶
func (in *GrafanaDatasourceStatus) DeepCopy() *GrafanaDatasourceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GrafanaDatasourceStatus.
func (*GrafanaDatasourceStatus) DeepCopyInto ¶
func (in *GrafanaDatasourceStatus) DeepCopyInto(out *GrafanaDatasourceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GrafanaDatasourceType ¶
type GrafanaDatasourceType string
const (
GrafanaDatasourceTypePrometheus GrafanaDatasourceType = "prometheus"
)
type GrafanaPhase ¶
type GrafanaPhase string
const ( GrafanaPhaseProcessing GrafanaPhase = "Processing" GrafanaPhaseTerminating GrafanaPhase = "Terminating" GrafanaPhaseCurrent GrafanaPhase = "Current" GrafanaPhaseFailed GrafanaPhase = "Failed" )
type ModelTemplateConfiguration ¶
type ModelTemplateConfiguration struct { Title bool `json:"title,omitempty"` Datasource bool `json:"datasource,omitempty"` }
func (*ModelTemplateConfiguration) DeepCopy ¶
func (in *ModelTemplateConfiguration) DeepCopy() *ModelTemplateConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ModelTemplateConfiguration.
func (*ModelTemplateConfiguration) DeepCopyInto ¶
func (in *ModelTemplateConfiguration) DeepCopyInto(out *ModelTemplateConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.