utils

package
v0.0.0-...-7e58823 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MRENCLAVE_HASH_SIZE = 32
	MRSINGER_HASH_SIZE  = 32
	MANAGE_POOL_MAXSIZE = 2048
	ManageCmd1          = "GETENCLAVEINFO"
)

Variables

View Source
var ReceiveMsgLen uint = 0

Functions

func BuildTargetSrc

func BuildTargetSrc(path string) bool

func CheckGit

func CheckGit() bool

precheck if git is ready

func CheckPath

func CheckPath(path string) bool

check if local directory exist;

func ConstructSendmsg

func ConstructSendmsg(cmd string) ([]byte, uint, error)

func ExecShell

func ExecShell(cmdstring string) (retstr string, ret bool)

bash cmd exec

func GetSrcCode

func GetSrcCode(srcurl string, branch string, commitid string, localpath string) bool

download target source code to local path

func ParseReceiveMsg

func ParseReceiveMsg(cmd string) (interface{}, error)

Types

type EnclaveInfo

type EnclaveInfo struct {
	Id        string `json:"id,omitempty"`
	Message   string `json:"message,omitempty"`
	Mrenclave string `json:"mrenclave,omitempty"`
	Mrsigner  string `json:"mrsigner,omitempty"`
	Version   uint8  `json:"version,omitempty"`
}

type GetEnclaveInfo

type GetEnclaveInfo struct {
	MsgType string `json:"type"`
}

Jump to

Keyboard shortcuts

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