client

package
v0.31.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateGrafanaClient

func GenerateGrafanaClient(
	ctx context.Context,
	k8sClient client.Client,
	grafanaURL *url.URL,
) (*grafana.GrafanaHTTPAPI, error)

GenerateGrafanaClient creates a new Grafana client by fetching credentials and TLS configuration from Kubernetes secrets.

Types

type AdminCredentials

type AdminCredentials struct {
	Username string
	Password string
}

type TLSConfig

type TLSConfig struct {
	Cert string
	Key  string
}

Jump to

Keyboard shortcuts

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