conf

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Fname string = ".gissrc"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Conf

type Conf struct {
	Report     RepoConfig
	Mail       MailConfig
	GitDefault GitDefaultConfig
	Server     map[string]GitServerConfig
	Giss       GissConfig
}

func LoadUserConfig

func LoadUserConfig() (Conf, error)

func (*Conf) GetAlias

func (self *Conf) GetAlias(url string) string

func (*Conf) IsDefinedCred

func (self *Conf) IsDefinedCred(alias string) bool

type GissConfig

type GissConfig struct {
	Editor string `toml:"editor"`
}

type GitDefaultConfig

type GitDefaultConfig struct {
	Url string `toml:"URL"`
}

type GitServerConfig

type GitServerConfig struct {
	Url       string   `toml:URL`
	Type      string   `toml:Type`
	Repos     []string `toml:Repos`
	AutoLogin bool     `toml:AutoLogin`
	User      string   `toml:User`
	Token     string   `toml:Token`
}

type MailConfig

type MailConfig struct {
	To      []string `toml:"To"`
	Header  []string `toml:"Header"`
	From    string   `toml:"From"`
	Subject string   `toml:"Subject"`
	Mta     string   `toml:"MTA"`
	Port    int64    `toml:"Port"`
}

type RepoConfig

type RepoConfig struct {
	Header     string   `toml:"Header"`
	Futter     string   `toml:"Futter"`
	TargetRepo []string `toml:"targetRepository"`
}

Jump to

Keyboard shortcuts

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