transformers

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base64DecodeHandler

type Base64DecodeHandler struct{}

Base64DecodeHandler handles base64 decoding of data

func (*Base64DecodeHandler) Handle

func (h *Base64DecodeHandler) Handle(secret string) (string, error)

Handle handles decoding of base64 encoded data

type Base64EncodeHandler

type Base64EncodeHandler struct{}

Base64EncodeHandler handles base64 encoding of data

func (*Base64EncodeHandler) Handle

func (h *Base64EncodeHandler) Handle(secret string) (string, error)

Handle encode secrets as a base64 encoded string

type TransformationHandler

type TransformationHandler interface {
	Handle(string) (string, error)
}

TransformationHandler handles transformation of Azure Key Vault data

type Transformator

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

Transformator

func CreateTransformator

func CreateTransformator(spec *akvs.AzureKeyVaultOutput) (*Transformator, error)

CreateTransformator creates a new Transformator ready to run transformation handlers

func (*Transformator) Transform

func (t *Transformator) Transform(secret string) (string, error)

type TrimHandler

type TrimHandler struct{}

TrimHandler handles standar trimming of string data

func (*TrimHandler) Handle

func (h *TrimHandler) Handle(secret string) (string, error)

Handle handles trimming empty spaces from secret

Jump to

Keyboard shortcuts

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