Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the integreatly v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=integreatly.org
Package v1alpha1 contains API Schema definitions for the integreatly v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=integreatly.org
Index ¶
- Variables
- func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
- func RegisterDefaults(scheme *runtime.Scheme) error
- type Grafana
- type GrafanaDashboard
- type GrafanaDashboardList
- type GrafanaDashboardSpec
- type GrafanaDashboardStatus
- type GrafanaDashboardStatusMessage
- type GrafanaDataSource
- type GrafanaDataSourceFields
- type GrafanaDataSourceList
- type GrafanaDataSourceSpec
- type GrafanaDataSourceStatus
- type GrafanaList
- type GrafanaPlugin
- type GrafanaSpec
- type GrafanaStatus
- type PluginList
- func (in PluginList) DeepCopy() PluginList
- func (in PluginList) DeepCopyInto(out *PluginList)
- func (l PluginList) GetInstalledVersionOf(plugin *GrafanaPlugin) *GrafanaPlugin
- func (l PluginList) HasExactVersionOf(plugin *GrafanaPlugin) bool
- func (l PluginList) HasNewerVersionOf(plugin *GrafanaPlugin) (bool, error)
- func (l PluginList) HasSomeVersionOf(plugin *GrafanaPlugin) bool
- func (l PluginList) SetOrigin(dashboard *GrafanaDashboard)
- func (l PluginList) VersionsOf(plugin *GrafanaPlugin) int
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: "integreatly.org", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
func GetOpenAPIDefinitions ¶
func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
func RegisterDefaults ¶
RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.
Types ¶
type Grafana ¶
type Grafana struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec GrafanaSpec `json:"spec,omitempty"` Status GrafanaStatus `json:"status,omitempty"` }
Grafana is the Schema for the grafanas API +k8s:openapi-gen=true
func (*Grafana) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Grafana.
func (*Grafana) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Grafana) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type GrafanaDashboard ¶
type GrafanaDashboard struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec GrafanaDashboardSpec `json:"spec,omitempty"` Status GrafanaDashboardStatus `json:"status,omitempty"` }
GrafanaDashboard is the Schema for the grafanadashboards API +k8s:openapi-gen=true
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"` }
GrafanaDashboardList contains a list of GrafanaDashboard
func (*GrafanaDashboardList) DeepCopy ¶
func (in *GrafanaDashboardList) DeepCopy() *GrafanaDashboardList
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 GrafanaDashboardSpec ¶
type GrafanaDashboardSpec struct { // INSERT ADDITIONAL SPEC FIELDS - desired state of cluster // Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file Json string `json:"json"` Name string `json:"name"` Plugins PluginList `json:"plugins,omitempty"` }
GrafanaDashboardSpec defines the desired state of GrafanaDashboard
func (*GrafanaDashboardSpec) DeepCopy ¶
func (in *GrafanaDashboardSpec) DeepCopy() *GrafanaDashboardSpec
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 { Messages []GrafanaDashboardStatusMessage `json:"messages,omitempty"` Phase int `json:"phase"` }
GrafanaDashboardStatus defines the observed state of GrafanaDashboard
func (*GrafanaDashboardStatus) DeepCopy ¶
func (in *GrafanaDashboardStatus) DeepCopy() *GrafanaDashboardStatus
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 GrafanaDashboardStatusMessage ¶
type GrafanaDashboardStatusMessage struct { Message string `json:"message"` Timestamp string `json:"timestamp"` }
func (*GrafanaDashboardStatusMessage) DeepCopy ¶
func (in *GrafanaDashboardStatusMessage) DeepCopy() *GrafanaDashboardStatusMessage
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GrafanaDashboardStatusMessage.
func (*GrafanaDashboardStatusMessage) DeepCopyInto ¶
func (in *GrafanaDashboardStatusMessage) DeepCopyInto(out *GrafanaDashboardStatusMessage)
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"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec GrafanaDataSourceSpec `json:"spec,omitempty"` Status GrafanaDataSourceStatus `json:"status,omitempty"` }
GrafanaDataSource is the Schema for the grafanadatasources API +k8s:openapi-gen=true
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 GrafanaDataSourceFields ¶
type GrafanaDataSourceFields struct { Name string `json:"name"` Type string `json:"type"` Access string `json:"access"` OrgId int `json:"orgId,omitempty"` 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"` WithCredentials bool `json:"withCredentials,omitempty"` IsDefault bool `json:"isDefault,omitempty"` JsonData string `json:"jsonData,omitempty"` SecureJsonData string `json:"secureJsonData,omitempty"` Version int `json:"version,omitempty"` Editable bool `json:"editable,omitempty"` }
func (*GrafanaDataSourceFields) DeepCopy ¶
func (in *GrafanaDataSourceFields) DeepCopy() *GrafanaDataSourceFields
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GrafanaDataSourceFields.
func (*GrafanaDataSourceFields) DeepCopyInto ¶
func (in *GrafanaDataSourceFields) DeepCopyInto(out *GrafanaDataSourceFields)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GrafanaDataSourceList ¶
type GrafanaDataSourceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []GrafanaDataSource `json:"items"` }
GrafanaDataSourceList contains a list of GrafanaDataSource
func (*GrafanaDataSourceList) DeepCopy ¶
func (in *GrafanaDataSourceList) DeepCopy() *GrafanaDataSourceList
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 { // INSERT ADDITIONAL SPEC FIELDS - desired state of cluster // Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file // Add custom validation using kubebuilder tags: https://book.kubebuilder.io/beyond_basics/generating_crd.html Datasources []GrafanaDataSourceFields `json:"datasources"` Name string `json:"name"` }
GrafanaDataSourceSpec defines the desired state of GrafanaDataSource +k8s:openapi-gen=true
func (*GrafanaDataSourceSpec) DeepCopy ¶
func (in *GrafanaDataSourceSpec) DeepCopy() *GrafanaDataSourceSpec
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 {
Phase int `json:"phase"`
}
GrafanaDataSourceStatus defines the observed state of GrafanaDataSource +k8s:openapi-gen=true
func (*GrafanaDataSourceStatus) DeepCopy ¶
func (in *GrafanaDataSourceStatus) DeepCopy() *GrafanaDataSourceStatus
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 GrafanaList ¶
type GrafanaList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Grafana `json:"items"` }
GrafanaList contains a list of Grafana
func (*GrafanaList) DeepCopy ¶
func (in *GrafanaList) DeepCopy() *GrafanaList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GrafanaList.
func (*GrafanaList) DeepCopyInto ¶
func (in *GrafanaList) DeepCopyInto(out *GrafanaList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GrafanaList) DeepCopyObject ¶
func (in *GrafanaList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type GrafanaPlugin ¶
type GrafanaPlugin struct { Name string `json:"name"` Version string `json:"version"` Origin *GrafanaDashboard `json:"-"` }
GrafanaPlugin contains information about a single plugin
func (*GrafanaPlugin) DeepCopy ¶
func (in *GrafanaPlugin) DeepCopy() *GrafanaPlugin
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GrafanaPlugin.
func (*GrafanaPlugin) DeepCopyInto ¶
func (in *GrafanaPlugin) DeepCopyInto(out *GrafanaPlugin)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GrafanaSpec ¶
type GrafanaSpec struct { // INSERT ADDITIONAL SPEC FIELDS - desired state of cluster // Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file Hostname string `json:"hostname,omitempty"` Containers []v1.Container `json:"containers,omitempty"` Secrets []string `json:"secrets,omitempty"` DashboardLabelSelectors []*metav1.LabelSelector `json:"dashboardLabelSelector,omitempty"` LogLevel string `json:"logLevel"` AdminUser string `json:"adminUser"` AdminPassword string `json:"adminPassword"` BasicAuth bool `json:"basicAuth"` DisableLoginForm bool `json:"disableLoginForm"` DisableSignoutMenu bool `json:"disableSignoutMenu"` Anonymous bool `json:"anonymous"` }
GrafanaSpec defines the desired state of Grafana
func (*GrafanaSpec) DeepCopy ¶
func (in *GrafanaSpec) DeepCopy() *GrafanaSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GrafanaSpec.
func (*GrafanaSpec) DeepCopyInto ¶
func (in *GrafanaSpec) DeepCopyInto(out *GrafanaSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GrafanaStatus ¶
type GrafanaStatus struct { // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster // Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file Phase int `json:"phase"` InstalledPlugins PluginList `json:"installedPlugins"` FailedPlugins PluginList `json:"failedPlugins"` }
GrafanaStatus defines the observed state of Grafana
func (*GrafanaStatus) DeepCopy ¶
func (in *GrafanaStatus) DeepCopy() *GrafanaStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GrafanaStatus.
func (*GrafanaStatus) DeepCopyInto ¶
func (in *GrafanaStatus) DeepCopyInto(out *GrafanaStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PluginList ¶
type PluginList []GrafanaPlugin
func (PluginList) DeepCopy ¶
func (in PluginList) DeepCopy() PluginList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PluginList.
func (PluginList) DeepCopyInto ¶
func (in PluginList) DeepCopyInto(out *PluginList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (PluginList) GetInstalledVersionOf ¶
func (l PluginList) GetInstalledVersionOf(plugin *GrafanaPlugin) *GrafanaPlugin
Get the plugin from the list regardless of the version
func (PluginList) HasExactVersionOf ¶
func (l PluginList) HasExactVersionOf(plugin *GrafanaPlugin) bool
Returns true if the list contains the same plugin in the same version
func (PluginList) HasNewerVersionOf ¶
func (l PluginList) HasNewerVersionOf(plugin *GrafanaPlugin) (bool, error)
Returns true if the list contains the same plugin but in a newer version
func (PluginList) HasSomeVersionOf ¶
func (l PluginList) HasSomeVersionOf(plugin *GrafanaPlugin) bool
Returns true if the list contains the same plugin in the exact or a different version
func (PluginList) SetOrigin ¶
func (l PluginList) SetOrigin(dashboard *GrafanaDashboard)
Set the originating dashboard for every plugin in the list
func (PluginList) VersionsOf ¶
func (l PluginList) VersionsOf(plugin *GrafanaPlugin) int
Returns the number of different versions of a given plugin in the list