grafana

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGrafanaClient

func NewGrafanaClient(ctx context.Context, kc client.Client, ref *kmapi.ObjectReference) (*sdk.Client, error)

Types

type ChangeStats

type ChangeStats struct {
	Comment string `json:"comment,omitempty"`
	Diff    string `json:"diff,omitempty"`
}

type ClientBuilder

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

func NewBuilder

func NewBuilder(mgr manager.Manager, flags *Config) (*ClientBuilder, error)

func (*ClientBuilder) GetGrafanaClient

func (r *ClientBuilder) GetGrafanaClient() (*sdk.Client, error)

func (*ClientBuilder) Reconcile

func (r *ClientBuilder) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.8.3/pkg/reconcile

func (*ClientBuilder) Setup

func (r *ClientBuilder) Setup() error

type Config

type Config struct {
	Addr string
	*sdk.AuthConfig
	TLS *TLS
}

func GetGrafanaConfig

func GetGrafanaConfig(ab *appcatalog.AppBinding, authSecret *core.Secret) (*Config, error)

type TLS added in v0.0.7

type TLS struct {
	CABundle []byte
}

Jump to

Keyboard shortcuts

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