cmd

package
v4.2.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2023 License: AGPL-3.0 Imports: 36 Imported by: 0

Documentation

Overview

Package cmd provides default implementation for command-line-like actions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CaptureAction added in v4.2.6

type CaptureAction struct {
	common.RuntimeHolder
	// contains filtered or unexported fields
}

func (*CaptureAction) GetDescription added in v4.2.6

func (c *CaptureAction) GetDescription(lang ...string) actions.ActionDescription

GetDescription returns action description

func (*CaptureAction) GetName added in v4.2.6

func (c *CaptureAction) GetName() string

GetName provides unique identifier

func (*CaptureAction) GetParametersForm added in v4.2.6

func (c *CaptureAction) GetParametersForm() *forms.Form

GetParametersForm returns a UX form

func (*CaptureAction) Init added in v4.2.6

func (c *CaptureAction) Init(job *jobs.Job, action *jobs.Action) error

Init passes parameters

func (*CaptureAction) Run added in v4.2.6

Run perform actual action code

type ResyncAction

type ResyncAction struct {
	common.RuntimeHolder
	ServiceName string
	Path        string
	DryRun      bool
	CrtTask     *jobs.Task
}

func (*ResyncAction) GetDescription

func (c *ResyncAction) GetDescription(lang ...string) actions.ActionDescription

GetDescription returns action description

func (*ResyncAction) GetName

func (c *ResyncAction) GetName() string

GetName provides unique identifier

func (*ResyncAction) GetParametersForm

func (c *ResyncAction) GetParametersForm() *forms.Form

GetParametersForm returns a UX form

func (*ResyncAction) Init

func (c *ResyncAction) Init(job *jobs.Job, action *jobs.Action) error

Init passes parameters

func (*ResyncAction) Run

Run perform actual action code

func (*ResyncAction) SetTask

func (c *ResyncAction) SetTask(task *jobs.Task)

SetTask implements TaskUpdaterDelegateAction as the target service will update the task status on its side.

type RpcAction

type RpcAction struct {
	common.RuntimeHolder
	ServiceName string
	MethodName  string
	JsonRequest string
	Timeout     string
}

func (*RpcAction) GetDescription

func (c *RpcAction) GetDescription(lang ...string) actions.ActionDescription

GetDescription returns action description

func (*RpcAction) GetName

func (c *RpcAction) GetName() string

GetName provides unique identifier

func (*RpcAction) GetParametersForm

func (c *RpcAction) GetParametersForm() *forms.Form

GetParametersForm returns a UX form

func (*RpcAction) Init

func (c *RpcAction) Init(job *jobs.Job, action *jobs.Action) error

Init passes parameters

func (*RpcAction) Run

Run perform actual action code

type WGetAction

type WGetAction struct {
	common.RuntimeHolder
	Router    nodes.Client
	SourceUrl string
	// contains filtered or unexported fields
}

WGetAction performs a wget command with the provided URL

func (*WGetAction) GetDescription

func (w *WGetAction) GetDescription(lang ...string) actions.ActionDescription

GetDescription returns action description

func (*WGetAction) GetName

func (w *WGetAction) GetName() string

GetName returns the unique identifier of this action

func (*WGetAction) GetParametersForm

func (w *WGetAction) GetParametersForm() *forms.Form

GetParametersForm returns a UX form

func (*WGetAction) Init

func (w *WGetAction) Init(job *jobs.Job, action *jobs.Action) error

Init passes parameters

func (*WGetAction) Run

Run the actual action code

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL