trees

package
v0.0.0-...-d12bbc4 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0, Apache-2.0 Imports: 9 Imported by: 0

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.

Jump to

Keyboard shortcuts

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