clconf

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2022 License: LGPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package clconf loads CLient Conf from configuration files.

Index

Constants

View Source
const (
	PrimaryConfigName = "disdup.conf"
	OutputConfigName  = "outputs.conf"
)

Key os-independent file names or paths.

Variables

View Source
var (
	ErrNotFound = errors.New("not found")
	ErrSyntax   = errors.New("bad syntax")
	ErrIO       = errors.New("I/O error")
	ErrOutput   = errors.New("invalid output")
)

Generic config loading related errors.

View Source
var (
	ErrWrongType      = errors.New("unexpected type")
	ErrUnknownCollate = errors.New("unknown collation mode")
	ErrMissingCommand = errors.New("missing key: command")
)

Output parsing or processing errors.

Functions

func LoadConfig

func LoadConfig() (config.Config, error)

Types

type Output

type Output struct {
	Type      string                 `json:"type"`
	Arguments map[string]interface{} `json:"args"`
}

An Output is a json-encodable representation of a disdup output.

Jump to

Keyboard shortcuts

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