client

package
v0.2012.2 Latest Latest
Warning

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

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

Documentation

Overview

Package client implements the key manager client.

Index

Constants

This section is empty.

Variables

View Source
var ErrKeyManagerNotAvailable = errors.New("keymanager/client: key manager not available")

ErrKeyManagerNotAvailable is the error when a key manager is not available.

Functions

This section is empty.

Types

type Client

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

Client is a key manager client instance.

func New

func New(
	ctx context.Context,
	runtime runtimeRegistry.Runtime,
	backend api.Backend,
	registry registry.Backend,
	identity *identity.Identity,
) (*Client, error)

New creates a new key manager client instance.

func (*Client) CallRemote

func (c *Client) CallRemote(ctx context.Context, data []byte) ([]byte, error)

CallRemote calls the key manager via remote EnclaveRPC.

func (*Client) Initialized

func (c *Client) Initialized() <-chan struct{}

Initialized returns a channel that is closed when the key manager client is initialized.

Jump to

Keyboard shortcuts

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