fetchers

package
v0.0.0-...-9a65764 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchDashboardFromUrl

func FetchDashboardFromUrl(dashboard *v1beta1.GrafanaDashboard) ([]byte, error)

func FetchJsonnet

func FetchJsonnet(dashboard *v1beta1.GrafanaDashboard, 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