Documentation ¶
Index ¶
- Variables
- type APIKey
- type APIKeys
- type AlertManager
- type Creator
- type Datasources
- func (datasources *Datasources) Delete(ctx context.Context, name string) error
- func (datasources *Datasources) SpecToModel(ctx context.Context, objectRef types.NamespacedName, ...) (datasource.Datasource, error)
- func (datasources *Datasources) Upsert(ctx context.Context, model datasource.Datasource) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrDatasourceNotConfigured = fmt.Errorf("datasource not configured")
View Source
var ErrInvalidAccessMode = fmt.Errorf("invalid access mode")
View Source
var ErrInvalidContactPointType = fmt.Errorf("invalid contact point type")
View Source
var ErrInvalidDatasourceRef = fmt.Errorf("invalid datasource reference")
View Source
var ErrInvalidExemplar = fmt.Errorf("invalid exemplar")
View Source
var ErrInvalidRoutingRule = fmt.Errorf("invalid routing rule")
Functions ¶
This section is empty.
Types ¶
type APIKey ¶
type APIKey struct { Name string Role string SecretName string SecretNamespace string TokenKey string }
func (APIKey) GrabanaRole ¶
func (key APIKey) GrabanaRole() (grabana.APIKeyRole, error)
type AlertManager ¶
type AlertManager struct {
// contains filtered or unexported fields
}
func NewAlertManager ¶
func NewAlertManager(logger logr.Logger, grabanaClient *grabana.Client, refReader refReader) *AlertManager
func (*AlertManager) Configure ¶
func (manager *AlertManager) Configure(ctx context.Context, manifest v1alpha1.AlertManager) error
type Datasources ¶
type Datasources struct {
// contains filtered or unexported fields
}
func NewDatasources ¶
func NewDatasources(logger logr.Logger, grabanaClient *grabana.Client, refReader refReader) *Datasources
func (*Datasources) Delete ¶
func (datasources *Datasources) Delete(ctx context.Context, name string) error
func (*Datasources) SpecToModel ¶
func (datasources *Datasources) SpecToModel(ctx context.Context, objectRef types.NamespacedName, spec v1alpha1.DatasourceSpec) (datasource.Datasource, error)
func (*Datasources) Upsert ¶
func (datasources *Datasources) Upsert(ctx context.Context, model datasource.Datasource) error
Click to show internal directories.
Click to hide internal directories.