dashboard

package
v0.0.0-...-3e848aa Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDashboardLoader

func NewDashboardLoader(fileName string, deps *depspkg.ProvisioningDeps) (provisioning.ProviderLoader, error)

NewDashboardLoader creates dashboard provider loader.

Types

type Config

type Config struct {
	Providers []Provider
}

Config represents dashboard provisioning configuration.

type FileLoader

type FileLoader interface {
	// Run runs file loader, discovery dashboard from local file system.
	Run() error
	// Shutdown shutdowns file loader
	Shutdown() error
}

FileLoader represents dashboard file loader.

func NewFileLoader

func NewFileLoader(dir string, org *model.Org, provider *dashboardProvider) FileLoader

NewFileLoader creates a FileLoader.

type Provider

type Provider struct {
	Name            string         `yaml:"name"`
	Type            ProviderType   `yaml:"type"`
	OrgUID          string         `yaml:"orgUid"`
	Editable        bool           `yaml:"editable"`
	DisableDeletion bool           `yaml:"disableDeletion"`
	AllowUIUpdates  bool           `yaml:"allowUiUpdates"`
	Options         map[string]any `yaml:"options"`
}

Provider represents dashboard provider's configuration.

type ProviderType

type ProviderType string

ProviderType represents dashboard provider type.

const (
	FileProvider ProviderType = "file"
)

Jump to

Keyboard shortcuts

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