Documentation
¶
Index ¶
- Constants
- func EncodeScriptTask(task *Task) (props map[string]any, headers map[string]any)
- func EncodeServiceTask(service *Service) (props map[string]any, headers map[string]any)
- type ChildProcess
- type Handler
- type ICatchTask
- type INamedTask
- type ITask
- type Process
- type Service
- type Task
- type YamlKV
Constants ¶
View Source
const ( ChildProcessKey = "process" ServiceKey = "service" TaskKey = "task" )
Variables ¶
This section is empty.
Functions ¶
func EncodeScriptTask ¶ added in v0.3.2
Types ¶
type ChildProcess ¶
type ChildProcess struct { Name string `json:"name,omitempty" yaml:"name,omitempty"` Id string `json:"id,omitempty" yaml:"id,omitempty"` Kind string `json:"kind,omitempty" yaml:"kind,omitempty"` Hosts []string `json:"hosts,omitempty" yaml:"hosts,omitempty"` Vars map[string]any `json:"vars,omitempty" yaml:"vars,omitempty"` RemoteUser string `json:"remote_user,omitempty" yaml:"remote_user,omitempty"` Sudo bool `json:"sudo,omitempty" yaml:"sudo,omitempty"` SudoUser string `json:"sudo_user,omitempty" yaml:"sudo_user,omitempty"` Tasks []ITask `json:"tasks,omitempty" yaml:"tasks,omitempty"` Handlers []*Handler `json:"handlers,omitempty" yaml:"handlers,omitempty"` }
type Handler ¶
type Handler struct { Name string `json:"name,omitempty" yaml:"name,omitempty"` Id string `json:"id,omitempty" yaml:"id,omitempty"` Kind string `json:"kind,omitempty" yaml:"kind,omitempty"` Action string `json:"action,omitempty" yaml:"action,omitempty"` Args map[string]any `json:"args,omitempty" yaml:"args,omitempty"` }
type ICatchTask ¶ added in v0.3.0
type INamedTask ¶ added in v0.3.0
type Process ¶
type Process struct { Name string `json:"name,omitempty" yaml:"name,omitempty"` Id string `json:"id,omitempty" yaml:"id,omitempty"` Hosts []string `json:"hosts,omitempty" yaml:"hosts,omitempty"` Vars map[string]any `json:"vars,omitempty" yaml:"vars,omitempty"` RemoteUser string `json:"remote_user,omitempty" yaml:"remote_user,omitempty"` Sudo bool `json:"sudo,omitempty" yaml:"sudo,omitempty"` SudoUser string `json:"sudo_user,omitempty" yaml:"sudo_user,omitempty"` Tasks []ITask `json:"tasks,omitempty" yaml:"tasks,omitempty"` Handlers []*Handler `json:"handlers,omitempty" yaml:"handlers,omitempty"` }
func (*Process) UnmarshalYAML ¶
type Service ¶ added in v0.2.2
type Service struct { Name string `json:"name,omitempty" yaml:"name,omitempty"` Id string `json:"id,omitempty" yaml:"id,omitempty"` Kind string `json:"kind,omitempty" yaml:"kind,omitempty"` Vars map[string]any `json:"vars,omitempty" yaml:"vars,omitempty"` Hosts []string `json:"hosts,omitempty" yaml:"hosts,omitempty"` Action string `json:"action,omitempty" yaml:"action,omitempty"` Args map[string]any `json:"args,omitempty" yaml:"args,omitempty"` Catch *Handler `json:"catch,omitempty" yaml:"catch,omitempty"` Finish *Handler `json:"finish,omitempty" yaml:"finish,omitempty"` Notify []string `json:"notify,omitempty" yaml:"notify,omitempty"` }
func DecodeServiceTask ¶ added in v0.3.2
type Task ¶
type Task struct { Name string `json:"name,omitempty" yaml:"name,omitempty"` Id string `json:"id,omitempty" yaml:"id,omitempty"` Vars map[string]any `json:"vars,omitempty" yaml:"vars,omitempty"` Action string `json:"action,omitempty" yaml:"action,omitempty"` Args map[string]any `json:"args,omitempty" yaml:"args,omitempty"` RemoteUser string `json:"remote_user,omitempty" yaml:"remote_user,omitempty"` Sudo bool `json:"sudo,omitempty" yaml:"sudo,omitempty"` SudoUser string `json:"sudo_user,omitempty" yaml:"sudo_user,omitempty"` Hosts []string `json:"hosts,omitempty" yaml:"hosts,omitempty"` Catch *Handler `json:"catch,omitempty" yaml:"catch,omitempty"` Finish *Handler `json:"finish,omitempty" yaml:"finish,omitempty"` Notify []string `json:"notify,omitempty" yaml:"notify,omitempty"` }
func DecodeScriptTask ¶ added in v0.3.2
Click to show internal directories.
Click to hide internal directories.