Documentation
¶
Index ¶
- func ComputeComponentIdentity(bnd *bundle.Bundle, comp *bundle.Component) ([]bundle.Identity, error)
- func ComputeEnclaveIdentity(bnd *bundle.Bundle, compID string) ([]bundle.Identity, error)
- func GetOrcFilename(manifest *rofl.Manifest, deploymentName string) string
- func GetRegisteredEnclaves(ctx context.Context, rawAppID string, npa *common.NPASelection) (map[sgx.EnclaveIdentity]struct{}, error)
- func LoadManifestAndSetNPA(cfg *config.Config, npa *common.NPASelection, deployment string, ...) (*rofl.Manifest, *rofl.Deployment)
- func MaybeLoadManifestAndSetNPA(cfg *config.Config, npa *common.NPASelection, deployment string, ...) (*rofl.Manifest, *rofl.Deployment, error)
- type ManifestOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeComponentIdentity ¶ added in v0.12.1
func ComputeComponentIdentity(bnd *bundle.Bundle, comp *bundle.Component) ([]bundle.Identity, error)
ComputeComponentIdentity computes the enclave identity of the given component.
func ComputeEnclaveIdentity ¶
ComputeEnclaveIdentity computes the enclave identity of the given ROFL components. If no specific component ID is passed, it uses the first ROFL component.
func GetOrcFilename ¶ added in v0.12.1
GetOrcFilename generates a filename based on the project name and deployment.
func GetRegisteredEnclaves ¶ added in v0.12.1
func GetRegisteredEnclaves(ctx context.Context, rawAppID string, npa *common.NPASelection) (map[sgx.EnclaveIdentity]struct{}, error)
GetRegisteredEnclaves retrieves currently registered on-chain enclaves for the given deployment.
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.