Help us shape the future of Go! Take the 2026 Go Developer Survey

trillianclient

package
v1.5.5 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAndInitTree

func CreateAndInitTree(ctx context.Context, config GRPCConfig) (*trillian.Tree, error)

Types

type ClientManager added in v1.4.1

type ClientManager struct {
	// contains filtered or unexported fields
}

ClientManager creates and caches Trillian clients and their underlying gRPC connections.

func NewClientManager added in v1.4.1

func NewClientManager(treeIDToConfig map[int64]GRPCConfig, defaultConfig GRPCConfig) *ClientManager

NewClientManager creates a new ClientManager.

func (*ClientManager) Close added in v1.4.1

func (cm *ClientManager) Close() error

Close stops clients and closes underlying gRPC connections.

func (*ClientManager) GetClient added in v1.5.4

func (cm *ClientManager) GetClient(treeID int64) (internalclient.Client, error)

GetClient returns a Rekor Trillian client wrapper for the given tree ID.

type GRPCConfig added in v1.4.1

type GRPCConfig struct {
	Address             string
	Port                uint16
	TLSCACert           string
	UseSystemTrustStore bool
	GRPCServiceConfig   string
}

GRPCConfig holds the configuration for a gRPC client. Because all its fields are comparable, it can be used as a map key.

Jump to

Keyboard shortcuts

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