Documentation ¶
Index ¶
- Variables
- type Cli
- func (c *Cli) Bundle(filename string, outputFilename string) (reterr error)
- func (c *Cli) Env(filename string, args []string) int
- func (c *Cli) Install(ask func(string) bool, component string) error
- func (c *Cli) Marblerun(filename string) (int, error)
- func (c *Cli) Run(filename string, args []string) (int, error)
- func (c *Cli) Sign(filename string) error
- func (c *Cli) Signerid(path string) (string, error)
- func (c *Cli) Uniqueid(path string) (string, error)
Constants ¶
This section is empty.
Variables ¶
var ( ErrTargetNotSupported = errors.New("component not found") ErrInstallUserQuit = errors.New("user denied installation") ErrExitCodeValue = errors.New("exit code not 0") ErrSysInfoFail = errors.New("could not determine necessary details about operating system") )
var ErrFileHasNotBeenSignedYet = errors.New("enclave has not been signed yet with 'ego sign'")
ErrFileHasNotBeenSignedYet is returned when the enclave has not been signed yet with 'ego sign', which would create a non-functional bundle.
var ErrFileIsAlreadyBundled = errors.New("file is already bundled")
ErrFileIsAlreadyBundled is returned when the file is already bundled. Technically, the outer binary is not an enclave either, but this is a more specific error.
var ErrFileIsNotAnEGoBinary = errors.New("file is not an EGo Binary")
ErrFileIsNotAnEGoBinary is returned when the file is not an enclave, therefore cannot possibly be bundled.
var ErrLargeHeapWithSmallHeapSize = errors.New("large heap is enabled, but heapSize is too small")
ErrLargeHeapWithSmallHeapSize is returned when a binary is built with ego_largehap, but the heap size is set to less than 512MB.
var ErrNoLargeHeapWithLargeHeapSize = errors.New("this heapSize requires large heap mode")
ErrNoLargeHeapWithLargeHeapSize is returned when a binary is built without ego_largeheap, but the heap size is set to more than 16GB.
var ErrNoOEInfo = errors.New("could not find .oeinfo section")
ErrNoOEInfo defines an error when no .oeinfo section could be found. This likely occurs when the binary to sign was not built with ego-go.
var ErrUnsupportedImportEClient = errors.New("unsupported import: github.com/edgelesssys/ego/eclient")
ErrErrUnsupportedImportEClient is returned when an EGo binary uses the eclient package instead of the enclave package.
Functions ¶
This section is empty.
Types ¶
type Cli ¶
type Cli struct {
// contains filtered or unexported fields
}
Cli implements the ego commands.
func (*Cli) Bundle ¶
Bundle bundles an enclave with the currently installed EGo runtime into a single executable.
func (*Cli) Install ¶
Determine relevant information about os and sgx compatibility. Then pass them with osDetails to install