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

admin

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2017 License: Apache-2.0 Imports: 14 Imported by: 17

Documentation

Overview

Package admin contains the TrillianAdminServer implementation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server is an implementation of trillian.TrillianAdminServer.

func New

func New(registry extension.Registry) *Server

New returns a trillian.TrillianAdminServer implementation.

func (*Server) CreateTree

func (s *Server) CreateTree(ctx context.Context, request *trillian.CreateTreeRequest) (*trillian.Tree, error)

CreateTree implements trillian.TrillianAdminServer.CreateTree.

func (*Server) DeleteTree

DeleteTree implements trillian.TrillianAdminServer.DeleteTree.

func (*Server) GetTree

func (s *Server) GetTree(ctx context.Context, request *trillian.GetTreeRequest) (*trillian.Tree, error)

GetTree implements trillian.TrillianAdminServer.GetTree.

func (*Server) IsHealthy

func (s *Server) IsHealthy() error

IsHealthy returns nil if the server is healthy, error otherwise. TODO(Martin2112): This method (and the one in the log server) should probably have ctx as a param

func (*Server) ListTrees

ListTrees implements trillian.TrillianAdminServer.ListTrees.

func (*Server) UpdateTree

func (s *Server) UpdateTree(ctx context.Context, req *trillian.UpdateTreeRequest) (*trillian.Tree, error)

UpdateTree implements trillian.TrillianAdminServer.UpdateTree.

Jump to

Keyboard shortcuts

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