v1alpha1

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: Apache-2.0 Imports: 19 Imported by: 10

Documentation

Overview

+groupName=openviz.dev

Index

Constants

View Source
const (
	ResourceKindGrafanaDashboardTemplate = "GrafanaDashboardTemplate"
	ResourceGrafanaDashboardTemplate     = "grafanadashboardtemplate"
	ResourceGrafanaDashboardTemplates    = "grafanadashboardtemplates"
)
View Source
const (
	ResourceKindGrafanaDashboard = "GrafanaDashboard"
	ResourceGrafanaDashboard     = "grafanadashboard"
	ResourceGrafanaDashboards    = "grafanadashboards"
)
View Source
const (
	ResourceKindGrafanaDatasource = "GrafanaDatasource"
	ResourceGrafanaDatasource     = "grafanadatasource"
	ResourceGrafanaDatasources    = "grafanadatasources"
)
View Source
const (
	GrafanaDashboardTitleKey = ".dashboard.title"
)
View Source
const (
	ResourceKindGrafanaConfiguration = "GrafanaConfiguration"
)

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: openviz.GroupName, Version: "v1alpha1"}

Functions

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

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

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

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

func (*GrafanaDashboardReference) DeepCopyInto

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

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

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

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

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

func (*GrafanaDashboardTemplateList) DeepCopyInto

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

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

func (*GrafanaDashboardTemplateReference) DeepCopyInto

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

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

func (*GrafanaDashboardTemplateSpec) DeepCopyInto

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

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

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

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

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

func (*ModelTemplateConfiguration) DeepCopyInto

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

Jump to

Keyboard shortcuts

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