Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
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.