configuration

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitConfig

func InitConfig()

Types

type BasicAuth

type BasicAuth struct {
	Username string `mapstructure:"username" yaml:"username"`
	Password string `mapstructure:"password" yaml:"password"`
}

type Configuration

type Configuration struct {
	Storage         Storage      `mapstructure:"storage" yaml:"storage"`
	Files           []OSLocation `mapstructure:"files" yaml:"files"`
	Folders         []OSLocation `mapstructure:"folders" yaml:"folders"`
	PackageManagers PkgManagers  `mapstructure:"package-managers" yaml:"package-managers"`
}

type Git

type Git struct {
	URL       string      `mapstructure:"repository" yaml:"repository"`
	Name      string      `mapstructure:"name" yaml:"name"`
	Email     string      `mapstructure:"email" yaml:"email"`
	BasicAuth BasicAuth   `mapstructure:"basic-auth" yaml:"basic-auth"`
	SSH       interface{} `mapstructure:"ssh" yaml:"ssh"`
}

type OSLocation

type OSLocation struct {
	Darwin string `mapstructure:"darwin" yaml:"darwin"`
	Linux  string `mapstructure:"linux" yaml:"linux"`
}

type PkgManagers

type PkgManagers struct {
	InstallationOrder []string `mapstructure:"installation-order" yaml:"installation-order"`
	Brew              []string `mapstructure:"brew" yaml:"brew"`
	Apt               []string `mapstructure:"apt" yaml:"apt"`
	Cargo             []string `mapstructure:"cargo" yaml:"cargo"`
	Pip               []string `mapstructure:"pip" yaml:"pip"`
	Npm               []string `mapstructure:"npm" yaml:"npm"`
	Go                []string `mapstructure:"go" yaml:"go"`
	Nala              []string `mapstructure:"nala" yaml:"nala"`
}

type Ssh

type Ssh struct {
	PrivateKey string `mapstructure:"private-key" yaml:"private-key"`
	Passphrase string `mapstructure:"passphrase" yaml:"passphrase"`
}

type Storage

type Storage struct {
	Path string `mapstructure:"location" yaml:"location"`
	Git  Git    `mapstructure:"git" yaml:"git"`
}

Jump to

Keyboard shortcuts

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