util

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExitWithMsg

func ExitWithMsg(format string, args ...interface{})

func GetEnv

func GetEnv(key string, defaultValue string) string

func GetKey

func GetKey(sfs Fs, filename string) (subkey.KeyPair, error)

func GetLibOS

func GetLibOS() (string, error)

func GetRootDir

func GetRootDir() string

func LogWithRed

func LogWithRed(tag string, a ...interface{})

func SetKey

func SetKey(sfs Fs, appKey subkey.KeyPair, filename string) error

Types

type Fs

type Fs interface {
	afero.Fs
	ReadFile(filename string) ([]byte, error)
	WriteFile(filename string, data []byte, perm os.FileMode) error

	SetPassword(password string)

	VerifyReport(reportBytes, certBytes, signer []byte) (*attestation.Report, error)
	IssueReport(cert []byte) ([]byte, error)
}

type GramineQuoteIssuer

type GramineQuoteIssuer struct{}

GramineQuoteIssuer issues quotes.

func (GramineQuoteIssuer) Issue

func (GramineQuoteIssuer) Issue(cert []byte) ([]byte, error)

Issue issues a quote for remote attestation for a given message (usually a certificate).

type LoadParam

type LoadParam struct {
	Address   string
	Time      string
	Signature string
	Cert      []byte
	Report    []byte
}

请求开始TEE容器

type Secrets

type Secrets struct {
	Files map[string]string
	Env   map[string]string
}

去中心化的机密注入

Jump to

Keyboard shortcuts

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