build

package
v0.0.0-...-8bebe21 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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var VendorList = map[string]VendorExecutor{
	"rust": &RustVendor{},
}

Functions

This section is empty.

Types

type Builder

type Builder struct {
	Manifest        *Manifest
	Nonce           string
	GitInfo         *misc.GitInfo
	OutputResult    *misc.MerkleTreeResult
	InputResult     *misc.MerkleTreeResult
	OutputMrenclave string
	// contains filtered or unexported fields
}

func NewBuilder

func NewBuilder(manifest *Manifest, nonce string, logOutput *misc.LogOutput) *Builder

func (*Builder) Build

func (b *Builder) Build() error

func (*Builder) Tar

func (b *Builder) Tar() (string, error)

func (*Builder) Vendor

func (b *Builder) Vendor() error

type Manifest

type Manifest struct {
	Language string          `json:"language"`
	Input    *ManifestInput  `json:"input"`
	Output   *ManifestOutput `json:"output"`
}

func NewManifest

func NewManifest(file string) (*Manifest, error)

type ManifestInput

type ManifestInput struct {
	Cmd    string   `json:"cmd"`
	Vendor string   `json:"vendor"`
	Env    []string `json:"env"`
}

type ManifestOutput

type ManifestOutput struct {
	SgxSignedSo string   `json:"sgx_signed_so"`
	Files       []string `json:"files"`
}

type RustVendor

type RustVendor struct{}

func (*RustVendor) Vendor

func (r *RustVendor) Vendor(log *misc.LogOutput) error

type VendorExecutor

type VendorExecutor interface {
	Vendor(log *misc.LogOutput) error
}

Jump to

Keyboard shortcuts

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