settings

package
v0.0.0-...-d711150 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadSettings

func ReadSettings(Filepath string, data interface{})

Types

type Destination

type Destination struct {
	RepDir string `yaml:"RepDir"`
	Branch string `yaml:"Branch"`
}

type RepositoryConf

type RepositoryConf struct {
	TimerMinute int `yaml:"TimerMinute"`
	From        *struct {
		Rep       string `yaml:"Rep"`
		Login     string `yaml:"Login"`
		Pass      string `yaml:"Pass"`
		Extension bool   `yaml:"Extension"`
	} `yaml:"From"`
	To *Destination `yaml:"To"`
	// contains filtered or unexported fields
}

func (*RepositoryConf) GetBranch

func (r *RepositoryConf) GetBranch() string

func (*RepositoryConf) GetDestination

func (r *RepositoryConf) GetDestination() *Destination

func (*RepositoryConf) GetDir

func (r *RepositoryConf) GetDir() string

func (*RepositoryConf) GetLogin

func (r *RepositoryConf) GetLogin() string

func (*RepositoryConf) GetPass

func (r *RepositoryConf) GetPass() string

func (*RepositoryConf) GetRepPath

func (r *RepositoryConf) GetRepPath() string

func (*RepositoryConf) GetTimerDuration

func (r *RepositoryConf) GetTimerDuration() time.Duration

func (*RepositoryConf) IsExtension

func (r *RepositoryConf) IsExtension() bool

func (*RepositoryConf) SaveVersion

func (this *RepositoryConf) SaveVersion()

legacy

type Setting

type Setting struct {
	Bin1C          string            `yaml:"Bin1C"`
	RepositoryConf []*RepositoryConf `yaml:"RepositoryConf"`
	Mongo          *struct {
		ConnectionString string `yaml:"ConnectionString"`
	} `yaml:"Mongo"`
	TFS *struct {
		URL string `yaml:"URL"`
		KEY string `yaml:"KEY"`
	} `yaml:"TFS"`
}

Jump to

Keyboard shortcuts

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