v1alpha1

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the grafana v1alpha1 API group +kubebuilder:object:generate=true +groupName=grafana.extension.oam.dev

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "grafana.extension.oam.dev", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type Datasource

type Datasource struct {
	Name    string `json:"name"`
	Service string `json:"service"`
	// +kubebuilder:default:=default
	Namespace string `json:"namespace"`
	// +kubebuilder:default:=proxy
	Access string `json:"access,omitempty"`
	Type   string `json:"type"`
}

Datasource defines the information of a DataSource, like Loki, Prometheus

func (*Datasource) DeepCopy

func (in *Datasource) DeepCopy() *Datasource

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

func (*Datasource) DeepCopyInto

func (in *Datasource) DeepCopyInto(out *Datasource)

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

type DatasourceRegistration

type DatasourceRegistration struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   DatasourceRegistrationSpec   `json:"spec,omitempty"`
	Status DatasourceRegistrationStatus `json:"status,omitempty"`
}

+kubebuilder:object:root=true

func (*DatasourceRegistration) DeepCopy

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

func (*DatasourceRegistration) DeepCopyInto

func (in *DatasourceRegistration) DeepCopyInto(out *DatasourceRegistration)

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

func (*DatasourceRegistration) DeepCopyObject

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

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

type DatasourceRegistrationDeprecated

type DatasourceRegistrationDeprecated struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   DatasourceRegistrationDeprecatedSpec   `json:"spec,omitempty"`
	Status DatasourceRegistrationDeprecatedStatus `json:"status,omitempty"`
}

DatasourceRegistrationDeprecated is the Schema for the DatasourceRegistrationDeprecated API +kubebuilder:object:root=true

func (*DatasourceRegistrationDeprecated) DeepCopy

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

func (*DatasourceRegistrationDeprecated) DeepCopyInto

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

func (*DatasourceRegistrationDeprecated) DeepCopyObject

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

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

type DatasourceRegistrationDeprecatedList

type DatasourceRegistrationDeprecatedList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []DatasourceRegistrationDeprecated `json:"items"`
}

DatasourceRegistrationDeprecatedList contains a list of DatasourceRegistrationDeprecated

func (*DatasourceRegistrationDeprecatedList) DeepCopy

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

func (*DatasourceRegistrationDeprecatedList) DeepCopyInto

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

func (*DatasourceRegistrationDeprecatedList) DeepCopyObject

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

type DatasourceRegistrationDeprecatedSpec

type DatasourceRegistrationDeprecatedSpec struct {
	GrafanaURL       string `json:"grafanaUrl"`
	CredentialSecret string `json:"credentialSecret"`
	// +kubebuilder:default:=default
	CredentialsSecretNamespace string `json:"credentialSecretNamespace,omitempty"`
	Name                       string `json:"name"`
	URL                        string `json:"url"`
	// +kubebuilder:default:=proxy
	Access string `json:"access,omitempty"`
	Type   string `json:"type"`
}

DatasourceRegistrationDeprecatedSpec defines the desired state of DatasourceRegistrationDeprecated

func (*DatasourceRegistrationDeprecatedSpec) DeepCopy

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

func (*DatasourceRegistrationDeprecatedSpec) DeepCopyInto

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

type DatasourceRegistrationDeprecatedStatus

type DatasourceRegistrationDeprecatedStatus struct {
	Success bool   `json:"success,omitempty"`
	Message string `json:"message,omitempty"`
}

DatasourceRegistrationDeprecatedStatus defines the observed state of DatasourceRegistrationDeprecated

func (*DatasourceRegistrationDeprecatedStatus) DeepCopy

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

func (*DatasourceRegistrationDeprecatedStatus) DeepCopyInto

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

type DatasourceRegistrationList

type DatasourceRegistrationList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []DatasourceRegistration `json:"items"`
}

DatasourceRegistrationList contains a list of DatasourceRegistration

func (*DatasourceRegistrationList) DeepCopy

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

func (*DatasourceRegistrationList) DeepCopyInto

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

func (*DatasourceRegistrationList) DeepCopyObject

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

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

type DatasourceRegistrationSpec

type DatasourceRegistrationSpec struct {
	Grafana    Grafana    `json:"grafana"`
	Datasource Datasource `json:"datasource"`
}

DatasourceRegistrationSpec defines the desired state of DatasourceRegistration

func (*DatasourceRegistrationSpec) DeepCopy

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

func (*DatasourceRegistrationSpec) DeepCopyInto

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

type DatasourceRegistrationStatus

type DatasourceRegistrationStatus struct {
	Success bool   `json:"success,omitempty"`
	Message string `json:"message,omitempty"`
}

DatasourceRegistrationStatus defines the observed state of DatasourceRegistration

func (*DatasourceRegistrationStatus) DeepCopy

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

func (*DatasourceRegistrationStatus) DeepCopyInto

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

type Grafana

type Grafana struct {
	Service string `json:"service"`
	// +kubebuilder:default:=default
	Namespace        string `json:"namespace"`
	CredentialSecret string `json:"credentialSecret"`
	// +kubebuilder:default:=default
	CredentialsSecretNamespace string `json:"credentialSecretNamespace,omitempty"`
}

Grafana defines the access information for Grafana

func (*Grafana) DeepCopy

func (in *Grafana) DeepCopy() *Grafana

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

func (*Grafana) DeepCopyInto

func (in *Grafana) DeepCopyInto(out *Grafana)

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

type ImportDashboard

type ImportDashboard struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ImportDashboardSpec   `json:"spec,omitempty"`
	Status ImportDashboardStatus `json:"status,omitempty"`
}

ImportDashboard is the Schema for the importdashboards API

func (*ImportDashboard) DeepCopy

func (in *ImportDashboard) DeepCopy() *ImportDashboard

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

func (*ImportDashboard) DeepCopyInto

func (in *ImportDashboard) DeepCopyInto(out *ImportDashboard)

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

func (*ImportDashboard) DeepCopyObject

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

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

type ImportDashboardList

type ImportDashboardList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ImportDashboard `json:"items"`
}

ImportDashboardList contains a list of ImportDashboard

func (*ImportDashboardList) DeepCopy

func (in *ImportDashboardList) DeepCopy() *ImportDashboardList

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

func (*ImportDashboardList) DeepCopyInto

func (in *ImportDashboardList) DeepCopyInto(out *ImportDashboardList)

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

func (*ImportDashboardList) DeepCopyObject

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

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

type ImportDashboardSpec

type ImportDashboardSpec struct {
	Grafana Grafana  `json:"grafana"`
	URLS    []string `json:"urls"`
}

ImportDashboardSpec defines the desired state of ImportDashboard

func (*ImportDashboardSpec) DeepCopy

func (in *ImportDashboardSpec) DeepCopy() *ImportDashboardSpec

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

func (*ImportDashboardSpec) DeepCopyInto

func (in *ImportDashboardSpec) DeepCopyInto(out *ImportDashboardSpec)

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

type ImportDashboardStatus

type ImportDashboardStatus struct {
}

ImportDashboardStatus defines the observed state of ImportDashboard

func (*ImportDashboardStatus) DeepCopy

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

func (*ImportDashboardStatus) DeepCopyInto

func (in *ImportDashboardStatus) DeepCopyInto(out *ImportDashboardStatus)

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