config

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2023 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Commit

type Commit struct {
	Name  string `toml:"name" env:"NAME"`
	Email string `toml:"email" env:"EMAIL"`
}

type Config

type Config struct {
	Git     Git     `toml:"git" envPrefix:"GIT_"`
	Webhook Webhook `toml:"webhook" envPrefix:"WEBHOOK_"`
}

type Credentials

type Credentials struct {
	Username string `toml:"username" env:"USERNAME"`
	Password string `toml:"password" env:"PASSWORD"`
}

type Git

type Git struct {
	RepoDir     string      `toml:"repoDir" env:"REPO_DIR"`
	RepoURL     string      `toml:"repoURL" env:"REPO_URL"`
	Commit      Commit      `toml:"commit" envPrefix:"COMMIT_"`
	Credentials Credentials `toml:"credentials" envPrefix:"CREDENTIALS_"`
}

type Webhook

type Webhook struct {
	PasswordHash string `toml:"pwd_hash" env:"PASSWORD_HASH"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳