registry.go 247 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
package attestation

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
}