packager

package
v0.1.3-0...-617a0de Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Creator

type Creator func(prov Provider) (transport.Packager, error)

Creator method to create new packager service

type Packager

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

Packager is the basic implementation of Packager

func New

func New(ctx Provider) (*Packager, error)

New return new instance of LegacyKMS implementation

func (*Packager) PackMessage

func (bp *Packager) PackMessage(messageEnvelope *transport.Envelope) ([]byte, error)

PackMessage Pack a message for one or more recipients.

func (*Packager) UnpackMessage

func (bp *Packager) UnpackMessage(encMessage []byte) (*transport.Envelope, error)

UnpackMessage Unpack a message.

type PackerCreator

type PackerCreator struct {
	PackerName string
	Creator    packer.Creator
}

PackerCreator holds a creator function for a Packer and the name of the Packer's encoding method.

type Provider

type Provider interface {
	Packers() []packer.Packer
	PrimaryPacker() packer.Packer
	StorageProvider() storage.Provider
	VDRIRegistry() vdri.Registry
}

Provider contains dependencies for the base packager and is typically created by using aries.Context()

Jump to

Keyboard shortcuts

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