def

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2020 License: Unlicense Imports: 2 Imported by: 0

Documentation

Overview

Package def defines default values used in Codechain.

Index

Constants

View Source
const CodechainHeadName = "_codechain-head."

CodechainHeadName is the TXT entry used for Codechain's secpkg heads.

View Source
const CodechainTestName = "_codechain-test."

CodechainTestName is the TXT entry used to test Dyn credentials.

View Source
const CodechainURLName = "_codechain-url."

CodechainURLName is the TXT entry used for Codechain's secpkg URLs.

View Source
const DefaultCodechainDir = ".codechain"

DefaultCodechainDir is the default directory used for Codechain related files. Can be overwritten with the environment variable CODECHAIN_DIR.

View Source
const SecretsSubDir = "secrets"

SecretsSubDir is the default subdirectory of a tool's home directory used to store secret key files

Variables

View Source
var CodechainDir = DefaultCodechainDir

CodechainDir is the directory used for Codechain releated files. If not set with the environment variable CODECHAIN_DIR, DefaultCodechainDir is used. If CODECHAIN_DIR is used, the environment variable CODECHAIN_EXCLUDE can be used to exclude a second Codechain directory from all Codechain commands.

View Source
var ExcludePaths = []string{
	DefaultCodechainDir,
	".git",
	".gitignore",
	".travis.yml",
}

ExcludePaths is the default list of paths not considered by Codechain. Do not ever change this list! It will break existing Codechains.

View Source
var HashchainFile string

HashchainFile is the default name of the hashchain file.

View Source
var PatchDir string

PatchDir is the default name of the patch file directory.

View Source
var UnoverwriteableHashchainFile string

UnoverwriteableHashchainFile is the unoverwriteable default name of the hashchain file. Setting CODECHAIN_DIR has no effect on it.

View Source
var UnoverwriteablePatchDir string

UnoverwriteablePatchDir is the unoverwriteable default name of the patch file directory. Setting CODECHAIN_DIR has no effect on it.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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