adminserver

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: 13 Imported by: 0

Documentation

Overview

Package adminserver contains the KeyTransparencyAdmin 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 implements pb.KeyTransparencyAdminServer

func New

func New(domains domain.Storage, logAdmin, mapAdmin tpb.TrillianAdminClient, keygen keys.ProtoGenerator) *Server

New returns a KeyTransparencyAdmin implementation.

func (*Server) CreateDomain

func (s *Server) CreateDomain(ctx context.Context, in *pb.CreateDomainRequest) (*pb.Domain, error)

CreateDomain reachs out to Trillian to produce new trees.

func (*Server) DeleteDomain

func (s *Server) DeleteDomain(ctx context.Context, in *pb.DeleteDomainRequest) (*google_protobuf.Empty, error)

DeleteDomain marks a domain as deleted, but does not immediately delete it.

func (*Server) GetDomain

func (s *Server) GetDomain(ctx context.Context, in *pb.GetDomainRequest) (*pb.Domain, error)

GetDomain retrieves the domain info for a given domain.

func (*Server) ListDomains

func (s *Server) ListDomains(ctx context.Context, in *pb.ListDomainsRequest) (*pb.ListDomainsResponse, error)

ListDomains produces a list of the configured domains

func (*Server) UndeleteDomain

func (s *Server) UndeleteDomain(ctx context.Context, in *pb.UndeleteDomainRequest) (*google_protobuf.Empty, error)

UndeleteDomain reactivates a deleted domain - provided that UndeleteDomain is called sufficiently soon after DeleteDomain.

Jump to

Keyboard shortcuts

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