Documentation ¶
Overview ¶
Package adminserver contains the KeyTransparencyAdmin implementation
Index ¶
- type Server
- func (s *Server) CreateDomain(ctx context.Context, in *pb.CreateDomainRequest) (*pb.Domain, error)
- func (s *Server) DeleteDomain(ctx context.Context, in *pb.DeleteDomainRequest) (*google_protobuf.Empty, error)
- func (s *Server) GetDomain(ctx context.Context, in *pb.GetDomainRequest) (*pb.Domain, error)
- func (s *Server) ListDomains(ctx context.Context, in *pb.ListDomainsRequest) (*pb.ListDomainsResponse, error)
- func (s *Server) UndeleteDomain(ctx context.Context, in *pb.UndeleteDomainRequest) (*google_protobuf.Empty, error)
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 ¶
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) 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.
Click to show internal directories.
Click to hide internal directories.