container

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2020 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const PBKDF2Iterations = 500001

PBKDF2Iterations is the default number of iterations for PBKDF2, 100k iterations. Nist recommends at least 10k, 1Passsword uses 100k.

View Source
const PBKDF2SaltSize = 16

PBKDF2SaltSize is the default size of the salt for PBKDF2, 128-bit salt.

Variables

This section is empty.

Functions

This section is empty.

Types

type IdentityTask

type IdentityTask struct {
	OutputWriter     tasks.WriterProvider
	Description      string
	PassPhrase       *memguard.LockedBuffer
	VaultTransitPath string
	VaultTransitKey  string
}

IdentityTask implements secret container identity creation task.

func (*IdentityTask) Run

func (t *IdentityTask) Run(ctx context.Context) error

Run the task.

type RecoverTask

type RecoverTask struct {
	JSONReader       tasks.ReaderProvider
	OutputWriter     tasks.WriterProvider
	PassPhrase       *memguard.LockedBuffer
	VaultTransitPath string
	VaultTransitKey  string
	JSONOutput       bool
}

RecoverTask implements secret container identity recovery task.

func (*RecoverTask) Run

func (t *RecoverTask) Run(ctx context.Context) error

Run the task.

type SealTask

type SealTask struct {
	ContainerReader          tasks.ReaderProvider
	SealedContainerWriter    tasks.WriterProvider
	OutputWriter             tasks.WriterProvider
	Identities               []string
	DCKDMasterKey            *memguard.LockedBuffer
	DCKDTarget               string
	JSONOutput               bool
	DisableContainerIdentity bool
}

SealTask implements secret container sealing task.

func (*SealTask) Run

func (t *SealTask) Run(ctx context.Context) error

Run the task.

type UnsealTask

type UnsealTask struct {
	ContainerReader tasks.ReaderProvider
	OutputWriter    tasks.WriterProvider
	ContainerKey    *memguard.LockedBuffer
}

UnsealTask implements secret container unsealing task.

func (*UnsealTask) Run

func (t *UnsealTask) Run(ctx context.Context) error

Run the task.

Jump to

Keyboard shortcuts

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