injector

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GPG

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

GPG is an injector that does gpg decryption on secret data It uses the local gpg cli

func NewGPG

func NewGPG(ctx context.Context) (*GPG, error)

NewGPG creates a new gpg injector

func (*GPG) Decrypt

func (i *GPG) Decrypt(
	b []byte,
) ([]byte, error)

Decrypt decrypts byte data with the local gpg cli

func (*GPG) Encrypt

func (i *GPG) Encrypt(
	keys []string,
	b []byte,
) ([]byte, error)

Encrypt encrypts byte data with the local gpg cli

func (*GPG) Inject

func (i *GPG) Inject(secret *corev1.Secret) (*corev1.Secret, error)

Inject satisfies the injector interface

type Injector

type Injector interface {
	Inject(*corev1.Secret) (*corev1.Secret, error)
}

Injector is a minimal interface to modify corev1.Secret

Jump to

Keyboard shortcuts

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