libos

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: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultChainUrl string = "ws://wetee-node.worker-addon.svc.cluster.local:9944"

Functions

func CreateCertificate

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

CreateCertificate create certificate

func InitGramineEntry

func InitGramineEntry(hostfs util.Fs, isMain bool) (string, error)

func LocalLoad

func LocalLoad(fs util.Fs, isMain bool) error

func PreLoad

func PreLoad(fs util.Fs, isMain bool) error

func VerifyWorker

func VerifyWorker(reportData *util.TeeParam, fs util.Fs, client *chain.ChainClient) ([]byte, error)

VerifyWorker 函数验证工人报告并返回签名者或错误

Types

type TeeExecutor

type TeeExecutor struct {
	// contains filtered or unexported fields
}

func (*TeeExecutor) HandleTeeCall

func (e *TeeExecutor) HandleTeeCall(w http.ResponseWriter, r *http.Request)

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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