Documentation ¶
Index ¶
- Variables
- type Ack
- type CmdCook
- type CmdRun
- type CombinedVersion
- type CompletionStatus
- type CookSummary
- type EnvVar
- type Executor
- type FilePath
- type FileProvider
- type Function
- type Ingredient
- type Inline
- type Job
- type KeyManager
- type KeySet
- type KeySubmission
- type KeysByType
- type PingPong
- type RecipeCooker
- type RecipeEnvelope
- type RecipeName
- type ReqType
- type Requisite
- type RequisiteSet
- type Result
- type ServiceProvider
- type SimpleNote
- type SproutStepCompletion
- type Startup
- type Step
- type StepCompletion
- type StepID
- type Summary
- type TargetedAction
- type TargetedResults
- type Targets
- type TriggerMsg
- type Version
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrAPIRouteNotFound = errors.New("API Route not found") ErrAlreadyAccepted = errors.New("this Sprout ID was already accepted") ErrAlreadyDenied = errors.New("this Sprout ID was already denied") ErrAlreadyRejected = errors.New("this Sprout ID was already rejected") ErrAlreadyUnaccepted = errors.New("this Sprout ID was already unaccepted") ErrCannotParseRootCA = errors.New("cannot load the RootCA certificate") ErrDependencyCycleFound = errors.New("found a dependency cycle") ErrSproutIDFound = errors.New("a Sprout ID matching that system has already been recorded") ErrSproutIDInvalid = errors.New("bad user input: invalid SproutID received") ErrSproutIDNotFound = errors.New("a Sprout ID matching that system cannot be found") ErrInvalidUserInput = errors.New("invalid user input was received") ErrNotImplemented = errors.New("this feature is not yet implemented") ErrInvalidKeyState = errors.New("code bug: an invalid key state was supplied") ErrConfirmationLengthIsZero = errors.New("code bug: confirmation options muct not be 0-length") ErrInvalidMethod = errors.New("invalid method") ErrMissingName = errors.New("recipe is missing a name") ErrMissingSource = errors.New("recipe is missing a source") ErrMissingHash = errors.New("file is missing a hash") ErrCacheFailure = errors.New("file caching failed") ErrMissingContent = errors.New("file is missing content") ErrFileNotFound = errors.New("file not found") ErrHashMismatch = errors.New("file hash mismatch") ErrDeleteRoot = errors.New("cannot delete root directory") ErrModifyRoot = errors.New("cannot modify root directory") ErrMissingTarget = errors.New("target is missing") ErrPathNotFound = errors.New("path not found") )
Functions ¶
This section is empty.
Types ¶
type CmdRun ¶
type CmdRun struct { Command string `json:"command"` Args []string `json:"args"` Path string `json:"path"` // path is prepended to the command's normal path CWD string `json:"cwd"` RunAs string `json:"runas"` Env EnvVar `json:"env"` Timeout time.Duration `json:"timeout"` Stdout string `json:"stdout"` Stderr string `json:"stderr"` Duration time.Duration `json:"duration"` ErrCode int `json:"errcode"` Error error `json:"error"` }
type CombinedVersion ¶ added in v0.0.3
type CompletionStatus ¶ added in v0.0.13
type CompletionStatus int
const ( StepNotStarted CompletionStatus = iota StepInProgress StepCompleted StepFailed )
type CookSummary ¶ added in v0.0.13
type FileProvider ¶ added in v0.0.5
type Ingredient ¶ added in v0.0.3
type Ingredient string
type KeyManager ¶
type KeyManager struct {
SproutID string `json:"id"`
}
type KeySet ¶
type KeySet struct {
Sprouts []KeyManager `json:"sprouts"`
}
type KeySubmission ¶
type KeysByType ¶
type RecipeCooker ¶ added in v0.0.3
type RecipeCooker interface { Apply(context.Context) (Result, error) Test(context.Context) (Result, error) Properties() (map[string]interface{}, error) Parse(id, method string, properties map[string]interface{}) (RecipeCooker, error) Methods() (string, []string) PropertiesForMethod(method string) (map[string]string, error) }
type RecipeEnvelope ¶ added in v0.0.5
type RecipeName ¶ added in v0.0.3
type RecipeName string
type RequisiteSet ¶ added in v0.0.3
type RequisiteSet []Requisite
func (RequisiteSet) AllIDs ¶ added in v0.0.3
func (r RequisiteSet) AllIDs() []StepID
func (RequisiteSet) AllSteps ¶ added in v0.0.3
func (r RequisiteSet) AllSteps() []*Step
func (RequisiteSet) Equals ¶ added in v0.0.3
func (r RequisiteSet) Equals(other RequisiteSet) bool
type ServiceProvider ¶ added in v0.0.5
type ServiceProvider interface { Properties() (map[string]interface{}, error) Parse(id, method string, properties map[string]interface{}) (ServiceProvider, error) Start(context.Context) error Stop(context.Context) error Status(context.Context) (string, error) Enable(context.Context) error Disable(context.Context) error IsEnabled(context.Context) (bool, error) IsRunning(context.Context) (bool, error) Restart(context.Context) error Mask(context.Context) error Unmask(context.Context) error IsMasked(context.Context) (bool, error) InitName() string IsInit() bool }
type SimpleNote ¶ added in v0.0.5
type SimpleNote string
func Snprintf ¶ added in v0.0.5
func Snprintf(format string, a ...any) SimpleNote
func (SimpleNote) String ¶ added in v0.0.5
func (s SimpleNote) String() string
type SproutStepCompletion ¶ added in v0.0.13
type SproutStepCompletion struct { SproutID string CompletedStep StepCompletion }
type Step ¶ added in v0.0.3
type Step struct { Ingredient Ingredient `json:"ingredient" yaml:"ingredient"` Method string `json:"method" yaml:"method"` ID StepID Requisites RequisiteSet Properties map[string]interface{} IsRequisite bool }
type StepCompletion ¶ added in v0.0.13
type StepCompletion struct { ID StepID CompletionStatus CompletionStatus ChangesMade bool Changes []string Error error }
type TargetedAction ¶
type TargetedAction struct { Target []KeyManager `json:"target"` Action interface{} `json:"action"` }
type TargetedResults ¶
type TargetedResults struct {
Results map[string]interface{} `json:"results,omitempty"`
}
type TriggerMsg ¶ added in v0.0.13
type TriggerMsg struct {
JID string `json:"jid"`
}
Click to show internal directories.
Click to hide internal directories.