v1alpha1

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

+groupName=dashboard.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: dashboard.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 Dashboard

type Dashboard struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              DashboardSpec   `json:"spec,omitempty"`
	Status            DashboardStatus `json:"status,omitempty"`
}

func (*Dashboard) DeepCopy

func (in *Dashboard) DeepCopy() *Dashboard

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

func (*Dashboard) DeepCopyInto

func (in *Dashboard) DeepCopyInto(out *Dashboard)

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

func (*Dashboard) DeepCopyObject

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

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

func (*Dashboard) SetupWebhookWithManager

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

func (*Dashboard) ValidateCreate

func (r *Dashboard) ValidateCreate() error

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

func (*Dashboard) ValidateDelete

func (r *Dashboard) ValidateDelete() error

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

func (*Dashboard) ValidateUpdate

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

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

type DashboardList

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

DashboardList is a list of Dashboards

func (*DashboardList) DeepCopy

func (in *DashboardList) DeepCopy() *DashboardList

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

func (*DashboardList) DeepCopyInto

func (in *DashboardList) DeepCopyInto(out *DashboardList)

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

func (*DashboardList) DeepCopyObject

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

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

type DashboardSpec

type DashboardSpec struct {
	State *DashboardSpecResource `json:"state,omitempty" tf:"-"`

	Resource DashboardSpecResource `json:"resource" tf:"resource"`

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

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

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

func (*DashboardSpec) DeepCopy

func (in *DashboardSpec) DeepCopy() *DashboardSpec

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

func (*DashboardSpec) DeepCopyInto

func (in *DashboardSpec) DeepCopyInto(out *DashboardSpec)

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

type DashboardSpecResource

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

	// The complete dashboard model JSON.
	ConfigJSON *string `json:"configJSON" tf:"config_json"`
	// The numeric ID of the dashboard computed by Grafana.
	// +optional
	DashboardID *int64 `json:"dashboardID,omitempty" tf:"dashboard_id"`
	// The id of the folder to save the dashboard in.
	// +optional
	Folder *int64 `json:"folder,omitempty" tf:"folder"`
	// Set to true if you want to overwrite existing dashboard with newer version, same dashboard title in folder or same dashboard uid.
	// +optional
	Overwrite *bool `json:"overwrite,omitempty" tf:"overwrite"`
	// URL friendly version of the dashboard title. This field is deprecated, please use `uid` instead.
	// +optional
	// Deprecated
	Slug *string `json:"slug,omitempty" tf:"slug"`
	// The unique identifier of a dashboard. This is used to construct its URL. It’s automatically generated if not provided when creating a dashboard. The uid allows having consistent URLs for accessing dashboards and when syncing dashboards between multiple Grafana installs.
	// +optional
	Uid *string `json:"uid,omitempty" tf:"uid"`
	// Whenever you save a version of your dashboard, a copy of that version is saved so that previous versions of your dashboard are not lost.
	// +optional
	Version *int64 `json:"version,omitempty" tf:"version"`
}

func (*DashboardSpecResource) DeepCopy

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

func (*DashboardSpecResource) DeepCopyInto

func (in *DashboardSpecResource) DeepCopyInto(out *DashboardSpecResource)

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

type DashboardStatus

type DashboardStatus 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 (*DashboardStatus) DeepCopy

func (in *DashboardStatus) DeepCopy() *DashboardStatus

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

func (*DashboardStatus) DeepCopyInto

func (in *DashboardStatus) DeepCopyInto(out *DashboardStatus)

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

type Permission

type Permission struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              PermissionSpec   `json:"spec,omitempty"`
	Status            PermissionStatus `json:"status,omitempty"`
}

func (*Permission) DeepCopy

func (in *Permission) DeepCopy() *Permission

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

func (*Permission) DeepCopyInto

func (in *Permission) DeepCopyInto(out *Permission)

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

func (*Permission) DeepCopyObject

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

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

func (*Permission) SetupWebhookWithManager

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

func (*Permission) ValidateCreate

func (r *Permission) ValidateCreate() error

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

func (*Permission) ValidateDelete

func (r *Permission) ValidateDelete() error

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

func (*Permission) ValidateUpdate

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

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

type PermissionList

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

PermissionList is a list of Permissions

func (*PermissionList) DeepCopy

func (in *PermissionList) DeepCopy() *PermissionList

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

func (*PermissionList) DeepCopyInto

func (in *PermissionList) DeepCopyInto(out *PermissionList)

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

func (*PermissionList) DeepCopyObject

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

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

type PermissionSpec

type PermissionSpec struct {
	State *PermissionSpecResource `json:"state,omitempty" tf:"-"`

	Resource PermissionSpecResource `json:"resource" tf:"resource"`

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

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

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

func (*PermissionSpec) DeepCopy

func (in *PermissionSpec) DeepCopy() *PermissionSpec

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

func (*PermissionSpec) DeepCopyInto

func (in *PermissionSpec) DeepCopyInto(out *PermissionSpec)

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

type PermissionSpecPermissions

type PermissionSpecPermissions struct {
	// Permission to associate with item. Must be one of `View`, `Edit`, or `Admin`.
	Permission *string `json:"permission" tf:"permission"`
	// Manage permissions for `Viewer` or `Editor` roles.
	// +optional
	Role *string `json:"role,omitempty" tf:"role"`
	// ID of the team to manage permissions for.
	// +optional
	TeamID *int64 `json:"teamID,omitempty" tf:"team_id"`
	// ID of the user to manage permissions for.
	// +optional
	UserID *int64 `json:"userID,omitempty" tf:"user_id"`
}

func (*PermissionSpecPermissions) DeepCopy

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

func (*PermissionSpecPermissions) DeepCopyInto

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

type PermissionSpecResource

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

	// ID of the dashboard to apply permissions to.
	DashboardID *int64 `json:"dashboardID" tf:"dashboard_id"`
	// The permission items to add/update. Items that are omitted from the list will be removed.
	Permissions []PermissionSpecPermissions `json:"permissions" tf:"permissions"`
}

func (*PermissionSpecResource) DeepCopy

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

func (*PermissionSpecResource) DeepCopyInto

func (in *PermissionSpecResource) DeepCopyInto(out *PermissionSpecResource)

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

type PermissionStatus

type PermissionStatus 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 (*PermissionStatus) DeepCopy

func (in *PermissionStatus) DeepCopy() *PermissionStatus

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

func (*PermissionStatus) DeepCopyInto

func (in *PermissionStatus) DeepCopyInto(out *PermissionStatus)

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