fetchers

package
v5.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

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(dashboard *v1beta1.GrafanaDashboard) ([]byte, error)

func FetchDashboardFromUrl

func FetchDashboardFromUrl(dashboard *v1beta1.GrafanaDashboard) ([]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