Documentation ¶
Overview ¶
Package trees contains the personality tree configuration.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TreeStorage ¶
type TreeStorage struct {
// contains filtered or unexported fields
}
TreeStorage allows access to the configuration.
func NewTreeStorage ¶
func NewTreeStorage(db *sql.DB) *TreeStorage
NewTreeStorage sets up a TreeStorage using the given DB.
func (*TreeStorage) EnsureTree ¶
func (s *TreeStorage) EnsureTree(ctx context.Context, conn grpc.ClientConnInterface) (*trillian.Tree, error)
EnsureTree gets the tree for this personality, creating it if necessary. Takes a connection to Trillian to use for initialization. This is only safe in a single-replica deployment. In a real production setup this provisioning would likely be done by a human ahead of time, or if this style of automatic deployment was required then some kind of locking would be required to ensure that only one log was created and used by all frontends.
Click to show internal directories.
Click to hide internal directories.