config

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultFilename

func DefaultFilename() (string, error)

func Parse

func Parse(data []byte, conf *Configuration) error

func ParseFile

func ParseFile(filename string, conf *Configuration) error

Types

type Account

type Account struct {
	Name     string
	Host     string
	Port     string
	User     string
	Password string
	Insecure bool
}

type Configuration

type Configuration struct {
	Accounts []*Account
	Default  *Account
}

type ParserError

type ParserError struct {
	Message string
	LineNo  int
}

func NewParserError

func NewParserError(message string, lineNo int) *ParserError

func (*ParserError) Error

func (e *ParserError) Error() string

Jump to

Keyboard shortcuts

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