actions

package
v0.0.0-...-8a88764 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Input flag
	Input = "input"
	// Output flag
	Output = "output"
	// Passwd flag
	Passwd = "passwd"
	// Generate flag
	Generate = "generate"
	// Use flag
	Use = "use"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	// contains filtered or unexported fields
}

Command instance allows to run ActionFunc

func (*Command) Decrypt

func (cmd *Command) Decrypt() error

Decrypt runs decryption

func (*Command) Encrypt

func (cmd *Command) Encrypt() error

Encrypt runs decryption

type CommandFactory

type CommandFactory struct{}

CommandFactory instance allows to create command

func NewCommandFactory

func NewCommandFactory() *CommandFactory

NewCommandFactory creates new factory instance for creating command

func (*CommandFactory) SetDecrypter

func (cf *CommandFactory) SetDecrypter(c *cli.Context) (*Command, error)

SetDecrypter sets decrypt direction command

func (*CommandFactory) SetEncrypter

func (cf *CommandFactory) SetEncrypter(c *cli.Context) (*Command, error)

SetEncrypter sets encrypt direction command

type DataPiper

type DataPiper interface {
	Pipe(rd io.Reader, wr io.Writer) error
}

Jump to

Keyboard shortcuts

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