Documentation
¶
Index ¶
Constants ¶
View Source
const ( ExitSuccess = 0 ExitGeneral = 1 ExitInvalidArgs = 2 ExitAPIError = 3 ExitConfigError = 4 )
Exit codes per spec (docs/specs/03-cli/01-commands.md).
Variables ¶
This section is empty.
Functions ¶
func NewRootCmd ¶
func RoleInstructionFiles ¶
func RoleInstructionFiles() []string
RoleInstructionFiles returns the list of role instruction filenames created by init.
func SetVersion ¶
func SetVersion(v string)
SetVersion sets the version string displayed by --version.
func WorkflowFiles ¶
func WorkflowFiles() []string
WorkflowFiles returns the list of workflow filenames to install.
Types ¶
type BatchStatus ¶
type BatchStatus struct {
Number int `json:"number"`
Title string `json:"title"`
Total int `json:"total"`
Done int `json:"done"`
Failed int `json:"failed"`
Active int `json:"active"`
Blocked int `json:"blocked"`
Ready int `json:"ready"`
Manual int `json:"manual"`
}
BatchStatus holds summary info for a batch.
type ConfigError ¶
type ConfigError struct {
Err error
}
ConfigError wraps errors related to .herdos.yml.
func (*ConfigError) Error ¶
func (e *ConfigError) Error() string
func (*ConfigError) Unwrap ¶
func (e *ConfigError) Unwrap() error
type StatusOutput ¶
type StatusOutput struct {
Batches []BatchStatus `json:"batches"`
Workers []WorkerRun `json:"workers"`
}
StatusOutput is the JSON-serializable status structure.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.