api

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindOrCreateFolder

func FindOrCreateFolder(ctx context.Context, client *client.GrafanaHTTPAPI, name, uid, parentUID string) (string, error)

func FindOrCreateFolders

func FindOrCreateFolders(ctx context.Context, client *client.GrafanaHTTPAPI, folders []Folder, parentUID string) error

func NewClient

func NewClient(ctx *config.Context) (*client.GrafanaHTTPAPI, error)

Types

type ClientConfig

type ClientConfig struct {
	Host     string `yaml:"host"`
	Username string `yaml:"username"`
	Password string `yaml:"password"`
}

type Folder

type Folder struct {
	UID     string
	Name    string
	Folders []Folder
}

Jump to

Keyboard shortcuts

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