Documentation ¶
Overview ¶
+groupName=data.grafana.kubeform.com
Index ¶
- Variables
- func GetDecoder() map[string]jsoniter.ValDecoder
- func GetEncoder() map[string]jsoniter.ValEncoder
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type Source
- func (in *Source) DeepCopy() *Source
- func (in *Source) DeepCopyInto(out *Source)
- func (in *Source) DeepCopyObject() runtime.Object
- func (r *Source) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *Source) ValidateCreate() error
- func (r *Source) ValidateDelete() error
- func (r *Source) ValidateUpdate(old runtime.Object) error
- type SourceList
- type SourceSpec
- type SourceSpecJsonData
- type SourceSpecResource
- type SourceStatus
Constants ¶
This section is empty.
Variables ¶
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 )
var SchemeGroupVersion = schema.GroupVersion{Group: data.GroupName, Version: "v1alpha1"}
Functions ¶
func GetDecoder ¶
func GetDecoder() map[string]jsoniter.ValDecoder
func GetEncoder ¶
func GetEncoder() map[string]jsoniter.ValEncoder
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type Source ¶
type Source struct { metav1.TypeMeta `json:",inline,omitempty"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec SourceSpec `json:"spec,omitempty"` Status SourceStatus `json:"status,omitempty"` }
func (*Source) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Source.
func (*Source) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Source) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Source) SetupWebhookWithManager ¶
func (*Source) ValidateCreate ¶
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*Source) ValidateDelete ¶
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
type SourceList ¶
type SourceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` // Items is a list of Source CRD objects Items []Source `json:"items,omitempty"` }
SourceList is a list of Sources
func (*SourceList) DeepCopy ¶
func (in *SourceList) DeepCopy() *SourceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SourceList.
func (*SourceList) DeepCopyInto ¶
func (in *SourceList) DeepCopyInto(out *SourceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SourceList) DeepCopyObject ¶
func (in *SourceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SourceSpec ¶
type SourceSpec struct { State *SourceSpecResource `json:"state,omitempty" tf:"-"` Resource SourceSpecResource `json:"resource" tf:"resource"` UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"` TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"` ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"` SecretRef *core.LocalObjectReference `json:"secretRef,omitempty" tf:"-"` }
func (*SourceSpec) DeepCopy ¶
func (in *SourceSpec) DeepCopy() *SourceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SourceSpec.
func (*SourceSpec) DeepCopyInto ¶
func (in *SourceSpec) DeepCopyInto(out *SourceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SourceSpecJsonData ¶
type SourceSpecJsonData struct { // (CloudWatch) The ARN of the role to be assumed by Grafana when using the CloudWatch data source. // +optional AssumeRoleArn *string `json:"assumeRoleArn,omitempty" tf:"assume_role_arn"` // (CloudWatch) The authentication type used to access the data source. // +optional AuthType *string `json:"authType,omitempty" tf:"auth_type"` // (Stackdriver) The authentication type: `jwt` or `gce`. // +optional AuthenticationType *string `json:"authenticationType,omitempty" tf:"authentication_type"` // (Stackdriver) Service account email address. // +optional ClientEmail *string `json:"clientEmail,omitempty" tf:"client_email"` // (MySQL, PostgreSQL, and MSSQL) Maximum amount of time in seconds a connection may be reused (Grafana v5.4+). // +optional ConnMaxLifetime *int64 `json:"connMaxLifetime,omitempty" tf:"conn_max_lifetime"` // (CloudWatch) A comma-separated list of custom namespaces to be queried by the CloudWatch data source. // +optional CustomMetricsNamespaces *string `json:"customMetricsNamespaces,omitempty" tf:"custom_metrics_namespaces"` // (Stackdriver) The default project for the data source. // +optional DefaultProject *string `json:"defaultProject,omitempty" tf:"default_project"` // (CloudWatch) The default region for the data source. // +optional DefaultRegion *string `json:"defaultRegion,omitempty" tf:"default_region"` // (MSSQL) Connection SSL encryption handling: 'disable', 'false' or 'true'. // +optional Encrypt *string `json:"encrypt,omitempty" tf:"encrypt"` // (Elasticsearch) Elasticsearch version as a number (2/5/56/60/70). // +optional EsVersion *int64 `json:"esVersion,omitempty" tf:"es_version"` // (Graphite) Graphite version. // +optional GraphiteVersion *string `json:"graphiteVersion,omitempty" tf:"graphite_version"` // (Prometheus) HTTP method to use for making requests. // +optional HttpMethod *string `json:"httpMethod,omitempty" tf:"http_method"` // (Elasticsearch) Index date time format. nil(No Pattern), 'Hourly', 'Daily', 'Weekly', 'Monthly' or 'Yearly'. // +optional Interval *string `json:"interval,omitempty" tf:"interval"` // (Elasticsearch) Which field should be used to indicate the priority of the log message. // +optional LogLevelField *string `json:"logLevelField,omitempty" tf:"log_level_field"` // (Elasticsearch) Which field should be used as the log message. // +optional LogMessageField *string `json:"logMessageField,omitempty" tf:"log_message_field"` // (Elasticsearch) Maximum number of concurrent shard requests. // +optional MaxConcurrentShardRequests *int64 `json:"maxConcurrentShardRequests,omitempty" tf:"max_concurrent_shard_requests"` // (MySQL, PostgreSQL and MSSQL) Maximum number of connections in the idle connection pool (Grafana v5.4+). // +optional MaxIdleConns *int64 `json:"maxIdleConns,omitempty" tf:"max_idle_conns"` // (MySQL, PostgreSQL and MSSQL) Maximum number of open connections to the database (Grafana v5.4+). // +optional MaxOpenConns *int64 `json:"maxOpenConns,omitempty" tf:"max_open_conns"` // (PostgreSQL) Postgres version as a number (903/904/905/906/1000) meaning v9.3, v9.4, etc. // +optional PostgresVersion *int64 `json:"postgresVersion,omitempty" tf:"postgres_version"` // (CloudWatch) The credentials profile name to use when authentication type is set as 'Credentials file'. // +optional Profile *string `json:"profile,omitempty" tf:"profile"` // (Prometheus) Timeout for queries made to the Prometheus data source in seconds. // +optional QueryTimeout *string `json:"queryTimeout,omitempty" tf:"query_timeout"` // (Elasticsearch and Prometheus) Specifies the ARN of an IAM role to assume. // +optional Sigv4AssumeRoleArn *string `json:"sigv4AssumeRoleArn,omitempty" tf:"sigv4_assume_role_arn"` // (Elasticsearch and Prometheus) Enable usage of SigV4. // +optional Sigv4Auth *bool `json:"sigv4Auth,omitempty" tf:"sigv4_auth"` // (Elasticsearch and Prometheus) The Sigv4 authentication provider to use: 'default', 'credentials' or 'keys' (AMG: 'workspace-iam-role'). // +optional Sigv4AuthType *string `json:"sigv4AuthType,omitempty" tf:"sigv4_auth_type"` // (Elasticsearch and Prometheus) When assuming a role in another account use this external ID. // +optional Sigv4ExternalID *string `json:"sigv4ExternalID,omitempty" tf:"sigv4_external_id"` // (Elasticsearch and Prometheus) Credentials profile name, leave blank for default. // +optional Sigv4Profile *string `json:"sigv4Profile,omitempty" tf:"sigv4_profile"` // (Elasticsearch and Prometheus) AWS region to use for Sigv4. // +optional Sigv4Region *string `json:"sigv4Region,omitempty" tf:"sigv4_region"` // (PostgreSQL) SSLmode. 'disable', 'require', 'verify-ca' or 'verify-full'. // +optional SslMode *string `json:"sslMode,omitempty" tf:"ssl_mode"` // (Elasticsearch) Which field that should be used as timestamp. // +optional TimeField *string `json:"timeField,omitempty" tf:"time_field"` // (Prometheus, Elasticsearch, InfluxDB, MySQL, PostgreSQL, and MSSQL) Lowest interval/step value that should be used for this data source. // +optional TimeInterval *string `json:"timeInterval,omitempty" tf:"time_interval"` // (PostgreSQL) Enable usage of TimescaleDB extension. // +optional Timescaledb *bool `json:"timescaledb,omitempty" tf:"timescaledb"` // (All) Enable TLS authentication using client cert configured in secure json data. // +optional TlsAuth *bool `json:"tlsAuth,omitempty" tf:"tls_auth"` // (All) Enable TLS authentication using CA cert. // +optional TlsAuthWithCaCert *bool `json:"tlsAuthWithCaCert,omitempty" tf:"tls_auth_with_ca_cert"` // (All) Controls whether a client verifies the server’s certificate chain and host name. // +optional TlsSkipVerify *bool `json:"tlsSkipVerify,omitempty" tf:"tls_skip_verify"` // (Stackdriver) The token URI used, provided in the service account key. // +optional TokenURI *string `json:"tokenURI,omitempty" tf:"token_uri"` // (OpenTSDB) Resolution. // +optional TsdbResolution *string `json:"tsdbResolution,omitempty" tf:"tsdb_resolution"` // (OpenTSDB) Version. // +optional TsdbVersion *string `json:"tsdbVersion,omitempty" tf:"tsdb_version"` }
func (*SourceSpecJsonData) DeepCopy ¶
func (in *SourceSpecJsonData) DeepCopy() *SourceSpecJsonData
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SourceSpecJsonData.
func (*SourceSpecJsonData) DeepCopyInto ¶
func (in *SourceSpecJsonData) DeepCopyInto(out *SourceSpecJsonData)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SourceSpecResource ¶
type SourceSpecResource struct { ID string `json:"id,omitempty" tf:"id,omitempty"` // The method by which Grafana will access the data source: `proxy` or `direct`. // +optional AccessMode *string `json:"accessMode,omitempty" tf:"access_mode"` // Whether to enable basic auth for the data source. // +optional BasicAuthEnabled *bool `json:"basicAuthEnabled,omitempty" tf:"basic_auth_enabled"` // Basic auth password. // +optional BasicAuthPassword *string `json:"-" sensitive:"true" tf:"basic_auth_password"` // Basic auth username. // +optional BasicAuthUsername *string `json:"basicAuthUsername,omitempty" tf:"basic_auth_username"` // (Required by some data source types) The name of the database to use on the selected data source server. // +optional DatabaseName *string `json:"databaseName,omitempty" tf:"database_name"` // Whether to set the data source as default. This should only be `true` to a single data source. // +optional IsDefault *bool `json:"isDefault,omitempty" tf:"is_default"` // (Required by some data source types) // +optional JsonData []SourceSpecJsonData `json:"jsonData,omitempty" tf:"json_data"` // A unique name for the data source. Name *string `json:"name" tf:"name"` // (Required by some data source types) The password to use to authenticate to the data source. // +optional Password *string `json:"-" sensitive:"true" tf:"password"` // +optional // The data source type. Must be one of the supported data source keywords. Type *string `json:"type" tf:"type"` // The URL for the data source. The type of URL required varies depending on the chosen data source type. // +optional Url *string `json:"url,omitempty" tf:"url"` // (Required by some data source types) The username to use to authenticate to the data source. // +optional Username *string `json:"username,omitempty" tf:"username"` }
func (*SourceSpecResource) DeepCopy ¶
func (in *SourceSpecResource) DeepCopy() *SourceSpecResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SourceSpecResource.
func (*SourceSpecResource) DeepCopyInto ¶
func (in *SourceSpecResource) DeepCopyInto(out *SourceSpecResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SourceStatus ¶
type SourceStatus 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 (*SourceStatus) DeepCopy ¶
func (in *SourceStatus) DeepCopy() *SourceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SourceStatus.
func (*SourceStatus) DeepCopyInto ¶
func (in *SourceStatus) DeepCopyInto(out *SourceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.