crypto1

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ID for this collection of resources.
	ID = "utilities/crypto/v1"

	// EncryptMode specifies that this resource will perfrom encryption.
	EncryptMode = "encrypt"
	// DecryptMode specifies that this resource will perform decryption.
	DecryptMode = "decrypt"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Input

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

Input is simple noop.

func (Input) DoInput

func (i Input) DoInput(ctx context.Context, ch chan<- events.Collection) error

DoInput will accept collections of events, passing them into the channel.

func (Input) ID

func (i Input) ID() string

ID defines what this thing is.

func (Input) Type

func (i Input) Type() definitions.ResourceType

Type defines what type of resource this is.

type Meta

type Meta struct {
	Mode     string `mapstructure:"mode"`     // Mode encrypt or decrypt.
	Password string `mapstructure:"password"` // Password for AES cipher.
}

Meta is simple noop.

func (Meta) I

I accepts inputs returning an input representing the given collection.

func (Meta) ID

func (m Meta) ID() string

ID defines what this thing is.

func (Meta) M

func (m Meta) M(me []definitions.Meta) (definitions.Meta, error)

M accepts meta resources returning a meta input for the given collection.

func (Meta) O

O accepts outputs returning an output representing the given collection.

func (Meta) P

P accepts process returning an process representing the given collection.

func (Meta) Type

func (m Meta) Type() definitions.ResourceType

Type defines what type of resource this is.

type Output

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

Output is simple noop.

func (Output) DoOutput

func (o Output) DoOutput(ctx context.Context, ch <-chan events.Collection) error

DoOutput will perform its function on each collection placed into the channel.

func (Output) ID

func (o Output) ID() string

ID defines what this thing is.

func (Output) Type

func (o Output) Type() definitions.ResourceType

Type defines what type of resource this is.

type Process

type Process struct {
}

Process is simple noop.

func (Process) DoProcess

func (p Process) DoProcess(ctx context.Context, ch1 <-chan events.Collection, ch2 chan<- events.Collection) error

DoProcess will perform its function, on each collection placed into the channel eventually passing a similar collection to the output.

func (Process) ID

func (p Process) ID() string

ID defines what this thing is.

func (Process) Type

func (p Process) Type() definitions.ResourceType

Type defines what type of resource this is.

Jump to

Keyboard shortcuts

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