ego

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitEgo

func InitEgo() error

func InitLocalEgo

func InitLocalEgo() error

Types

type EgoFs

type EgoFs struct {
	afero.OsFs
	// contains filtered or unexported fields
}
var Fs *EgoFs

func (*EgoFs) Decrypt

func (e *EgoFs) Decrypt(val []byte) ([]byte, error)

Decrypt implements libos.SecretFunction.

func (*EgoFs) Encrypt

func (e *EgoFs) Encrypt(val []byte) ([]byte, error)

Encrypt implements libos.SecretFunction.

func (*EgoFs) IssueReport

func (i *EgoFs) IssueReport(pk *core.Signer, data []byte) (*util.TeeParam, error)

func (*EgoFs) ReadFile

func (e *EgoFs) ReadFile(filename string) ([]byte, error)

Read implements util.Fs.

func (*EgoFs) VerifyReport

func (e *EgoFs) VerifyReport(workerReport *util.TeeParam) (*util.TeeReport, error)

func (*EgoFs) WriteFile

func (e *EgoFs) WriteFile(filename string, data []byte, perm os.FileMode) error

Write implements util.Fs.

Jump to

Keyboard shortcuts

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