Documentation ¶
Overview ¶
Package archive provides implementation of actions to work with archive files.
Index ¶
- type CompressAction
- func (c *CompressAction) GetDescription(lang ...string) actions.ActionDescription
- func (c *CompressAction) GetName() string
- func (c *CompressAction) GetParametersForm() *forms.Form
- func (c *CompressAction) Init(job *jobs.Job, cl client.Client, action *jobs.Action) error
- func (c *CompressAction) Run(ctx context.Context, channels *actions.RunnableChannels, ...) (jobs.ActionMessage, error)
- func (c *CompressAction) SetNodeFilterAsWalkFilter(f *jobs.NodesSelector)
- type ExtractAction
- func (ex *ExtractAction) GetDescription(lang ...string) actions.ActionDescription
- func (ex *ExtractAction) GetName() string
- func (ex *ExtractAction) GetParametersForm() *forms.Form
- func (ex *ExtractAction) Init(job *jobs.Job, cl client.Client, action *jobs.Action) error
- func (ex *ExtractAction) Run(ctx context.Context, channels *actions.RunnableChannels, ...) (jobs.ActionMessage, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompressAction ¶
type CompressAction struct { Router *views.Router Format string TargetName string // contains filtered or unexported fields }
CompressAction implements compression. Currently, it supports zip, tar and tar.gz formats.
func (*CompressAction) GetDescription ¶
func (c *CompressAction) GetDescription(lang ...string) actions.ActionDescription
func (*CompressAction) GetName ¶
func (c *CompressAction) GetName() string
GetName returns this action unique identifier
func (*CompressAction) GetParametersForm ¶
func (c *CompressAction) GetParametersForm() *forms.Form
func (*CompressAction) Run ¶
func (c *CompressAction) Run(ctx context.Context, channels *actions.RunnableChannels, input jobs.ActionMessage) (jobs.ActionMessage, error)
Run the actual action code
func (*CompressAction) SetNodeFilterAsWalkFilter ¶
func (c *CompressAction) SetNodeFilterAsWalkFilter(f *jobs.NodesSelector)
SetNodeFilterAsWalkFilter declares this action as RecursiveNodeWalkerAction
type ExtractAction ¶
func (*ExtractAction) GetDescription ¶
func (ex *ExtractAction) GetDescription(lang ...string) actions.ActionDescription
func (*ExtractAction) GetName ¶
func (ex *ExtractAction) GetName() string
GetName returns this action unique identifier
func (*ExtractAction) GetParametersForm ¶
func (ex *ExtractAction) GetParametersForm() *forms.Form
func (*ExtractAction) Run ¶
func (ex *ExtractAction) Run(ctx context.Context, channels *actions.RunnableChannels, input jobs.ActionMessage) (jobs.ActionMessage, error)
Run the actual action code
Click to show internal directories.
Click to hide internal directories.