utils

package
v0.0.0-kmdagger3 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: AGPL-3.0 Imports: 6 Imported by: 138

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGrafanaPluginDir

func GetGrafanaPluginDir(currentOS string) string

Types

type ApiClient

type ApiClient interface {
	GetPlugin(pluginId, repoUrl string) (models.Plugin, error)
	ListAllPlugins(repoUrl string) (models.PluginRepo, error)
}

type CommandLine

type CommandLine interface {
	ShowHelp() error
	ShowVersion()
	Application() *cli.App
	Args() cli.Args
	Bool(name string) bool
	Int(name string) int
	String(name string) string
	StringSlice(name string) []string
	FlagNames() (names []string)
	Generic(name string) interface{}

	PluginDirectory() string
	PluginRepoURL() string
	PluginURL() string
}

type ContextCommandLine

type ContextCommandLine struct {
	*cli.Context
}

func (*ContextCommandLine) Application

func (c *ContextCommandLine) Application() *cli.App

func (*ContextCommandLine) ConfigFile

func (c *ContextCommandLine) ConfigFile() string

func (*ContextCommandLine) HomePath

func (c *ContextCommandLine) HomePath() string

func (*ContextCommandLine) PluginDirectory

func (c *ContextCommandLine) PluginDirectory() string

func (*ContextCommandLine) PluginRepoURL

func (c *ContextCommandLine) PluginRepoURL() string

func (*ContextCommandLine) PluginURL

func (c *ContextCommandLine) PluginURL() string

func (*ContextCommandLine) ShowHelp

func (c *ContextCommandLine) ShowHelp() error

func (*ContextCommandLine) ShowVersion

func (c *ContextCommandLine) ShowVersion()

Jump to

Keyboard shortcuts

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