Documentation ¶
Overview ¶
Package def defines default values used in Codechain.
Index ¶
Constants ¶
const CodechainHeadName = "_codechain-head."
CodechainHeadName is the TXT entry used for Codechain's secpkg heads.
const CodechainTestName = "_codechain-test."
CodechainTestName is the TXT entry used to test Dyn credentials.
const CodechainURLName = "_codechain-url."
CodechainURLName is the TXT entry used for Codechain's secpkg URLs.
const DefaultCodechainDir = ".codechain"
DefaultCodechainDir is the default directory used for Codechain related files. Can be overwritten with the environment variable CODECHAIN_DIR.
const SecretsSubDir = "secrets"
SecretsSubDir is the default subdirectory of a tool's home directory used to store secret key files
Variables ¶
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.
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.
var HashchainFile string
HashchainFile is the default name of the hashchain file.
var PatchDir string
PatchDir is the default name of the patch file directory.
var UnoverwriteableHashchainFile string
UnoverwriteableHashchainFile is the unoverwriteable default name of the hashchain file. Setting CODECHAIN_DIR has no effect on it.
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.