Documentation ¶
Overview ¶
Package domain stores multi-tenancy configuration information.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Domain ¶
type Domain struct { Domain string MapID int64 LogID int64 VRF *keyspb.PublicKey VRFPriv proto.Message MinInterval, MaxInterval time.Duration // TODO(gbelvin): specify mutation function Deleted bool }
Domain stores configuration information for a single Key Transparency instance.
type Storage ¶
type Storage interface { // List returns the full list of domains. List(ctx context.Context, deleted bool) ([]*Domain, error) // Write stores a new instance to storage. Write(ctx context.Context, d *Domain) error // Read a configuration from storage. Read(ctx context.Context, domainID string, showDeleted bool) (*Domain, error) // Delete and undelete. SetDelete(ctx context.Context, domainID string, isDeleted bool) error }
Storage is an interface for storing multi-tenant configuration information.
Click to show internal directories.
Click to hide internal directories.