libos

package
v0.0.0-...-042d267 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCertificate

func CreateCertificate(appId string) ([]byte, crypto.PrivateKey)

CreateCertificate create certificate

func GetLocalReport

func GetLocalReport(appId string, fs util.Fs) ([]byte, crypto.PrivateKey, []byte, error)

GetRemoteReport get remote report

func InitGramineEntry

func InitGramineEntry(chainAddr string, hostfs util.Fs) (string, error)

func PreLoad

func PreLoad(chainAddr string, fs util.Fs) error

func VerifyReport

func VerifyReport(workerReportWrap []byte, fs util.Fs) (*attestation.Report, error)

Types

type WorkerChannel

type WorkerChannel struct {
	TlsConfig *tls.Config
}

Worker 请求通道

func (*WorkerChannel) Get

func (w *WorkerChannel) Get(url string) ([]byte, error)

func (*WorkerChannel) Post

func (w *WorkerChannel) Post(url string, json string) ([]byte, error)

Jump to

Keyboard shortcuts

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