conf

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const AuthEnvName = "PKG_AUTH"
View Source
const ConfigFileName = "pkg.config.yaml"
View Source
const ErrorEnvFormat = "wrong format of env, format should be: <username1>?<token1>@example1.com:<username2>?<token2>@example2.com"

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	Username string `yaml:"user"`
	Token    string `yaml:"token"`
}

type PkgConfig

type PkgConfig struct {
	Auth       map[string]Auth   `yaml:"auth"`
	GitReplace map[string]string `yaml:"git-replace"`
}

func ParseConfig

func ParseConfig(projectHome string) (*PkgConfig, error)

Jump to

Keyboard shortcuts

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