container

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IdentityTask

type IdentityTask struct {
	OutputWriter tasks.WriterProvider
	Description  string
	Transformer  value.Transformer
	Version      IdentityVersion
}

IdentityTask implements secret container identity creation task.

func (*IdentityTask) Run

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

Run the task.

type IdentityVersion

type IdentityVersion uint
const (
	LegacyIdentity IdentityVersion = 1
	ModernIdentity IdentityVersion = 2
	NISTIdentity   IdentityVersion = 3
)

type RecoverTask

type RecoverTask struct {
	JSONReader   tasks.ReaderProvider
	OutputWriter tasks.WriterProvider
	Transformer  value.Transformer
	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
	PeerPublicKeys           []string
	DCKDMasterKey            string
	DCKDTarget               string
	JSONOutput               bool
	DisableContainerIdentity bool
	SealVersion              uint
	PreSharedKey             *memguard.LockedBuffer
}

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
	PreSharedKey    *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