client

package
v5.20.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2025 License: Apache-2.0 Imports: 21 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultTLSConfiguration  = &tls.Config{MinVersion: tls.VersionTLS12}
	InsecureTLSConfiguration = &tls.Config{MinVersion: tls.VersionTLS12, InsecureSkipVerify: true} // #nosec G402 - Linter disabled because InsecureSkipVerify is the wanted behavior for this variable
)

Functions

func GetValueFromSecretKey added in v5.13.0

func GetValueFromSecretKey(ctx context.Context, ref *v1.SecretKeySelector, c client.Client, namespace string) ([]byte, error)

func InjectAuthHeaders added in v5.10.0

func InjectAuthHeaders(ctx context.Context, c client.Client, grafana *v1beta1.Grafana, req *http.Request) error

func NewGeneratedGrafanaClient added in v5.7.0

func NewGeneratedGrafanaClient(ctx context.Context, c client.Client, grafana *v1beta1.Grafana) (*genapi.GrafanaHTTPAPI, error)

func NewHTTPClient added in v5.9.0

func NewHTTPClient(ctx context.Context, c client.Client, grafana *v1beta1.Grafana) (*http.Client, error)

func NewInstrumentedRoundTripper

func NewInstrumentedRoundTripper(useProxy bool, tlsConfig *tls.Config, metrics ...*prometheus.CounterVec) http.RoundTripper

func ParseAdminURL added in v5.18.0

func ParseAdminURL(adminURL string) (*url.URL, error)

Types

type RoundTripperOnResponse added in v5.17.0

type RoundTripperOnResponse func(requestMethod string, responseCode int)

Jump to

Keyboard shortcuts

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