rt

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Log = log.New(os.Stdout, "[EDB] ", log.LstdFlags)

Log provides edb's logging functionality before we enter MariaDB or after we exited from there

Functions

func RestoreStdoutAndStderr

func RestoreStdoutAndStderr() error

RestoreStdoutAndStderr restores the stdout/stderr which MariaDB redirected for its error log outputs after we returned from it

func SaveStdoutAndStderr

func SaveStdoutAndStderr() error

SaveStdoutAndStderr saves the stdout/stderr outputs before we call into MariaDB

Types

type Runtime

type Runtime interface {
	// IsEnclave tells the application if it is running in an enclave or not.
	IsEnclave() bool

	// GetRemoteReport gets a report signed by the enclave platform for use in remote attestation.
	GetRemoteReport(reportData []byte) ([]byte, error)

	// GetProductSealKey gets a key derived from the signer and product id of the enclave.
	GetProductSealKey() ([]byte, error)

	// RestartHostProcess restarts the process hosting this enclave.
	RestartHostProcess()
}

Runtime is an enclave runtime.

type RuntimeMock

type RuntimeMock struct{}

RuntimeMock is a Runtime mock.

func (RuntimeMock) GetProductSealKey

func (r RuntimeMock) GetProductSealKey() ([]byte, error)

GetProductSealKey gets a key derived from the signer and product id of the enclave.

func (RuntimeMock) GetRemoteReport

func (r RuntimeMock) GetRemoteReport(reportData []byte) ([]byte, error)

GetRemoteReport gets a report signed by the enclave platform for use in remote attestation.

func (RuntimeMock) IsEnclave

func (r RuntimeMock) IsEnclave() bool

IsEnclave tells the application if it is running in an enclave or not.

func (RuntimeMock) RestartHostProcess

func (RuntimeMock) RestartHostProcess()

RestartHostProcess restarts the process hosting this enclave.

Jump to

Keyboard shortcuts

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