graphene.go 1.3 KB
Newer Older
S
stormgbs 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
package graphene

import (
	"errors"

	"github.com/containerd/containerd/runtime/v2/task"

	"github.com/alibaba/inclavare-containers/shim/runtime/carrier"
)

var _ carrier.Carrier = &graphene{}

type graphene struct {
	//TODO
}

func NewGrapheneCarrier() (carrier.Carrier, error) {
	//TODO
	return nil, errors.New("Carrier graphene has not been implemented")
}

// Name impl Carrier.
func (c *graphene) Name() string {
	return "graphene"
}

// BuildUnsignedEnclave impl Carrier.
func (c *graphene) BuildUnsignedEnclave(req *task.CreateTaskRequest, args *carrier.BuildUnsignedEnclaveArgs) (
	unsignedEnclave string, err error) {
	//TODO
	return "", errors.New("graphene BuildUnsignedEnclave unimplemented")
}

// GenerateSigningMaterial impl Carrier.
func (c *graphene) GenerateSigningMaterial(req *task.CreateTaskRequest, args *carrier.CommonArgs) (
	signingMaterial string, err error) {
	//TODO
	return "", errors.New("graphene GenerateSigningMaterial unimplemented")
}

// CascadeEnclaveSignature impl Carrier.
func (c *graphene) CascadeEnclaveSignature(req *task.CreateTaskRequest, args *carrier.CascadeEnclaveSignatureArgs) (
	signedEnclave string, err error) {
	//TODO
	return "", errors.New("graphene CascadeEnclaveSignature unimplemented")
}

// Cleanup impl Carrier.
func (c *graphene) Cleanup() error {
	//TODO
	return errors.New("graphene Cleanup unimplemented")
}