config

package
v0.0.0-...-686ff47 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

func (*Config) Get

func (cfg *Config) Get(key, def string) string

func (*Config) GetPlugin

func (cfg *Config) GetPlugin(name string) (res Plugin, err error)

func (*Config) GetWithPart

func (cfg *Config) GetWithPart(part, key, def string) string

func (*Config) List

func (cfg *Config) List(prefix string) map[string]string

func (*Config) ListPlugin

func (cfg *Config) ListPlugin(multigraph bool) []string

func (*Config) ListWithPart

func (cfg *Config) ListWithPart(part, prefix string) map[string]string

func (*Config) ReadConfig

func (cfg *Config) ReadConfig(ifp io.Reader) error

func (*Config) ReadPlugins

func (cfg *Config) ReadPlugins(dirname string) error

type Plugin

type Plugin struct {
	CommandPath string
	MultiGraph  bool
	Env         map[string]string
	Uid         uint32
	Gid         uint32
}

func (*Plugin) Execute

func (p *Plugin) Execute(output io.Writer) error

func (*Plugin) ShowConfig

func (p *Plugin) ShowConfig(dirtyconfig bool, output io.Writer) error

Jump to

Keyboard shortcuts

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