Back to godoc.org

Package archive

v1.6.1
Latest Go to latest

The highest tagged major version is .

Published: Jul 9, 2019 | License: AGPL-3.0 | Module: github.com/EngineerIG/cells

Overview

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

Index

type CompressAction

type CompressAction struct {
	Router     *views.Router
	Format     string
	TargetName string
}

CompressAction implements compression. Currently, it supports zip, tar and tar.gz formats.

func (*CompressAction) GetName

func (c *CompressAction) GetName() string

GetName returns this action unique identifier

func (*CompressAction) Init

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

Init passes parameters to the action

func (*CompressAction) Run

func (c *CompressAction) Run(ctx context.Context, channels *actions.RunnableChannels, input jobs.ActionMessage) (jobs.ActionMessage, error)

Run the actual action code

type ExtractAction

type ExtractAction struct {
	Router     *views.Router
	Format     string
	TargetName string
}

func (*ExtractAction) GetName

func (ex *ExtractAction) GetName() string

GetName returns this action unique identifier

func (*ExtractAction) Init

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

Init passes parameters to the action

func (*ExtractAction) Run

func (ex *ExtractAction) Run(ctx context.Context, channels *actions.RunnableChannels, input jobs.ActionMessage) (jobs.ActionMessage, error)

Run the actual action code

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier