Documentation
¶
Overview ¶
Package composite implements support for runtimes composed of multiple components, like having both on-chain and off-chain logic.
Index ¶
- func NewProvisioner(kinds map[component.TEEKind]host.Provisioner) host.Provisioner
- type Host
- func (h *Host) Abort(ctx context.Context, force bool) error
- func (h *Host) AddVersion(id component.ID, version version.Version, rt host.Runtime) error
- func (h *Host) Call(ctx context.Context, body *protocol.Body) (*protocol.Body, error)
- func (h *Host) Component(id component.ID) (*multi.Aggregate, bool)
- func (h *Host) Components() map[component.ID]*multi.Aggregate
- func (h *Host) GetActiveVersion() (*version.Version, error)
- func (h *Host) GetCapabilityTEE() (*node.CapabilityTEE, error)
- func (h *Host) GetInfo(ctx context.Context) (*protocol.RuntimeInfoResponse, error)
- func (h *Host) HasVersion(id component.ID, version version.Version) bool
- func (h *Host) ID() common.Namespace
- func (h *Host) Start()
- func (h *Host) Stop()
- func (h *Host) UpdateCapabilityTEE()
- func (h *Host) WatchEvents() (<-chan *host.Event, pubsub.ClosableSubscription)
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
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) AddVersion ¶ added in v0.2500.0
AddVersion adds a new version of the runtime component.
func (*Host) Components ¶ added in v0.2500.0
Components returns all runtime component hosts.
func (*Host) GetActiveVersion ¶ added in v0.2500.0
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) HasVersion ¶ added in v0.2500.0
HasVersion checks if the runtime component host exists for the given version.
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.