archive

package
v5.0.0-...-b98a0e9 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Overview

Package archive provides implementation of actions to work with archive files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompressAction

type CompressAction struct {
	tools.ScopedRouterConsumer
	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

GetDescription returns action description

func (*CompressAction) GetName

func (c *CompressAction) GetName() string

GetName returns this action unique identifier

func (*CompressAction) GetParametersForm

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

GetParametersForm returns a UX form

func (*CompressAction) Init

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

Init passes parameters to the action

func (*CompressAction) Run

Run the actual action code

func (*CompressAction) SetNodeFilterAsWalkFilter

func (c *CompressAction) SetNodeFilterAsWalkFilter(f *jobs.NodesSelector)

SetNodeFilterAsWalkFilter declares this action as RecursiveNodeWalkerAction

type ExtractAction

type ExtractAction struct {
	tools.ScopedRouterConsumer
	// contains filtered or unexported fields
}

func (*ExtractAction) GetDescription

func (ex *ExtractAction) GetDescription(_ ...string) actions.ActionDescription

GetDescription returns action description

func (*ExtractAction) GetName

func (ex *ExtractAction) GetName() string

GetName returns this action unique identifier

func (*ExtractAction) GetParametersForm

func (ex *ExtractAction) GetParametersForm() *forms.Form

GetParametersForm returns a UX form

func (*ExtractAction) Init

func (ex *ExtractAction) Init(job *jobs.Job, action *jobs.Action) error

Init passes parameters to the action

func (*ExtractAction) Run

Run the actual action code

Jump to

Keyboard shortcuts

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