registry.go 313 字节
Newer Older
1
package attestation // import "github.com/opencontainers/runc/libenclave/attestation"
2 3 4 5 6 7 8 9 10 11 12 13 14

var registry []Registry

type Registry interface {
	Create(p map[string]string) (*Service, error)
}

func RegisterAttestation(reg Registry) error {
	// FIXME: check re-register
	registry = append(registry, reg)

	return nil
}