Documentation ¶
Index ¶
- Constants
- type Input
- type Meta
- func (m Meta) I(i []definitions.Input) (definitions.Input, error)
- func (m Meta) ID() string
- func (m Meta) M(me []definitions.Meta) (definitions.Meta, error)
- func (m Meta) O(o []definitions.Output) (definitions.Output, error)
- func (m Meta) P(p []definitions.Process) (definitions.Process, error)
- func (m Meta) Type() definitions.ResourceType
- type Output
- type Process
Constants ¶
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) 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 ¶
func (m Meta) I(i []definitions.Input) (definitions.Input, error)
I accepts inputs returning an input representing the given collection.
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 ¶
func (m Meta) O(o []definitions.Output) (definitions.Output, error)
O accepts outputs returning an output representing the given collection.
func (Meta) P ¶
func (m Meta) P(p []definitions.Process) (definitions.Process, error)
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 ¶
DoOutput will perform its function on each collection placed into the channel.
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) Type ¶
func (p Process) Type() definitions.ResourceType
Type defines what type of resource this is.