empty.go 1.0 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
package empty

import (
	"github.com/alibaba/inclavare-containers/shim/runtime/carrier"
	"github.com/containerd/containerd/runtime/v2/task"
)

var _ carrier.Carrier = &empty{}

type empty struct{}

func NewEmptyCarrier() (carrier.Carrier, error) {
	return &empty{}, nil
}

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

// BuildUnsignedEnclave impl Carrier.
func (c *empty) BuildUnsignedEnclave(req *task.CreateTaskRequest, args *carrier.BuildUnsignedEnclaveArgs) (
	unsignedEnclave string, err error) {
	return "", nil
}

// GenerateSigningMaterial impl Carrier.
func (c *empty) GenerateSigningMaterial(req *task.CreateTaskRequest, args *carrier.CommonArgs) (
	signingMaterial string, err error) {
	return "", nil
}

// CascadeEnclaveSignature impl Carrier.
func (c *empty) CascadeEnclaveSignature(req *task.CreateTaskRequest, args *carrier.CascadeEnclaveSignatureArgs) (
	signedEnclave string, err error) {
	return "", nil
}

// Cleanup impl Carrier.
func (c *empty) Cleanup() error {
	return nil
}