composite

package
v0.2500.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package composite implements support for runtimes composed of multiple components, like having both on-chain and off-chain logic.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProvisioner added in v0.2403.0

func NewProvisioner(kinds map[component.TEEKind]host.Provisioner) host.Provisioner

NewProvisioner returns a new composite provisioner that dispatches to the actual provisioner based on the component kind.

Types

type Host added in v0.2500.0

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

func NewHost added in v0.2403.0

func NewHost(id common.Namespace) *Host

NewHost creates a new composite runtime host that consists of one aggregated RONL component runtime host and zero or more aggregated ROFL component runtime hosts.

func (*Host) Abort added in v0.2500.0

func (h *Host) Abort(ctx context.Context, force bool) error

Abort implements host.Runtime.

func (*Host) AddVersion added in v0.2500.0

func (h *Host) AddVersion(id component.ID, version version.Version, rt host.Runtime) error

AddVersion adds a new version of the runtime component.

func (*Host) Call added in v0.2500.0

func (h *Host) Call(ctx context.Context, body *protocol.Body) (*protocol.Body, error)

Call implements host.Runtime.

func (*Host) Component added in v0.2500.0

func (h *Host) Component(id component.ID) (*multi.Aggregate, bool)

Component implements host.CompositeRuntime.

func (*Host) Components added in v0.2500.0

func (h *Host) Components() map[component.ID]*multi.Aggregate

Components returns all runtime component hosts.

func (*Host) GetActiveVersion added in v0.2500.0

func (h *Host) GetActiveVersion() (*version.Version, error)

GetActiveVersion implements host.Runtime.

func (*Host) GetCapabilityTEE added in v0.2500.0

func (h *Host) GetCapabilityTEE() (*node.CapabilityTEE, error)

GetCapabilityTEE implements host.Runtime.

func (*Host) GetInfo added in v0.2500.0

func (h *Host) GetInfo(ctx context.Context) (*protocol.RuntimeInfoResponse, error)

GetInfo implements host.Runtime.

func (*Host) HasVersion added in v0.2500.0

func (h *Host) HasVersion(id component.ID, version version.Version) bool

HasVersion checks if the runtime component host exists for the given version.

func (*Host) ID added in v0.2500.0

func (h *Host) ID() common.Namespace

ID implements host.Runtime.

func (*Host) Start added in v0.2500.0

func (h *Host) Start()

Start implements host.Runtime.

func (*Host) Stop added in v0.2500.0

func (h *Host) Stop()

Stop implements host.Runtime.

func (*Host) UpdateCapabilityTEE added in v0.2500.0

func (h *Host) UpdateCapabilityTEE()

UpdateCapabilityTEE implements host.Runtime.

func (*Host) WatchEvents added in v0.2500.0

func (h *Host) WatchEvents() (<-chan *host.Event, pubsub.ClosableSubscription)

WatchEvents implements host.Runtime.

Jump to

Keyboard shortcuts

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