Documentation
¶
Index ¶
Constants ¶
View Source
const ( // ExitFailed means the command could not run or a store could not be // checked or migrated: configuration, connection, lock or step failure. ExitFailed = 1 // ExitUsage means invalid arguments; no store was opened. ExitUsage = 2 // ExitPending means --check found steps pending. ExitPending = 10 // ExitSchemaTooNew means a store was migrated by a newer binary. ExitSchemaTooNew = 11 // ExitOlderOpener means --contract found a store opened by a binary that // lacks a pending contract step. ExitOlderOpener = 12 // ExitIncompatible means `node peers --check` found a peer this binary cannot talk to. ExitIncompatible = 11 )
Exit codes of `node migrate` and `node peers --check`.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Configured ¶ added in v0.28.0
type Configured interface {
Config() (driver.ConfigService, error)
}
Configured gives a command the node's configuration without installing any SDK.
type ExitError ¶ added in v0.28.0
ExitError is an error that sets the process exit code; node.Execute exits with Code.
Click to show internal directories.
Click to hide internal directories.