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: 16 Imported by: 0

Documentation

Overview

+groupName=report.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: report.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 Report

type Report struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              ReportSpec   `json:"spec,omitempty"`
	Status            ReportStatus `json:"status,omitempty"`
}

func (*Report) DeepCopy

func (in *Report) DeepCopy() *Report

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

func (*Report) DeepCopyInto

func (in *Report) DeepCopyInto(out *Report)

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

func (*Report) DeepCopyObject

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

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

func (*Report) SetupWebhookWithManager

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

func (*Report) ValidateCreate

func (r *Report) ValidateCreate() error

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

func (*Report) ValidateDelete

func (r *Report) ValidateDelete() error

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

func (*Report) ValidateUpdate

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

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

type ReportList

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

ReportList is a list of Reports

func (*ReportList) DeepCopy

func (in *ReportList) DeepCopy() *ReportList

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

func (*ReportList) DeepCopyInto

func (in *ReportList) DeepCopyInto(out *ReportList)

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

func (*ReportList) DeepCopyObject

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

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

type ReportSpec

type ReportSpec struct {
	State *ReportSpecResource `json:"state,omitempty" tf:"-"`

	Resource ReportSpecResource `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 (*ReportSpec) DeepCopy

func (in *ReportSpec) DeepCopy() *ReportSpec

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

func (*ReportSpec) DeepCopyInto

func (in *ReportSpec) DeepCopyInto(out *ReportSpec)

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

type ReportSpecResource

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

	// Dashboard to be sent in the report.
	DashboardID *int64 `json:"dashboardID" tf:"dashboard_id"`
	// Whether to include a link to the dashboard in the report.
	// +optional
	IncludeDashboardLink *bool `json:"includeDashboardLink,omitempty" tf:"include_dashboard_link"`
	// Whether to include a CSV file of table panel data.
	// +optional
	IncludeTableCsv *bool `json:"includeTableCsv,omitempty" tf:"include_table_csv"`
	// Layout of the report. `simple` or `grid`
	// +optional
	Layout *string `json:"layout,omitempty" tf:"layout"`
	// Message to be sent in the report.
	// +optional
	Message *string `json:"message,omitempty" tf:"message"`
	// Name of the report.
	Name *string `json:"name" tf:"name"`
	// Orientation of the report. `landscape` or `portrait`
	// +optional
	Orientation *string `json:"orientation,omitempty" tf:"orientation"`
	// List of recipients of the report.
	// +kubebuilder:validation:MinItems=1
	Recipients []string `json:"recipients" tf:"recipients"`
	// Reply-to email address of the report.
	// +optional
	ReplyTo *string `json:"replyTo,omitempty" tf:"reply_to"`
	// Schedule of the report.
	Schedule *ReportSpecSchedule `json:"schedule" tf:"schedule"`
	// Time range of the report.
	// +optional
	TimeRange *ReportSpecTimeRange `json:"timeRange,omitempty" tf:"time_range"`
}

func (*ReportSpecResource) DeepCopy

func (in *ReportSpecResource) DeepCopy() *ReportSpecResource

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

func (*ReportSpecResource) DeepCopyInto

func (in *ReportSpecResource) DeepCopyInto(out *ReportSpecResource)

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

type ReportSpecSchedule

type ReportSpecSchedule struct {
	// Custom interval of the report.
	// **Note:** This field is only available when frequency is set to `custom`.
	// +optional
	CustomInterval *string `json:"customInterval,omitempty" tf:"custom_interval"`
	// End time of the report. If empty, the report will be sent indefinitely (according to frequency). Note that times will be saved as UTC in Grafana.
	// +optional
	EndTime *string `json:"endTime,omitempty" tf:"end_time"`
	// Frequency of the report. One of `never`, `once`, `hourly`, `daily`, `weekly`, `monthly` or `custom`.
	Frequency *string `json:"frequency" tf:"frequency"`
	// Start time of the report. If empty, the start date will be set to the creation time. Note that times will be saved as UTC in Grafana.
	// +optional
	StartTime *string `json:"startTime,omitempty" tf:"start_time"`
	// Whether to send the report only on work days.
	// +optional
	WorkdaysOnly *bool `json:"workdaysOnly,omitempty" tf:"workdays_only"`
}

func (*ReportSpecSchedule) DeepCopy

func (in *ReportSpecSchedule) DeepCopy() *ReportSpecSchedule

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

func (*ReportSpecSchedule) DeepCopyInto

func (in *ReportSpecSchedule) DeepCopyInto(out *ReportSpecSchedule)

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

type ReportSpecScheduleCodec

type ReportSpecScheduleCodec struct {
}

+k8s:deepcopy-gen=false

func (ReportSpecScheduleCodec) Decode

func (ReportSpecScheduleCodec) Encode

func (ReportSpecScheduleCodec) Encode(ptr unsafe.Pointer, stream *jsoniter.Stream)

func (ReportSpecScheduleCodec) IsEmpty

type ReportSpecTimeRange

type ReportSpecTimeRange struct {
	// Start of the time range.
	// +optional
	From *string `json:"from,omitempty" tf:"from"`
	// End of the time range.
	// +optional
	To *string `json:"to,omitempty" tf:"to"`
}

func (*ReportSpecTimeRange) DeepCopy

func (in *ReportSpecTimeRange) DeepCopy() *ReportSpecTimeRange

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

func (*ReportSpecTimeRange) DeepCopyInto

func (in *ReportSpecTimeRange) DeepCopyInto(out *ReportSpecTimeRange)

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

type ReportSpecTimeRangeCodec

type ReportSpecTimeRangeCodec struct {
}

+k8s:deepcopy-gen=false

func (ReportSpecTimeRangeCodec) Decode

func (ReportSpecTimeRangeCodec) Encode

func (ReportSpecTimeRangeCodec) Encode(ptr unsafe.Pointer, stream *jsoniter.Stream)

func (ReportSpecTimeRangeCodec) IsEmpty

type ReportStatus

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

func (in *ReportStatus) DeepCopy() *ReportStatus

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

func (*ReportStatus) DeepCopyInto

func (in *ReportStatus) DeepCopyInto(out *ReportStatus)

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