common

package
v0.2400.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KeyManagerRuntime

func KeyManagerRuntime(ctx *tmapi.Context, rtID common.Namespace) (*registry.Runtime, error)

KeyManagerRuntime looks up a runtime by its identifier and returns it if it exists and is a key manager.

func NodeRuntime

func NodeRuntime(n *node.Node, rtID common.Namespace) (*node.Runtime, error)

NodeRuntime searches for an existing supported runtime descriptor in the runtimes of the specified node and returns the first one found.

This is a helper function for fetching the key manager runtime, as key managers run exactly one version of the runtime.

func NodeRuntimes

func NodeRuntimes(nodes []*node.Node, rtID common.Namespace) []*node.Runtime

NodeRuntimes searches for existing supported runtime descriptors in the runtimes of the specified nodes.

If a node doesn't support the runtime, it is ignored.

func RuntimeAttestationKey

func RuntimeAttestationKey(nodeRt *node.Runtime, kmRt *registry.Runtime) (*signature.PublicKey, error)

RuntimeAttestationKey returns the runtime attestation key for the specified node runtime.

func RuntimeEncryptionKeys

func RuntimeEncryptionKeys(nodeRts []*node.Runtime, kmRt *registry.Runtime) map[x25519.PublicKey]struct{}

RuntimeEncryptionKeys returns the runtime encryption keys (REKs) for the specified node runtimes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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