v1alpha1

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

+groupName=library.grafana.kubeform.com

Index

Constants

This section is empty.

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

Functions

func GetDecoder

func GetDecoder() map[string]jsoniter.ValDecoder

func GetEncoder

func GetEncoder() map[string]jsoniter.ValEncoder

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Panel

type Panel struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              PanelSpec   `json:"spec,omitempty"`
	Status            PanelStatus `json:"status,omitempty"`
}

func (*Panel) DeepCopy

func (in *Panel) DeepCopy() *Panel

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

func (*Panel) DeepCopyInto

func (in *Panel) DeepCopyInto(out *Panel)

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

func (*Panel) DeepCopyObject

func (in *Panel) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Panel) SetupWebhookWithManager

func (r *Panel) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*Panel) ValidateCreate

func (r *Panel) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*Panel) ValidateDelete

func (r *Panel) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*Panel) ValidateUpdate

func (r *Panel) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type PanelList

type PanelList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// Items is a list of Panel CRD objects
	Items []Panel `json:"items,omitempty"`
}

PanelList is a list of Panels

func (*PanelList) DeepCopy

func (in *PanelList) DeepCopy() *PanelList

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

func (*PanelList) DeepCopyInto

func (in *PanelList) DeepCopyInto(out *PanelList)

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

func (*PanelList) DeepCopyObject

func (in *PanelList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type PanelSpec

type PanelSpec struct {
	State *PanelSpecResource `json:"state,omitempty" tf:"-"`

	Resource PanelSpecResource `json:"resource" tf:"resource"`

	UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"`

	TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"`

	ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"`

	BackendRef *core.LocalObjectReference `json:"backendRef,omitempty" tf:"-"`
}

func (*PanelSpec) DeepCopy

func (in *PanelSpec) DeepCopy() *PanelSpec

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

func (*PanelSpec) DeepCopyInto

func (in *PanelSpec) DeepCopyInto(out *PanelSpec)

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

type PanelSpecResource

type PanelSpecResource struct {
	ID string `json:"id,omitempty" tf:"id,omitempty"`

	// Timestamp when the library panel was created.
	// +optional
	Created *string `json:"created,omitempty" tf:"created"`
	// Numerical IDs of Grafana dashboards containing the library panel.
	// +optional
	DashboardIDS []int64 `json:"dashboardIDS,omitempty" tf:"dashboard_ids"`
	// Description of the library panel.
	// +optional
	Description *string `json:"description,omitempty" tf:"description"`
	// ID of the folder where the library panel is stored.
	// +optional
	FolderID *int64 `json:"folderID,omitempty" tf:"folder_id"`
	// Name of the folder containing the library panel.
	// +optional
	FolderName *string `json:"folderName,omitempty" tf:"folder_name"`
	// Unique ID (UID) of the folder containing the library panel.
	// +optional
	FolderUid *string `json:"folderUid,omitempty" tf:"folder_uid"`
	// The JSON model for the library panel.
	ModelJSON *string `json:"modelJSON" tf:"model_json"`
	// Name of the library panel.
	Name *string `json:"name" tf:"name"`
	// The numeric ID of the library panel computed by Grafana.
	// +optional
	OrgID *int64 `json:"orgID,omitempty" tf:"org_id"`
	// The numeric ID of the library panel computed by Grafana.
	// +optional
	PanelID *int64 `json:"panelID,omitempty" tf:"panel_id"`
	// Type of the library panel (eg. text).
	// +optional
	Type *string `json:"type,omitempty" tf:"type"`
	// The unique identifier (UID) of a library panel uniquely identifies library panels between multiple Grafana installs. It’s automatically generated unless you specify it during library panel creation.The UID provides consistent URLs for accessing library panels and when syncing library panels between multiple Grafana installs.
	// +optional
	Uid *string `json:"uid,omitempty" tf:"uid"`
	// Timestamp when the library panel was last modified.
	// +optional
	Updated *string `json:"updated,omitempty" tf:"updated"`
	// Version of the library panel.
	// +optional
	Version *int64 `json:"version,omitempty" tf:"version"`
}

func (*PanelSpecResource) DeepCopy

func (in *PanelSpecResource) DeepCopy() *PanelSpecResource

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

func (*PanelSpecResource) DeepCopyInto

func (in *PanelSpecResource) DeepCopyInto(out *PanelSpecResource)

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

type PanelStatus

type PanelStatus struct {
	// Resource generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// +optional
	Phase status.Status `json:"phase,omitempty"`
	// +optional
	Conditions []kmapi.Condition `json:"conditions,omitempty"`
}

func (*PanelStatus) DeepCopy

func (in *PanelStatus) DeepCopy() *PanelStatus

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

func (*PanelStatus) DeepCopyInto

func (in *PanelStatus) DeepCopyInto(out *PanelStatus)

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