fetchers

package
v5.15.1 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: Apache-2.0 Imports: 28 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildProjectAndFetchJsonnetFrom

func BuildProjectAndFetchJsonnetFrom(dashboard *v1beta1.GrafanaDashboard, envs map[string]string) ([]byte, error)

func FetchDashboardFromConfigMap

func FetchDashboardFromConfigMap(dashboard *v1beta1.GrafanaDashboard, c client.Client) ([]byte, error)

func FetchDashboardFromGrafanaCom

func FetchDashboardFromGrafanaCom(ctx context.Context, dashboard *v1beta1.GrafanaDashboard, c client.Client) ([]byte, error)

func FetchDashboardFromUrl

func FetchDashboardFromUrl(ctx context.Context, dashboard *v1beta1.GrafanaDashboard, c client.Client, tlsConfig *tls.Config) ([]byte, error)

func FetchJsonnet

func FetchJsonnet(dashboard *v1beta1.GrafanaDashboard, envs map[string]string, libsonnet embed.FS) ([]byte, error)

Types

type EmbedFSImporter

type EmbedFSImporter struct {
	Embed embed.FS
	// contains filtered or unexported fields
}

EmbedFSImporter "imports" data from an in-memory embedFS.

func (*EmbedFSImporter) Import

func (importer *EmbedFSImporter) Import(importedFrom, importedPath string) (contents jsonnet.Contents, foundAt string, err error)

Import fetches data from an embedFS struct.

Jump to

Keyboard shortcuts

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