common

package
v0.11.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeEnclaveIdentity

func ComputeEnclaveIdentity(bnd *bundle.Bundle, compID string) ([]sgx.EnclaveIdentity, error)

ComputeEnclaveIdentity computes the enclave identity of the given ROFL components. If no specific component ID is passed, it uses the first ROFL component.

func LoadManifestAndSetNPA

func LoadManifestAndSetNPA(cfg *config.Config, npa *common.NPASelection, deployment string, opts *ManifestOptions) (*rofl.Manifest, *rofl.Deployment)

LoadManifestAndSetNPA loads the ROFL app manifest and reconfigures the network/paratime/account selection.

In case there is an error in loading the manifest, it aborts the application.

func MaybeLoadManifestAndSetNPA

func MaybeLoadManifestAndSetNPA(cfg *config.Config, npa *common.NPASelection, deployment string, opts *ManifestOptions) (*rofl.Manifest, *rofl.Deployment, error)

MaybeLoadManifestAndSetNPA loads the ROFL app manifest and reconfigures the network/paratime/account selection.

In case there is an error in loading the manifest, it is returned.

Types

type ManifestOptions added in v0.11.1

type ManifestOptions struct {
	// NeedAppID specifies whether a configured app ID is required in the manifest.
	NeedAppID bool
	// NeedAdmin specifies whether a valid admin is required in the manifest. In case this is set to
	// false and the admin account does not exist, the account will not be modified.
	NeedAdmin bool
}

ManifestOptions configures the manifest options.

Jump to

Keyboard shortcuts

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