domain

package
v0.0.0-...-9be813a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL