grafana

package
v0.10.17 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2023 License: MIT Imports: 26 Imported by: 0

Documentation

Index

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 APIKeys

type APIKeys struct {
	// contains filtered or unexported fields
}

func NewAPIKeys

func NewAPIKeys(logger logr.Logger, grabanaClient *grabana.Client, secrets secretsWriter) *APIKeys

func (*APIKeys) Delete

func (keys *APIKeys) Delete(ctx context.Context, name string) error

func (*APIKeys) Reconcile

func (keys *APIKeys) Reconcile(ctx context.Context, key APIKey) 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

func (*AlertManager) Reset

func (manager *AlertManager) Reset(ctx context.Context) error

type Creator

type Creator struct {
	// contains filtered or unexported fields
}

func NewCreator

func NewCreator(grabanaClient *grabana.Client) *Creator

func (*Creator) Delete

func (creator *Creator) Delete(ctx context.Context, uid string) error

func (*Creator) FromRawSpec

func (creator *Creator) FromRawSpec(ctx context.Context, folderName string, uid string, rawJSON []byte) 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL