keytransparency_go_proto

package
Version: v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2020 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Overview

Package keytransparency_go_proto is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package keytransparency_go_proto is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package keytransparency_go_proto is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var File_v1_admin_proto protoreflect.FileDescriptor
View Source
var File_v1_frontend_proto protoreflect.FileDescriptor
View Source
var File_v1_keytransparency_proto protoreflect.FileDescriptor

Functions

func RegisterKeyTransparencyAdminHandler

func RegisterKeyTransparencyAdminHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterKeyTransparencyAdminHandler registers the http handlers for service KeyTransparencyAdmin to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterKeyTransparencyAdminHandlerClient

func RegisterKeyTransparencyAdminHandlerClient(ctx context.Context, mux *runtime.ServeMux, client KeyTransparencyAdminClient) error

RegisterKeyTransparencyAdminHandlerClient registers the http handlers for service KeyTransparencyAdmin to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "KeyTransparencyAdminClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "KeyTransparencyAdminClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "KeyTransparencyAdminClient" to call the correct interceptors.

func RegisterKeyTransparencyAdminHandlerFromEndpoint

func RegisterKeyTransparencyAdminHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterKeyTransparencyAdminHandlerFromEndpoint is same as RegisterKeyTransparencyAdminHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterKeyTransparencyAdminHandlerServer added in v0.3.0

func RegisterKeyTransparencyAdminHandlerServer(ctx context.Context, mux *runtime.ServeMux, server KeyTransparencyAdminServer) error

RegisterKeyTransparencyAdminHandlerServer registers the http handlers for service KeyTransparencyAdmin to "mux". UnaryRPC :call KeyTransparencyAdminServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.

func RegisterKeyTransparencyAdminServer

func RegisterKeyTransparencyAdminServer(s *grpc.Server, srv KeyTransparencyAdminServer)

func RegisterKeyTransparencyFrontendHandler

func RegisterKeyTransparencyFrontendHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterKeyTransparencyFrontendHandler registers the http handlers for service KeyTransparencyFrontend to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterKeyTransparencyFrontendHandlerClient

func RegisterKeyTransparencyFrontendHandlerClient(ctx context.Context, mux *runtime.ServeMux, client KeyTransparencyFrontendClient) error

RegisterKeyTransparencyFrontendHandlerClient registers the http handlers for service KeyTransparencyFrontend to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "KeyTransparencyFrontendClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "KeyTransparencyFrontendClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "KeyTransparencyFrontendClient" to call the correct interceptors.

func RegisterKeyTransparencyFrontendHandlerFromEndpoint

func RegisterKeyTransparencyFrontendHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterKeyTransparencyFrontendHandlerFromEndpoint is same as RegisterKeyTransparencyFrontendHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterKeyTransparencyFrontendHandlerServer added in v0.3.0

func RegisterKeyTransparencyFrontendHandlerServer(ctx context.Context, mux *runtime.ServeMux, server KeyTransparencyFrontendServer) error

RegisterKeyTransparencyFrontendHandlerServer registers the http handlers for service KeyTransparencyFrontend to "mux". UnaryRPC :call KeyTransparencyFrontendServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.

func RegisterKeyTransparencyFrontendServer

func RegisterKeyTransparencyFrontendServer(s *grpc.Server, srv KeyTransparencyFrontendServer)

func RegisterKeyTransparencyHandler

func RegisterKeyTransparencyHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterKeyTransparencyHandler registers the http handlers for service KeyTransparency to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterKeyTransparencyHandlerClient

func RegisterKeyTransparencyHandlerClient(ctx context.Context, mux *runtime.ServeMux, client KeyTransparencyClient) error

RegisterKeyTransparencyHandlerClient registers the http handlers for service KeyTransparency to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "KeyTransparencyClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "KeyTransparencyClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "KeyTransparencyClient" to call the correct interceptors.

func RegisterKeyTransparencyHandlerFromEndpoint

func RegisterKeyTransparencyHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterKeyTransparencyHandlerFromEndpoint is same as RegisterKeyTransparencyHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterKeyTransparencyHandlerServer added in v0.3.0

func RegisterKeyTransparencyHandlerServer(ctx context.Context, mux *runtime.ServeMux, server KeyTransparencyServer) error

RegisterKeyTransparencyHandlerServer registers the http handlers for service KeyTransparency to "mux". UnaryRPC :call KeyTransparencyServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.

func RegisterKeyTransparencyServer

func RegisterKeyTransparencyServer(s *grpc.Server, srv KeyTransparencyServer)

Types

type BatchGetUserIndexRequest

type BatchGetUserIndexRequest struct {

	// directory_id identifies the directory in which the users live.
	DirectoryId string `protobuf:"bytes,1,opt,name=directory_id,json=directoryId,proto3" json:"directory_id,omitempty"`
	// user_ids are the user identifiers
	UserIds []string `protobuf:"bytes,2,rep,name=user_ids,json=userIds,proto3" json:"user_ids,omitempty"`
	// contains filtered or unexported fields
}

BatchGetUserIndexRequest identifies a set of users.

func (*BatchGetUserIndexRequest) Descriptor deprecated

func (*BatchGetUserIndexRequest) Descriptor() ([]byte, []int)

Deprecated: Use BatchGetUserIndexRequest.ProtoReflect.Descriptor instead.

func (*BatchGetUserIndexRequest) GetDirectoryId

func (x *BatchGetUserIndexRequest) GetDirectoryId() string

func (*BatchGetUserIndexRequest) GetUserIds

func (x *BatchGetUserIndexRequest) GetUserIds() []string

func (*BatchGetUserIndexRequest) ProtoMessage

func (*BatchGetUserIndexRequest) ProtoMessage()

func (*BatchGetUserIndexRequest) ProtoReflect added in v0.3.0

func (x *BatchGetUserIndexRequest) ProtoReflect() protoreflect.Message

func (*BatchGetUserIndexRequest) Reset

func (x *BatchGetUserIndexRequest) Reset()

func (*BatchGetUserIndexRequest) String

func (x *BatchGetUserIndexRequest) String() string

type BatchGetUserIndexResponse

type BatchGetUserIndexResponse struct {

	// proofs is a map from user_id to its VRF proof.
	// Clients get the index by verifying the VRF proof.
	Proofs map[string][]byte `` /* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

BatchGetUserIndexRequest identifies a single user.

func (*BatchGetUserIndexResponse) Descriptor deprecated

func (*BatchGetUserIndexResponse) Descriptor() ([]byte, []int)

Deprecated: Use BatchGetUserIndexResponse.ProtoReflect.Descriptor instead.

func (*BatchGetUserIndexResponse) GetProofs

func (x *BatchGetUserIndexResponse) GetProofs() map[string][]byte

func (*BatchGetUserIndexResponse) ProtoMessage

func (*BatchGetUserIndexResponse) ProtoMessage()

func (*BatchGetUserIndexResponse) ProtoReflect added in v0.3.0

func (*BatchGetUserIndexResponse) Reset

func (x *BatchGetUserIndexResponse) Reset()

func (*BatchGetUserIndexResponse) String

func (x *BatchGetUserIndexResponse) String() string

type BatchGetUserRequest

type BatchGetUserRequest struct {

	// directory_id identifies the directory in which the users live.
	DirectoryId string `protobuf:"bytes,1,opt,name=directory_id,json=directoryId,proto3" json:"directory_id,omitempty"`
	// user_ids are the user identifiers, the format for which is defined by the
	// application.
	UserIds []string `protobuf:"bytes,2,rep,name=user_ids,json=userIds,proto3" json:"user_ids,omitempty"`
	// last_verified is the last log root the client verified.
	// Omitting this field will omit the log consistency proof from the response.
	LastVerified *LogRootRequest `protobuf:"bytes,4,opt,name=last_verified,json=lastVerified,proto3" json:"last_verified,omitempty"`
	// contains filtered or unexported fields
}

BatchGetUserRequest contains multiple user_ids to fetch.

func (*BatchGetUserRequest) Descriptor deprecated

func (*BatchGetUserRequest) Descriptor() ([]byte, []int)

Deprecated: Use BatchGetUserRequest.ProtoReflect.Descriptor instead.

func (*BatchGetUserRequest) GetDirectoryId

func (x *BatchGetUserRequest) GetDirectoryId() string

func (*BatchGetUserRequest) GetLastVerified

func (x *BatchGetUserRequest) GetLastVerified() *LogRootRequest

func (*BatchGetUserRequest) GetUserIds

func (x *BatchGetUserRequest) GetUserIds() []string

func (*BatchGetUserRequest) ProtoMessage

func (*BatchGetUserRequest) ProtoMessage()

func (*BatchGetUserRequest) ProtoReflect added in v0.3.0

func (x *BatchGetUserRequest) ProtoReflect() protoreflect.Message

func (*BatchGetUserRequest) Reset

func (x *BatchGetUserRequest) Reset()

func (*BatchGetUserRequest) String

func (x *BatchGetUserRequest) String() string

type BatchGetUserResponse

type BatchGetUserResponse struct {

	// revision is the most recently published revision.
	Revision *Revision `protobuf:"bytes,1,opt,name=revision,proto3" json:"revision,omitempty"`
	// map_leaves_by_user_id is a map from user_id to the map leaf at the most
	// recently published revision.
	MapLeavesByUserId map[string]*MapLeaf `` /* 206-byte string literal not displayed */
	// contains filtered or unexported fields
}

BatchGetUserResponse contains the leaf entries for a set of users at the most recently published revision.

func (*BatchGetUserResponse) Descriptor deprecated

func (*BatchGetUserResponse) Descriptor() ([]byte, []int)

Deprecated: Use BatchGetUserResponse.ProtoReflect.Descriptor instead.

func (*BatchGetUserResponse) GetMapLeavesByUserId

func (x *BatchGetUserResponse) GetMapLeavesByUserId() map[string]*MapLeaf

func (*BatchGetUserResponse) GetRevision

func (x *BatchGetUserResponse) GetRevision() *Revision

func (*BatchGetUserResponse) ProtoMessage

func (*BatchGetUserResponse) ProtoMessage()

func (*BatchGetUserResponse) ProtoReflect added in v0.3.0

func (x *BatchGetUserResponse) ProtoReflect() protoreflect.Message

func (*BatchGetUserResponse) Reset

func (x *BatchGetUserResponse) Reset()

func (*BatchGetUserResponse) String

func (x *BatchGetUserResponse) String() string

type BatchListUserRevisionsRequest

type BatchListUserRevisionsRequest struct {

	// directory_id identifies the directory in which the users live.
	DirectoryId string `protobuf:"bytes,1,opt,name=directory_id,json=directoryId,proto3" json:"directory_id,omitempty"`
	// user_ids are the user identifiers.
	UserIds []string `protobuf:"bytes,2,rep,name=user_ids,json=userIds,proto3" json:"user_ids,omitempty"`
	// start_revision is the starting revision.
	StartRevision int64 `protobuf:"varint,3,opt,name=start_revision,json=startRevision,proto3" json:"start_revision,omitempty"`
	// end_revision is the ending epoch.
	EndRevision int64 `protobuf:"varint,4,opt,name=end_revision,json=endRevision,proto3" json:"end_revision,omitempty"`
	// page_size is the maximum number of entries to return. If page_size is
	// unspecified, the server will decide how to paginate results.
	PageSize int32 `protobuf:"varint,5,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// page_token is a continuation token for paginating through results.
	PageToken string `protobuf:"bytes,6,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// last_verified is the last log root the client verified.
	// Omitting this field will omit the log consistency proof from the response.
	LastVerified *LogRootRequest `protobuf:"bytes,8,opt,name=last_verified,json=lastVerified,proto3" json:"last_verified,omitempty"`
	// contains filtered or unexported fields
}

BatchListUserRevisionsRequest contains a list of users and a range of revisions.

func (*BatchListUserRevisionsRequest) Descriptor deprecated

func (*BatchListUserRevisionsRequest) Descriptor() ([]byte, []int)

Deprecated: Use BatchListUserRevisionsRequest.ProtoReflect.Descriptor instead.

func (*BatchListUserRevisionsRequest) GetDirectoryId

func (x *BatchListUserRevisionsRequest) GetDirectoryId() string

func (*BatchListUserRevisionsRequest) GetEndRevision

func (x *BatchListUserRevisionsRequest) GetEndRevision() int64

func (*BatchListUserRevisionsRequest) GetLastVerified

func (x *BatchListUserRevisionsRequest) GetLastVerified() *LogRootRequest

func (*BatchListUserRevisionsRequest) GetPageSize

func (x *BatchListUserRevisionsRequest) GetPageSize() int32

func (*BatchListUserRevisionsRequest) GetPageToken

func (x *BatchListUserRevisionsRequest) GetPageToken() string

func (*BatchListUserRevisionsRequest) GetStartRevision

func (x *BatchListUserRevisionsRequest) GetStartRevision() int64

func (*BatchListUserRevisionsRequest) GetUserIds

func (x *BatchListUserRevisionsRequest) GetUserIds() []string

func (*BatchListUserRevisionsRequest) ProtoMessage

func (*BatchListUserRevisionsRequest) ProtoMessage()

func (*BatchListUserRevisionsRequest) ProtoReflect added in v0.3.0

func (*BatchListUserRevisionsRequest) Reset

func (x *BatchListUserRevisionsRequest) Reset()

func (*BatchListUserRevisionsRequest) String

type BatchListUserRevisionsResponse

type BatchListUserRevisionsResponse struct {

	// latest_log_root contains the latest log root and its consistency proof.
	LatestLogRoot *LogRoot `protobuf:"bytes,1,opt,name=latest_log_root,json=latestLogRoot,proto3" json:"latest_log_root,omitempty"`
	// map_revisions is a list of map revisions.  At most page_size revisions will be returned.
	MapRevisions []*BatchMapRevision `protobuf:"bytes,2,rep,name=map_revisions,json=mapRevisions,proto3" json:"map_revisions,omitempty"`
	// contains filtered or unexported fields
}

BatchListUserRevisionsResponse contains multiple map leaves across multiple revisions.

func (*BatchListUserRevisionsResponse) Descriptor deprecated

func (*BatchListUserRevisionsResponse) Descriptor() ([]byte, []int)

Deprecated: Use BatchListUserRevisionsResponse.ProtoReflect.Descriptor instead.

func (*BatchListUserRevisionsResponse) GetLatestLogRoot

func (x *BatchListUserRevisionsResponse) GetLatestLogRoot() *LogRoot

func (*BatchListUserRevisionsResponse) GetMapRevisions

func (x *BatchListUserRevisionsResponse) GetMapRevisions() []*BatchMapRevision

func (*BatchListUserRevisionsResponse) ProtoMessage

func (*BatchListUserRevisionsResponse) ProtoMessage()

func (*BatchListUserRevisionsResponse) ProtoReflect added in v0.3.0

func (*BatchListUserRevisionsResponse) Reset

func (x *BatchListUserRevisionsResponse) Reset()

func (*BatchListUserRevisionsResponse) String

type BatchMapRevision

type BatchMapRevision struct {

	// map_root contains the map root and its inclusion in the log.
	MapRoot *MapRoot `protobuf:"bytes,1,opt,name=map_root,json=mapRoot,proto3" json:"map_root,omitempty"`
	// map_leaves_by_user_id contains a mapping from user_id to the map leaf at
	// this revision.
	MapLeavesByUserId map[string]*MapLeaf `` /* 206-byte string literal not displayed */
	// contains filtered or unexported fields
}

BatchMapRevision contains a set of map leaves at a speific revision.

func (*BatchMapRevision) Descriptor deprecated

func (*BatchMapRevision) Descriptor() ([]byte, []int)

Deprecated: Use BatchMapRevision.ProtoReflect.Descriptor instead.

func (*BatchMapRevision) GetMapLeavesByUserId

func (x *BatchMapRevision) GetMapLeavesByUserId() map[string]*MapLeaf

func (*BatchMapRevision) GetMapRoot

func (x *BatchMapRevision) GetMapRoot() *MapRoot

func (*BatchMapRevision) ProtoMessage

func (*BatchMapRevision) ProtoMessage()

func (*BatchMapRevision) ProtoReflect added in v0.3.0

func (x *BatchMapRevision) ProtoReflect() protoreflect.Message

func (*BatchMapRevision) Reset

func (x *BatchMapRevision) Reset()

func (*BatchMapRevision) String

func (x *BatchMapRevision) String() string

type BatchQueueUserUpdateRequest

type BatchQueueUserUpdateRequest struct {

	// directory_id identifies the directory in which the users live.
	DirectoryId string `protobuf:"bytes,1,opt,name=directory_id,json=directoryId,proto3" json:"directory_id,omitempty"`
	// updates contains user updates.
	Updates []*EntryUpdate `protobuf:"bytes,2,rep,name=updates,proto3" json:"updates,omitempty"`
	// contains filtered or unexported fields
}

BatchQueueUserUpdateRequest enqueues multiple changes to user profiles.

func (*BatchQueueUserUpdateRequest) Descriptor deprecated

func (*BatchQueueUserUpdateRequest) Descriptor() ([]byte, []int)

Deprecated: Use BatchQueueUserUpdateRequest.ProtoReflect.Descriptor instead.

func (*BatchQueueUserUpdateRequest) GetDirectoryId

func (x *BatchQueueUserUpdateRequest) GetDirectoryId() string

func (*BatchQueueUserUpdateRequest) GetUpdates

func (x *BatchQueueUserUpdateRequest) GetUpdates() []*EntryUpdate

func (*BatchQueueUserUpdateRequest) ProtoMessage

func (*BatchQueueUserUpdateRequest) ProtoMessage()

func (*BatchQueueUserUpdateRequest) ProtoReflect added in v0.3.0

func (*BatchQueueUserUpdateRequest) Reset

func (x *BatchQueueUserUpdateRequest) Reset()

func (*BatchQueueUserUpdateRequest) String

func (x *BatchQueueUserUpdateRequest) String() string

type Committed

type Committed struct {

	// key is the 16 byte random commitment key.
	Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// data is the data being committed to.
	Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

Committed represents the data committed to in a cryptographic commitment. commitment = HMAC_SHA512_256(key, data)

func (*Committed) Descriptor deprecated

func (*Committed) Descriptor() ([]byte, []int)

Deprecated: Use Committed.ProtoReflect.Descriptor instead.

func (*Committed) GetData

func (x *Committed) GetData() []byte

func (*Committed) GetKey

func (x *Committed) GetKey() []byte

func (*Committed) ProtoMessage

func (*Committed) ProtoMessage()

func (*Committed) ProtoReflect added in v0.3.0

func (x *Committed) ProtoReflect() protoreflect.Message

func (*Committed) Reset

func (x *Committed) Reset()

func (*Committed) String

func (x *Committed) String() string

type CreateDirectoryRequest

type CreateDirectoryRequest struct {
	DirectoryId string             `protobuf:"bytes,1,opt,name=directory_id,json=directoryId,proto3" json:"directory_id,omitempty"`
	MinInterval *duration.Duration `protobuf:"bytes,2,opt,name=min_interval,json=minInterval,proto3" json:"min_interval,omitempty"`
	MaxInterval *duration.Duration `protobuf:"bytes,3,opt,name=max_interval,json=maxInterval,proto3" json:"max_interval,omitempty"`
	// The private_key fields allows callers to set the private key.
	VrfPrivateKey *any.Any `protobuf:"bytes,4,opt,name=vrf_private_key,json=vrfPrivateKey,proto3" json:"vrf_private_key,omitempty"`
	LogPrivateKey *any.Any `protobuf:"bytes,5,opt,name=log_private_key,json=logPrivateKey,proto3" json:"log_private_key,omitempty"`
	MapPrivateKey *any.Any `protobuf:"bytes,6,opt,name=map_private_key,json=mapPrivateKey,proto3" json:"map_private_key,omitempty"`
	// contains filtered or unexported fields
}

CreateDirectoryRequest creates a new directory

func (*CreateDirectoryRequest) Descriptor deprecated

func (*CreateDirectoryRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateDirectoryRequest.ProtoReflect.Descriptor instead.

func (*CreateDirectoryRequest) GetDirectoryId

func (x *CreateDirectoryRequest) GetDirectoryId() string

func (*CreateDirectoryRequest) GetLogPrivateKey

func (x *CreateDirectoryRequest) GetLogPrivateKey() *any.Any

func (*CreateDirectoryRequest) GetMapPrivateKey

func (x *CreateDirectoryRequest) GetMapPrivateKey() *any.Any

func (*CreateDirectoryRequest) GetMaxInterval

func (x *CreateDirectoryRequest) GetMaxInterval() *duration.Duration

func (*CreateDirectoryRequest) GetMinInterval

func (x *CreateDirectoryRequest) GetMinInterval() *duration.Duration

func (*CreateDirectoryRequest) GetVrfPrivateKey

func (x *CreateDirectoryRequest) GetVrfPrivateKey() *any.Any

func (*CreateDirectoryRequest) ProtoMessage

func (*CreateDirectoryRequest) ProtoMessage()

func (*CreateDirectoryRequest) ProtoReflect added in v0.3.0

func (x *CreateDirectoryRequest) ProtoReflect() protoreflect.Message

func (*CreateDirectoryRequest) Reset

func (x *CreateDirectoryRequest) Reset()

func (*CreateDirectoryRequest) String

func (x *CreateDirectoryRequest) String() string

type DeleteDirectoryRequest

type DeleteDirectoryRequest struct {
	DirectoryId string `protobuf:"bytes,1,opt,name=directory_id,json=directoryId,proto3" json:"directory_id,omitempty"`
	// contains filtered or unexported fields
}

DeleteDirectoryRequest deletes a directory

func (*DeleteDirectoryRequest) Descriptor deprecated

func (*DeleteDirectoryRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteDirectoryRequest.ProtoReflect.Descriptor instead.

func (*DeleteDirectoryRequest) GetDirectoryId

func (x *DeleteDirectoryRequest) GetDirectoryId() string

func (*DeleteDirectoryRequest) ProtoMessage

func (*DeleteDirectoryRequest) ProtoMessage()

func (*DeleteDirectoryRequest) ProtoReflect added in v0.3.0

func (x *DeleteDirectoryRequest) ProtoReflect() protoreflect.Message

func (*DeleteDirectoryRequest) Reset

func (x *DeleteDirectoryRequest) Reset()

func (*DeleteDirectoryRequest) String

func (x *DeleteDirectoryRequest) String() string

type Directory

type Directory struct {

	// DirectoryId can be any URL safe string.
	DirectoryId string `protobuf:"bytes,1,opt,name=directory_id,json=directoryId,proto3" json:"directory_id,omitempty"`
	// Log contains the Log-Tree's info.
	Log *trillian.Tree `protobuf:"bytes,2,opt,name=log,proto3" json:"log,omitempty"`
	// Map contains the Map-Tree's info.
	Map *trillian.Tree `protobuf:"bytes,3,opt,name=map,proto3" json:"map,omitempty"`
	// Vrf contains the VRF public key.
	Vrf *keyspb.PublicKey `protobuf:"bytes,4,opt,name=vrf,proto3" json:"vrf,omitempty"`
	// min_interval is the minimum time between revisions.
	MinInterval *duration.Duration `protobuf:"bytes,5,opt,name=min_interval,json=minInterval,proto3" json:"min_interval,omitempty"`
	// max_interval is the maximum time between revisions.
	MaxInterval *duration.Duration `protobuf:"bytes,6,opt,name=max_interval,json=maxInterval,proto3" json:"max_interval,omitempty"`
	// Deleted indicates whether the directory has been marked as deleted.
	// By its presence in a response, this directory has not been garbage
	// collected.
	Deleted bool `protobuf:"varint,7,opt,name=deleted,proto3" json:"deleted,omitempty"`
	// contains filtered or unexported fields
}

Directory contains information on a single directory

func (*Directory) Descriptor deprecated

func (*Directory) Descriptor() ([]byte, []int)

Deprecated: Use Directory.ProtoReflect.Descriptor instead.

func (*Directory) GetDeleted

func (x *Directory) GetDeleted() bool

func (*Directory) GetDirectoryId

func (x *Directory) GetDirectoryId() string

func (*Directory) GetLog

func (x *Directory) GetLog() *trillian.Tree

func (*Directory) GetMap

func (x *Directory) GetMap() *trillian.Tree

func (*Directory) GetMaxInterval

func (x *Directory) GetMaxInterval() *duration.Duration

func (*Directory) GetMinInterval

func (x *Directory) GetMinInterval() *duration.Duration

func (*Directory) GetVrf

func (x *Directory) GetVrf() *keyspb.PublicKey

func (*Directory) ProtoMessage

func (*Directory) ProtoMessage()

func (*Directory) ProtoReflect added in v0.3.0

func (x *Directory) ProtoReflect() protoreflect.Message

func (*Directory) Reset

func (x *Directory) Reset()

func (*Directory) String

func (x *Directory) String() string

type Entry

type Entry struct {

	// index is the location of this leaf in the sparse merkle tree.
	Index []byte `protobuf:"bytes,3,opt,name=index,proto3" json:"index,omitempty"`
	// commitment is a cryptographic commitment to arbitrary data.
	Commitment []byte `protobuf:"bytes,6,opt,name=commitment,proto3" json:"commitment,omitempty"`
	// authorized_keys is the tink keyset that validates the signatures on the next entry.
	AuthorizedKeyset []byte `protobuf:"bytes,9,opt,name=authorized_keyset,json=authorizedKeyset,proto3" json:"authorized_keyset,omitempty"`
	// previous contains the SHA256 hash of SignedEntry.Entry the last time it was modified.
	Previous []byte `protobuf:"bytes,8,opt,name=previous,proto3" json:"previous,omitempty"`
	// contains filtered or unexported fields
}

Entry is a signed change to a map entry. Entry contains a commitment to profile and a set of authorized update keys. Entry is placed in the verifiable map as leaf data.

func (*Entry) Descriptor deprecated

func (*Entry) Descriptor() ([]byte, []int)

Deprecated: Use Entry.ProtoReflect.Descriptor instead.

func (*Entry) GetAuthorizedKeyset

func (x *Entry) GetAuthorizedKeyset() []byte

func (*Entry) GetCommitment

func (x *Entry) GetCommitment() []byte

func (*Entry) GetIndex

func (x *Entry) GetIndex() []byte

func (*Entry) GetPrevious

func (x *Entry) GetPrevious() []byte

func (*Entry) ProtoMessage

func (*Entry) ProtoMessage()

func (*Entry) ProtoReflect added in v0.3.0

func (x *Entry) ProtoReflect() protoreflect.Message

func (*Entry) Reset

func (x *Entry) Reset()

func (*Entry) String

func (x *Entry) String() string

type EntryUpdate

type EntryUpdate struct {

	// user_id specifies the id for the user whose profile is being updated.
	UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// mutation authorizes the change to entry.
	Mutation *SignedEntry `protobuf:"bytes,2,opt,name=mutation,proto3" json:"mutation,omitempty"`
	// committed contains the data committed to in mutation.commitment.
	Committed *Committed `protobuf:"bytes,3,opt,name=committed,proto3" json:"committed,omitempty"`
	// contains filtered or unexported fields
}

EntryUpdate contains the user entry update(s). EntryUpdate will be placed in a Log of mutations.

func (*EntryUpdate) Descriptor deprecated

func (*EntryUpdate) Descriptor() ([]byte, []int)

Deprecated: Use EntryUpdate.ProtoReflect.Descriptor instead.

func (*EntryUpdate) GetCommitted

func (x *EntryUpdate) GetCommitted() *Committed

func (*EntryUpdate) GetMutation

func (x *EntryUpdate) GetMutation() *SignedEntry

func (*EntryUpdate) GetUserId

func (x *EntryUpdate) GetUserId() string

func (*EntryUpdate) ProtoMessage

func (*EntryUpdate) ProtoMessage()

func (*EntryUpdate) ProtoReflect added in v0.3.0

func (x *EntryUpdate) ProtoReflect() protoreflect.Message

func (*EntryUpdate) Reset

func (x *EntryUpdate) Reset()

func (*EntryUpdate) String

func (x *EntryUpdate) String() string

type GarbageCollectRequest

type GarbageCollectRequest struct {

	// Soft-deleted directories with a deleted timestamp before this will be fully
	// deleted.
	Before *timestamp.Timestamp `protobuf:"bytes,1,opt,name=before,proto3" json:"before,omitempty"`
	// contains filtered or unexported fields
}

GarbageCollect request.

func (*GarbageCollectRequest) Descriptor deprecated

func (*GarbageCollectRequest) Descriptor() ([]byte, []int)

Deprecated: Use GarbageCollectRequest.ProtoReflect.Descriptor instead.

func (*GarbageCollectRequest) GetBefore

func (x *GarbageCollectRequest) GetBefore() *timestamp.Timestamp

func (*GarbageCollectRequest) ProtoMessage

func (*GarbageCollectRequest) ProtoMessage()

func (*GarbageCollectRequest) ProtoReflect added in v0.3.0

func (x *GarbageCollectRequest) ProtoReflect() protoreflect.Message

func (*GarbageCollectRequest) Reset

func (x *GarbageCollectRequest) Reset()

func (*GarbageCollectRequest) String

func (x *GarbageCollectRequest) String() string

type GarbageCollectResponse

type GarbageCollectResponse struct {
	Directories []*Directory `protobuf:"bytes,1,rep,name=directories,proto3" json:"directories,omitempty"`
	// contains filtered or unexported fields
}

func (*GarbageCollectResponse) Descriptor deprecated

func (*GarbageCollectResponse) Descriptor() ([]byte, []int)

Deprecated: Use GarbageCollectResponse.ProtoReflect.Descriptor instead.

func (*GarbageCollectResponse) GetDirectories

func (x *GarbageCollectResponse) GetDirectories() []*Directory

func (*GarbageCollectResponse) ProtoMessage

func (*GarbageCollectResponse) ProtoMessage()

func (*GarbageCollectResponse) ProtoReflect added in v0.3.0

func (x *GarbageCollectResponse) ProtoReflect() protoreflect.Message

func (*GarbageCollectResponse) Reset

func (x *GarbageCollectResponse) Reset()

func (*GarbageCollectResponse) String

func (x *GarbageCollectResponse) String() string

type GetDirectoryRequest

type GetDirectoryRequest struct {
	DirectoryId string `protobuf:"bytes,1,opt,name=directory_id,json=directoryId,proto3" json:"directory_id,omitempty"`
	// showDeleted requests directories that have been marked for deletion
	// but have not been garbage collected.
	ShowDeleted bool `protobuf:"varint,2,opt,name=show_deleted,json=showDeleted,proto3" json:"show_deleted,omitempty"`
	// contains filtered or unexported fields
}

GetDirectoryRequest specifies the directory to retrieve information for.

func (*GetDirectoryRequest) Descriptor deprecated

func (*GetDirectoryRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetDirectoryRequest.ProtoReflect.Descriptor instead.

func (*GetDirectoryRequest) GetDirectoryId

func (x *GetDirectoryRequest) GetDirectoryId() string

func (*GetDirectoryRequest) GetShowDeleted

func (x *GetDirectoryRequest) GetShowDeleted() bool

func (*GetDirectoryRequest) ProtoMessage

func (*GetDirectoryRequest) ProtoMessage()

func (*GetDirectoryRequest) ProtoReflect added in v0.3.0

func (x *GetDirectoryRequest) ProtoReflect() protoreflect.Message

func (*GetDirectoryRequest) Reset

func (x *GetDirectoryRequest) Reset()

func (*GetDirectoryRequest) String

func (x *GetDirectoryRequest) String() string

type GetLatestRevisionRequest

type GetLatestRevisionRequest struct {

	// directory_id is the directory for which revisions are being requested.
	DirectoryId string `protobuf:"bytes,1,opt,name=directory_id,json=directoryId,proto3" json:"directory_id,omitempty"`
	// last_verified is the last log root the client verified.
	// Omitting this field will omit the log consistency proof from the response.
	LastVerified *LogRootRequest `protobuf:"bytes,3,opt,name=last_verified,json=lastVerified,proto3" json:"last_verified,omitempty"`
	// contains filtered or unexported fields
}

GetLatestRevisionRequest identifies a particular revision.

func (*GetLatestRevisionRequest) Descriptor deprecated

func (*GetLatestRevisionRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetLatestRevisionRequest.ProtoReflect.Descriptor instead.

func (*GetLatestRevisionRequest) GetDirectoryId

func (x *GetLatestRevisionRequest) GetDirectoryId() string

func (*GetLatestRevisionRequest) GetLastVerified

func (x *GetLatestRevisionRequest) GetLastVerified() *LogRootRequest

func (*GetLatestRevisionRequest) ProtoMessage

func (*GetLatestRevisionRequest) ProtoMessage()

func (*GetLatestRevisionRequest) ProtoReflect added in v0.3.0

func (x *GetLatestRevisionRequest) ProtoReflect() protoreflect.Message

func (*GetLatestRevisionRequest) Reset

func (x *GetLatestRevisionRequest) Reset()

func (*GetLatestRevisionRequest) String

func (x *GetLatestRevisionRequest) String() string

type GetRevisionRequest

type GetRevisionRequest struct {

	// directory_id is the directory for which revisions are being requested.
	DirectoryId string `protobuf:"bytes,5,opt,name=directory_id,json=directoryId,proto3" json:"directory_id,omitempty"`
	// revision specifies the revision number in which mutations will be returned.
	Revision int64 `protobuf:"varint,1,opt,name=revision,proto3" json:"revision,omitempty"`
	// last_verified is the last log root the client verified.
	// Omitting this field will omit the log consistency proof from the response.
	LastVerified *LogRootRequest `protobuf:"bytes,4,opt,name=last_verified,json=lastVerified,proto3" json:"last_verified,omitempty"`
	// contains filtered or unexported fields
}

GetRevisionRequest identifies a particular revision.

func (*GetRevisionRequest) Descriptor deprecated

func (*GetRevisionRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetRevisionRequest.ProtoReflect.Descriptor instead.

func (*GetRevisionRequest) GetDirectoryId

func (x *GetRevisionRequest) GetDirectoryId() string

func (*GetRevisionRequest) GetLastVerified

func (x *GetRevisionRequest) GetLastVerified() *LogRootRequest

func (*GetRevisionRequest) GetRevision

func (x *GetRevisionRequest) GetRevision() int64

func (*GetRevisionRequest) ProtoMessage

func (*GetRevisionRequest) ProtoMessage()

func (*GetRevisionRequest) ProtoReflect added in v0.3.0

func (x *GetRevisionRequest) ProtoReflect() protoreflect.Message

func (*GetRevisionRequest) Reset

func (x *GetRevisionRequest) Reset()

func (*GetRevisionRequest) String

func (x *GetRevisionRequest) String() string

type GetUserRequest

type GetUserRequest struct {

	// directory_id identifies the directory in which the user lives.
	DirectoryId string `protobuf:"bytes,1,opt,name=directory_id,json=directoryId,proto3" json:"directory_id,omitempty"`
	// user_id is the user identifier, the format for which is defined by the
	// application.
	UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// last_verified is the last log root the client verified.
	// Omitting this field will omit the log consistency proof from the response.
	LastVerified *LogRootRequest `protobuf:"bytes,4,opt,name=last_verified,json=lastVerified,proto3" json:"last_verified,omitempty"`
	// contains filtered or unexported fields
}

Gets the leaf entry for a user.

func (*GetUserRequest) Descriptor deprecated

func (*GetUserRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.

func (*GetUserRequest) GetDirectoryId

func (x *GetUserRequest) GetDirectoryId() string

func (*GetUserRequest) GetLastVerified

func (x *GetUserRequest) GetLastVerified() *LogRootRequest

func (*GetUserRequest) GetUserId

func (x *GetUserRequest) GetUserId() string

func (*GetUserRequest) ProtoMessage

func (*GetUserRequest) ProtoMessage()

func (*GetUserRequest) ProtoReflect added in v0.3.0

func (x *GetUserRequest) ProtoReflect() protoreflect.Message

func (*GetUserRequest) Reset

func (x *GetUserRequest) Reset()

func (*GetUserRequest) String

func (x *GetUserRequest) String() string

type GetUserResponse

type GetUserResponse struct {

	// revision is the most recently published revision.
	Revision *Revision `protobuf:"bytes,1,opt,name=revision,proto3" json:"revision,omitempty"`
	// leaf is the leaf entry for the requested user.
	Leaf *MapLeaf `protobuf:"bytes,2,opt,name=leaf,proto3" json:"leaf,omitempty"`
	// contains filtered or unexported fields
}

Contains the leaf entry for a user at the most recently published revision.

func (*GetUserResponse) Descriptor deprecated

func (*GetUserResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetUserResponse.ProtoReflect.Descriptor instead.

func (*GetUserResponse) GetLeaf

func (x *GetUserResponse) GetLeaf() *MapLeaf

func (*GetUserResponse) GetRevision

func (x *GetUserResponse) GetRevision() *Revision

func (*GetUserResponse) ProtoMessage

func (*GetUserResponse) ProtoMessage()

func (*GetUserResponse) ProtoReflect added in v0.3.0

func (x *GetUserResponse) ProtoReflect() protoreflect.Message

func (*GetUserResponse) Reset

func (x *GetUserResponse) Reset()

func (*GetUserResponse) String

func (x *GetUserResponse) String() string

type InputLog

type InputLog struct {
	DirectoryId string `protobuf:"bytes,1,opt,name=directory_id,json=directoryId,proto3" json:"directory_id,omitempty"`
	LogId       int64  `protobuf:"varint,2,opt,name=log_id,json=logId,proto3" json:"log_id,omitempty"`
	// writable controls whether new log items will be sent to this log.
	// writable is not set by ListInputLogs.
	Writable bool `protobuf:"varint,3,opt,name=writable,proto3" json:"writable,omitempty"`
	// contains filtered or unexported fields
}

InputLog is an input log for a directory.

func (*InputLog) Descriptor deprecated

func (*InputLog) Descriptor() ([]byte, []int)

Deprecated: Use InputLog.ProtoReflect.Descriptor instead.

func (*InputLog) GetDirectoryId

func (x *InputLog) GetDirectoryId() string

func (*InputLog) GetLogId

func (x *InputLog) GetLogId() int64

func (*InputLog) GetWritable

func (x *InputLog) GetWritable() bool

func (*InputLog) ProtoMessage

func (*InputLog) ProtoMessage()

func (*InputLog) ProtoReflect added in v0.3.0

func (x *InputLog) ProtoReflect() protoreflect.Message

func (*InputLog) Reset

func (x *InputLog) Reset()

func (*InputLog) String

func (x *InputLog) String() string

type KeyTransparencyAdminClient

type KeyTransparencyAdminClient interface {
	// ListDirectories returns a list of all directories this Key Transparency
	// server operates on.
	ListDirectories(ctx context.Context, in *ListDirectoriesRequest, opts ...grpc.CallOption) (*ListDirectoriesResponse, error)
	// GetDirectory returns the confiuration information for a given directory.
	GetDirectory(ctx context.Context, in *GetDirectoryRequest, opts ...grpc.CallOption) (*Directory, error)
	// CreateDirectory creates a new Trillian log/map pair.  A unique directoryId
	// must be provided.  To create a new directory with the same name as a
	// previously deleted directory, a user must wait X days until the directory
	// is garbage collected.
	CreateDirectory(ctx context.Context, in *CreateDirectoryRequest, opts ...grpc.CallOption) (*Directory, error)
	// DeleteDirectory marks a directory as deleted.  Directories will be garbage
	// collected after X days.
	DeleteDirectory(ctx context.Context, in *DeleteDirectoryRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	// UndeleteDirectory marks a previously deleted directory as active if it has
	// not already been garbage collected.
	UndeleteDirectory(ctx context.Context, in *UndeleteDirectoryRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	// ListInputLogs returns a list of input logs for a directory.
	ListInputLogs(ctx context.Context, in *ListInputLogsRequest, opts ...grpc.CallOption) (*ListInputLogsResponse, error)
	// CreateInputLog returns a the created log.
	CreateInputLog(ctx context.Context, in *InputLog, opts ...grpc.CallOption) (*InputLog, error)
	// UpdateInputLog updates the write bit for an input log.
	UpdateInputLog(ctx context.Context, in *InputLog, opts ...grpc.CallOption) (*InputLog, error)
	// Fully delete soft-deleted directories that have been soft-deleted before
	// the specified timestamp.
	GarbageCollect(ctx context.Context, in *GarbageCollectRequest, opts ...grpc.CallOption) (*GarbageCollectResponse, error)
}

KeyTransparencyAdminClient is the client API for KeyTransparencyAdmin service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type KeyTransparencyAdminServer

type KeyTransparencyAdminServer interface {
	// ListDirectories returns a list of all directories this Key Transparency
	// server operates on.
	ListDirectories(context.Context, *ListDirectoriesRequest) (*ListDirectoriesResponse, error)
	// GetDirectory returns the confiuration information for a given directory.
	GetDirectory(context.Context, *GetDirectoryRequest) (*Directory, error)
	// CreateDirectory creates a new Trillian log/map pair.  A unique directoryId
	// must be provided.  To create a new directory with the same name as a
	// previously deleted directory, a user must wait X days until the directory
	// is garbage collected.
	CreateDirectory(context.Context, *CreateDirectoryRequest) (*Directory, error)
	// DeleteDirectory marks a directory as deleted.  Directories will be garbage
	// collected after X days.
	DeleteDirectory(context.Context, *DeleteDirectoryRequest) (*empty.Empty, error)
	// UndeleteDirectory marks a previously deleted directory as active if it has
	// not already been garbage collected.
	UndeleteDirectory(context.Context, *UndeleteDirectoryRequest) (*empty.Empty, error)
	// ListInputLogs returns a list of input logs for a directory.
	ListInputLogs(context.Context, *ListInputLogsRequest) (*ListInputLogsResponse, error)
	// CreateInputLog returns a the created log.
	CreateInputLog(context.Context, *InputLog) (*InputLog, error)
	// UpdateInputLog updates the write bit for an input log.
	UpdateInputLog(context.Context, *InputLog) (*InputLog, error)
	// Fully delete soft-deleted directories that have been soft-deleted before
	// the specified timestamp.
	GarbageCollect(context.Context, *GarbageCollectRequest) (*GarbageCollectResponse, error)
}

KeyTransparencyAdminServer is the server API for KeyTransparencyAdmin service.

type KeyTransparencyClient

type KeyTransparencyClient interface {
	// GetDirectory returns the information needed to verify the specified
	// directory.
	GetDirectory(ctx context.Context, in *GetDirectoryRequest, opts ...grpc.CallOption) (*Directory, error)
	// GetRevision returns a SignedMapRoot by the by the requested revision number
	// along with its inclusion proof in the log and the log's consistency proofs.
	GetRevision(ctx context.Context, in *GetRevisionRequest, opts ...grpc.CallOption) (*Revision, error)
	// GetLatestRevision returns the latest SignedMapRoot along with its inclusion
	// proof in the log and the log's consistency proofs.
	GetLatestRevision(ctx context.Context, in *GetLatestRevisionRequest, opts ...grpc.CallOption) (*Revision, error)
	// GetRevisionStream streams new revisions from a requested starting point
	// and continues as new revisions are created.
	GetRevisionStream(ctx context.Context, in *GetRevisionRequest, opts ...grpc.CallOption) (KeyTransparency_GetRevisionStreamClient, error)
	// ListMutations returns a list of mutations in a specific revision.
	ListMutations(ctx context.Context, in *ListMutationsRequest, opts ...grpc.CallOption) (*ListMutationsResponse, error)
	// ListMutationsStream is a streaming list of mutations in a specific revision.
	ListMutationsStream(ctx context.Context, in *ListMutationsRequest, opts ...grpc.CallOption) (KeyTransparency_ListMutationsStreamClient, error)
	// GetUser returns a user's leaf entry in the Merkle Tree.
	GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserResponse, error)
	// BatchGetUser returns a batch of user leaf entries in the Merkle tree at the same revision.
	BatchGetUser(ctx context.Context, in *BatchGetUserRequest, opts ...grpc.CallOption) (*BatchGetUserResponse, error)
	// BatchGetUserIndex returns the VRF proof for a set of userIDs.
	BatchGetUserIndex(ctx context.Context, in *BatchGetUserIndexRequest, opts ...grpc.CallOption) (*BatchGetUserIndexResponse, error)
	// ListEntryHistory returns a list of historic GetUser values.
	//
	// Clients verify their account history by observing correct values for their
	// account over time.
	ListEntryHistory(ctx context.Context, in *ListEntryHistoryRequest, opts ...grpc.CallOption) (*ListEntryHistoryResponse, error)
	// ListUserRevisions returns a list of historic leaf values for a user.
	//
	// Clients verify their account history by observing correct values for their
	// account over time.
	ListUserRevisions(ctx context.Context, in *ListUserRevisionsRequest, opts ...grpc.CallOption) (*ListUserRevisionsResponse, error)
	// BatchListUserRevisions returns a list of revisions for multiple users.
	BatchListUserRevisions(ctx context.Context, in *BatchListUserRevisionsRequest, opts ...grpc.CallOption) (*BatchListUserRevisionsResponse, error)
	// QueueUserUpdate enqueues an update to a user's profile.
	//
	// Clients should poll GetUser until the update appears, and retry if no
	// update appears after a timeout.
	QueueEntryUpdate(ctx context.Context, in *UpdateEntryRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	// BatchQueueUserUpdate enqueues a list of user profiles.
	BatchQueueUserUpdate(ctx context.Context, in *BatchQueueUserUpdateRequest, opts ...grpc.CallOption) (*empty.Empty, error)
}

KeyTransparencyClient is the client API for KeyTransparency service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type KeyTransparencyFrontendClient

type KeyTransparencyFrontendClient interface {
	// Enqueues an update to a user's identity keys.
	QueueKeyUpdate(ctx context.Context, in *QueueKeyUpdateRequest, opts ...grpc.CallOption) (*empty.Empty, error)
}

KeyTransparencyFrontendClient is the client API for KeyTransparencyFrontend service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type KeyTransparencyFrontendServer

type KeyTransparencyFrontendServer interface {
	// Enqueues an update to a user's identity keys.
	QueueKeyUpdate(context.Context, *QueueKeyUpdateRequest) (*empty.Empty, error)
}

KeyTransparencyFrontendServer is the server API for KeyTransparencyFrontend service.

type KeyTransparencyServer

type KeyTransparencyServer interface {
	// GetDirectory returns the information needed to verify the specified
	// directory.
	GetDirectory(context.Context, *GetDirectoryRequest) (*Directory, error)
	// GetRevision returns a SignedMapRoot by the by the requested revision number
	// along with its inclusion proof in the log and the log's consistency proofs.
	GetRevision(context.Context, *GetRevisionRequest) (*Revision, error)
	// GetLatestRevision returns the latest SignedMapRoot along with its inclusion
	// proof in the log and the log's consistency proofs.
	GetLatestRevision(context.Context, *GetLatestRevisionRequest) (*Revision, error)
	// GetRevisionStream streams new revisions from a requested starting point
	// and continues as new revisions are created.
	GetRevisionStream(*GetRevisionRequest, KeyTransparency_GetRevisionStreamServer) error
	// ListMutations returns a list of mutations in a specific revision.
	ListMutations(context.Context, *ListMutationsRequest) (*ListMutationsResponse, error)
	// ListMutationsStream is a streaming list of mutations in a specific revision.
	ListMutationsStream(*ListMutationsRequest, KeyTransparency_ListMutationsStreamServer) error
	// GetUser returns a user's leaf entry in the Merkle Tree.
	GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error)
	// BatchGetUser returns a batch of user leaf entries in the Merkle tree at the same revision.
	BatchGetUser(context.Context, *BatchGetUserRequest) (*BatchGetUserResponse, error)
	// BatchGetUserIndex returns the VRF proof for a set of userIDs.
	BatchGetUserIndex(context.Context, *BatchGetUserIndexRequest) (*BatchGetUserIndexResponse, error)
	// ListEntryHistory returns a list of historic GetUser values.
	//
	// Clients verify their account history by observing correct values for their
	// account over time.
	ListEntryHistory(context.Context, *ListEntryHistoryRequest) (*ListEntryHistoryResponse, error)
	// ListUserRevisions returns a list of historic leaf values for a user.
	//
	// Clients verify their account history by observing correct values for their
	// account over time.
	ListUserRevisions(context.Context, *ListUserRevisionsRequest) (*ListUserRevisionsResponse, error)
	// BatchListUserRevisions returns a list of revisions for multiple users.
	BatchListUserRevisions(context.Context, *BatchListUserRevisionsRequest) (*BatchListUserRevisionsResponse, error)
	// QueueUserUpdate enqueues an update to a user's profile.
	//
	// Clients should poll GetUser until the update appears, and retry if no
	// update appears after a timeout.
	QueueEntryUpdate(context.Context, *UpdateEntryRequest) (*empty.Empty, error)
	// BatchQueueUserUpdate enqueues a list of user profiles.
	BatchQueueUserUpdate(context.Context, *BatchQueueUserUpdateRequest) (*empty.Empty, error)
}

KeyTransparencyServer is the server API for KeyTransparency service.

type KeyTransparency_GetRevisionStreamClient

type KeyTransparency_GetRevisionStreamClient interface {
	Recv() (*Revision, error)
	grpc.ClientStream
}

type KeyTransparency_GetRevisionStreamServer

type KeyTransparency_GetRevisionStreamServer interface {
	Send(*Revision) error
	grpc.ServerStream
}

type KeyTransparency_ListMutationsStreamClient

type KeyTransparency_ListMutationsStreamClient interface {
	Recv() (*MutationProof, error)
	grpc.ClientStream
}

type KeyTransparency_ListMutationsStreamServer

type KeyTransparency_ListMutationsStreamServer interface {
	Send(*MutationProof) error
	grpc.ServerStream
}

type ListDirectoriesRequest

type ListDirectoriesRequest struct {

	// showDeleted requests directories that have been marked for deletion
	// but have not been garbage collected.
	ShowDeleted bool `protobuf:"varint,1,opt,name=show_deleted,json=showDeleted,proto3" json:"show_deleted,omitempty"`
	// contains filtered or unexported fields
}

ListDirectories request. No pagination options are provided.

func (*ListDirectoriesRequest) Descriptor deprecated

func (*ListDirectoriesRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListDirectoriesRequest.ProtoReflect.Descriptor instead.

func (*ListDirectoriesRequest) GetShowDeleted

func (x *ListDirectoriesRequest) GetShowDeleted() bool

func (*ListDirectoriesRequest) ProtoMessage

func (*ListDirectoriesRequest) ProtoMessage()

func (*ListDirectoriesRequest) ProtoReflect added in v0.3.0

func (x *ListDirectoriesRequest) ProtoReflect() protoreflect.Message

func (*ListDirectoriesRequest) Reset

func (x *ListDirectoriesRequest) Reset()

func (*ListDirectoriesRequest) String

func (x *ListDirectoriesRequest) String() string

type ListDirectoriesResponse

type ListDirectoriesResponse struct {
	Directories []*Directory `protobuf:"bytes,1,rep,name=directories,proto3" json:"directories,omitempty"`
	// contains filtered or unexported fields
}

ListDirectories response contains directories.

func (*ListDirectoriesResponse) Descriptor deprecated

func (*ListDirectoriesResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListDirectoriesResponse.ProtoReflect.Descriptor instead.

func (*ListDirectoriesResponse) GetDirectories

func (x *ListDirectoriesResponse) GetDirectories() []*Directory

func (*ListDirectoriesResponse) ProtoMessage

func (*ListDirectoriesResponse) ProtoMessage()

func (*ListDirectoriesResponse) ProtoReflect added in v0.3.0

func (x *ListDirectoriesResponse) ProtoReflect() protoreflect.Message

func (*ListDirectoriesResponse) Reset

func (x *ListDirectoriesResponse) Reset()

func (*ListDirectoriesResponse) String

func (x *ListDirectoriesResponse) String() string

type ListEntryHistoryRequest

type ListEntryHistoryRequest struct {

	// directory_id identifies the directory in which the user lives.
	DirectoryId string `protobuf:"bytes,6,opt,name=directory_id,json=directoryId,proto3" json:"directory_id,omitempty"`
	// user_id is the user identifier.
	UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// start is the starting revision.
	Start int64 `protobuf:"varint,2,opt,name=start,proto3" json:"start,omitempty"`
	// page_size is the maximum number of entries to return.
	// The server can return fewer entries than requested.
	PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// last_verified is the last log root the client verified.
	// Omitting this field will omit the log consistency proof from the response.
	LastVerified *LogRootRequest `protobuf:"bytes,7,opt,name=last_verified,json=lastVerified,proto3" json:"last_verified,omitempty"`
	// contains filtered or unexported fields
}

ListEntryHistoryRequest gets a list of historical keys for a user.

func (*ListEntryHistoryRequest) Descriptor deprecated

func (*ListEntryHistoryRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListEntryHistoryRequest.ProtoReflect.Descriptor instead.

func (*ListEntryHistoryRequest) GetDirectoryId

func (x *ListEntryHistoryRequest) GetDirectoryId() string

func (*ListEntryHistoryRequest) GetLastVerified

func (x *ListEntryHistoryRequest) GetLastVerified() *LogRootRequest

func (*ListEntryHistoryRequest) GetPageSize

func (x *ListEntryHistoryRequest) GetPageSize() int32

func (*ListEntryHistoryRequest) GetStart

func (x *ListEntryHistoryRequest) GetStart() int64

func (*ListEntryHistoryRequest) GetUserId

func (x *ListEntryHistoryRequest) GetUserId() string

func (*ListEntryHistoryRequest) ProtoMessage

func (*ListEntryHistoryRequest) ProtoMessage()

func (*ListEntryHistoryRequest) ProtoReflect added in v0.3.0

func (x *ListEntryHistoryRequest) ProtoReflect() protoreflect.Message

func (*ListEntryHistoryRequest) Reset

func (x *ListEntryHistoryRequest) Reset()

func (*ListEntryHistoryRequest) String

func (x *ListEntryHistoryRequest) String() string

type ListEntryHistoryResponse

type ListEntryHistoryResponse struct {

	// values represents the list of keys this user_id has contained over time.
	Values []*GetUserResponse `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
	// next_start is the next page token to query for pagination.
	// next_start is 0 when there are no more results to fetch.
	NextStart int64 `protobuf:"varint,2,opt,name=next_start,json=nextStart,proto3" json:"next_start,omitempty"`
	// contains filtered or unexported fields
}

ListEntryHistoryResponse requests a paginated history of keys for a user.

func (*ListEntryHistoryResponse) Descriptor deprecated

func (*ListEntryHistoryResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListEntryHistoryResponse.ProtoReflect.Descriptor instead.

func (*ListEntryHistoryResponse) GetNextStart

func (x *ListEntryHistoryResponse) GetNextStart() int64

func (*ListEntryHistoryResponse) GetValues

func (x *ListEntryHistoryResponse) GetValues() []*GetUserResponse

func (*ListEntryHistoryResponse) ProtoMessage

func (*ListEntryHistoryResponse) ProtoMessage()

func (*ListEntryHistoryResponse) ProtoReflect added in v0.3.0

func (x *ListEntryHistoryResponse) ProtoReflect() protoreflect.Message

func (*ListEntryHistoryResponse) Reset

func (x *ListEntryHistoryResponse) Reset()

func (*ListEntryHistoryResponse) String

func (x *ListEntryHistoryResponse) String() string

type ListInputLogsRequest

type ListInputLogsRequest struct {
	DirectoryId string `protobuf:"bytes,1,opt,name=directory_id,json=directoryId,proto3" json:"directory_id,omitempty"`
	// filter_writable will only return writable logs when set.
	FilterWritable bool `protobuf:"varint,2,opt,name=filter_writable,json=filterWritable,proto3" json:"filter_writable,omitempty"`
	// contains filtered or unexported fields
}

func (*ListInputLogsRequest) Descriptor deprecated

func (*ListInputLogsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListInputLogsRequest.ProtoReflect.Descriptor instead.

func (*ListInputLogsRequest) GetDirectoryId

func (x *ListInputLogsRequest) GetDirectoryId() string

func (*ListInputLogsRequest) GetFilterWritable

func (x *ListInputLogsRequest) GetFilterWritable() bool

func (*ListInputLogsRequest) ProtoMessage

func (*ListInputLogsRequest) ProtoMessage()

func (*ListInputLogsRequest) ProtoReflect added in v0.3.0

func (x *ListInputLogsRequest) ProtoReflect() protoreflect.Message

func (*ListInputLogsRequest) Reset

func (x *ListInputLogsRequest) Reset()

func (*ListInputLogsRequest) String

func (x *ListInputLogsRequest) String() string

type ListInputLogsResponse

type ListInputLogsResponse struct {
	Logs []*InputLog `protobuf:"bytes,1,rep,name=logs,proto3" json:"logs,omitempty"`
	// contains filtered or unexported fields
}

func (*ListInputLogsResponse) Descriptor deprecated

func (*ListInputLogsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListInputLogsResponse.ProtoReflect.Descriptor instead.

func (*ListInputLogsResponse) GetLogs

func (x *ListInputLogsResponse) GetLogs() []*InputLog

func (*ListInputLogsResponse) ProtoMessage

func (*ListInputLogsResponse) ProtoMessage()

func (*ListInputLogsResponse) ProtoReflect added in v0.3.0

func (x *ListInputLogsResponse) ProtoReflect() protoreflect.Message

func (*ListInputLogsResponse) Reset

func (x *ListInputLogsResponse) Reset()

func (*ListInputLogsResponse) String

func (x *ListInputLogsResponse) String() string

type ListMutationsRequest

type ListMutationsRequest struct {

	// directory_id is the directory identifier.
	DirectoryId string `protobuf:"bytes,5,opt,name=directory_id,json=directoryId,proto3" json:"directory_id,omitempty"`
	// revision specifies the revision number.
	Revision int64 `protobuf:"varint,1,opt,name=revision,proto3" json:"revision,omitempty"`
	// page_token defines the starting point for pagination.
	// To request the next page, pass next_page_token from the previous response.
	// To start at the beginning, simply omit page_token from the request.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// page_size is the maximum number of mutations to return in a single request.
	// The server may choose a smaller page_size than the one requested.
	PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // TODO(gbelvin): Add field mask.
	// contains filtered or unexported fields
}

ListMutationsRequest requests the mutations that created a given revision.

func (*ListMutationsRequest) Descriptor deprecated

func (*ListMutationsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListMutationsRequest.ProtoReflect.Descriptor instead.

func (*ListMutationsRequest) GetDirectoryId

func (x *ListMutationsRequest) GetDirectoryId() string

func (*ListMutationsRequest) GetPageSize

func (x *ListMutationsRequest) GetPageSize() int32

func (*ListMutationsRequest) GetPageToken

func (x *ListMutationsRequest) GetPageToken() string

func (*ListMutationsRequest) GetRevision

func (x *ListMutationsRequest) GetRevision() int64

func (*ListMutationsRequest) ProtoMessage

func (*ListMutationsRequest) ProtoMessage()

func (*ListMutationsRequest) ProtoReflect added in v0.3.0

func (x *ListMutationsRequest) ProtoReflect() protoreflect.Message

func (*ListMutationsRequest) Reset

func (x *ListMutationsRequest) Reset()

func (*ListMutationsRequest) String

func (x *ListMutationsRequest) String() string

type ListMutationsResponse

type ListMutationsResponse struct {

	// mutations contains the mutation object and the leaf value it operated on.
	Mutations []*MutationProof `protobuf:"bytes,6,rep,name=mutations,proto3" json:"mutations,omitempty"`
	// next_page_token is the next page token to query for pagination.
	// An empty value means there are no more results to fetch.
	NextPageToken string `protobuf:"bytes,7,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

ListMutationsResponse contains the mutations that produced an revision.

func (*ListMutationsResponse) Descriptor deprecated

func (*ListMutationsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListMutationsResponse.ProtoReflect.Descriptor instead.

func (*ListMutationsResponse) GetMutations

func (x *ListMutationsResponse) GetMutations() []*MutationProof

func (*ListMutationsResponse) GetNextPageToken

func (x *ListMutationsResponse) GetNextPageToken() string

func (*ListMutationsResponse) ProtoMessage

func (*ListMutationsResponse) ProtoMessage()

func (*ListMutationsResponse) ProtoReflect added in v0.3.0

func (x *ListMutationsResponse) ProtoReflect() protoreflect.Message

func (*ListMutationsResponse) Reset

func (x *ListMutationsResponse) Reset()

func (*ListMutationsResponse) String

func (x *ListMutationsResponse) String() string

type ListUserRevisionsRequest

type ListUserRevisionsRequest struct {

	// directory_id identifies the directory in which the user lives.
	DirectoryId string `protobuf:"bytes,1,opt,name=directory_id,json=directoryId,proto3" json:"directory_id,omitempty"`
	// user_id is the user identifier.
	UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// start_revision is the starting epoch.
	StartRevision int64 `protobuf:"varint,3,opt,name=start_revision,json=startRevision,proto3" json:"start_revision,omitempty"`
	// end_revision is the ending epoch.
	EndRevision int64 `protobuf:"varint,4,opt,name=end_revision,json=endRevision,proto3" json:"end_revision,omitempty"`
	// page_size is the maximum number of entries to return. If page_size is
	// unspecified, the server will decide how to paginate results.
	PageSize int32 `protobuf:"varint,5,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// page_token is a continuation token for paginating through results.
	PageToken string `protobuf:"bytes,6,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// last_verified is the last log root the client verified.
	// Omitting this field will omit the log consistency proof from the response.
	LastVerified *LogRootRequest `protobuf:"bytes,8,opt,name=last_verified,json=lastVerified,proto3" json:"last_verified,omitempty"`
	// contains filtered or unexported fields
}

ListUserRevisionsRequest gets a list of historical keys for a user.

func (*ListUserRevisionsRequest) Descriptor deprecated

func (*ListUserRevisionsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListUserRevisionsRequest.ProtoReflect.Descriptor instead.

func (*ListUserRevisionsRequest) GetDirectoryId

func (x *ListUserRevisionsRequest) GetDirectoryId() string

func (*ListUserRevisionsRequest) GetEndRevision

func (x *ListUserRevisionsRequest) GetEndRevision() int64

func (*ListUserRevisionsRequest) GetLastVerified

func (x *ListUserRevisionsRequest) GetLastVerified() *LogRootRequest

func (*ListUserRevisionsRequest) GetPageSize

func (x *ListUserRevisionsRequest) GetPageSize() int32

func (*ListUserRevisionsRequest) GetPageToken

func (x *ListUserRevisionsRequest) GetPageToken() string

func (*ListUserRevisionsRequest) GetStartRevision

func (x *ListUserRevisionsRequest) GetStartRevision() int64

func (*ListUserRevisionsRequest) GetUserId

func (x *ListUserRevisionsRequest) GetUserId() string

func (*ListUserRevisionsRequest) ProtoMessage

func (*ListUserRevisionsRequest) ProtoMessage()

func (*ListUserRevisionsRequest) ProtoReflect added in v0.3.0

func (x *ListUserRevisionsRequest) ProtoReflect() protoreflect.Message

func (*ListUserRevisionsRequest) Reset

func (x *ListUserRevisionsRequest) Reset()

func (*ListUserRevisionsRequest) String

func (x *ListUserRevisionsRequest) String() string

type ListUserRevisionsResponse

type ListUserRevisionsResponse struct {

	// latest_log_root contains the latest log root and its consistency proof.
	LatestLogRoot *LogRoot `protobuf:"bytes,1,opt,name=latest_log_root,json=latestLogRoot,proto3" json:"latest_log_root,omitempty"`
	// map_revisions represents the list of keys this user_id has contained over
	// time. At most page_size results will be returned.
	MapRevisions []*MapRevision `protobuf:"bytes,2,rep,name=map_revisions,json=mapRevisions,proto3" json:"map_revisions,omitempty"`
	// next_page_token is a pagination token which will be set if more than
	// page_size results are available. Clients can pass this value as
	// the page_token in the next request in order to continue pagination.
	NextPageToken string `protobuf:"bytes,3,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

ListUserRevisionsResponse requests a paginated history of keys for a user.

func (*ListUserRevisionsResponse) Descriptor deprecated

func (*ListUserRevisionsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListUserRevisionsResponse.ProtoReflect.Descriptor instead.

func (*ListUserRevisionsResponse) GetLatestLogRoot

func (x *ListUserRevisionsResponse) GetLatestLogRoot() *LogRoot

func (*ListUserRevisionsResponse) GetMapRevisions

func (x *ListUserRevisionsResponse) GetMapRevisions() []*MapRevision

func (*ListUserRevisionsResponse) GetNextPageToken

func (x *ListUserRevisionsResponse) GetNextPageToken() string

func (*ListUserRevisionsResponse) ProtoMessage

func (*ListUserRevisionsResponse) ProtoMessage()

func (*ListUserRevisionsResponse) ProtoReflect added in v0.3.0

func (*ListUserRevisionsResponse) Reset

func (x *ListUserRevisionsResponse) Reset()

func (*ListUserRevisionsResponse) String

func (x *ListUserRevisionsResponse) String() string

type LogRoot

type LogRoot struct {

	// log_root is the latest globally consistent log root.
	LogRoot *trillian.SignedLogRoot `protobuf:"bytes,1,opt,name=log_root,json=logRoot,proto3" json:"log_root,omitempty"`
	// log_consistency proves that log_root is consistent with previously seen
	// roots.
	LogConsistency [][]byte `protobuf:"bytes,2,rep,name=log_consistency,json=logConsistency,proto3" json:"log_consistency,omitempty"`
	// contains filtered or unexported fields
}

LogRoot contains the latest log root and its consistency proof.

func (*LogRoot) Descriptor deprecated

func (*LogRoot) Descriptor() ([]byte, []int)

Deprecated: Use LogRoot.ProtoReflect.Descriptor instead.

func (*LogRoot) GetLogConsistency

func (x *LogRoot) GetLogConsistency() [][]byte

func (*LogRoot) GetLogRoot

func (x *LogRoot) GetLogRoot() *trillian.SignedLogRoot

func (*LogRoot) ProtoMessage

func (*LogRoot) ProtoMessage()

func (*LogRoot) ProtoReflect added in v0.3.0

func (x *LogRoot) ProtoReflect() protoreflect.Message

func (*LogRoot) Reset

func (x *LogRoot) Reset()

func (*LogRoot) String

func (x *LogRoot) String() string

type LogRootRequest

type LogRootRequest struct {

	// root_hash is the root hash of the last log root the client verified.
	RootHash []byte `protobuf:"bytes,1,opt,name=root_hash,json=rootHash,proto3" json:"root_hash,omitempty"`
	// tree_size is the tree size of the last log root the client verified.
	TreeSize int64 `protobuf:"varint,2,opt,name=tree_size,json=treeSize,proto3" json:"tree_size,omitempty"`
	// contains filtered or unexported fields
}

LogRootRequest contains the information needed to request and verify LogRoot.

func (*LogRootRequest) Descriptor deprecated

func (*LogRootRequest) Descriptor() ([]byte, []int)

Deprecated: Use LogRootRequest.ProtoReflect.Descriptor instead.

func (*LogRootRequest) GetRootHash

func (x *LogRootRequest) GetRootHash() []byte

func (*LogRootRequest) GetTreeSize

func (x *LogRootRequest) GetTreeSize() int64

func (*LogRootRequest) ProtoMessage

func (*LogRootRequest) ProtoMessage()

func (*LogRootRequest) ProtoReflect added in v0.3.0

func (x *LogRootRequest) ProtoReflect() protoreflect.Message

func (*LogRootRequest) Reset

func (x *LogRootRequest) Reset()

func (*LogRootRequest) String

func (x *LogRootRequest) String() string

type MapLeaf

type MapLeaf struct {

	// vrf_proof is the proof for the VRF on user_id.
	VrfProof []byte `protobuf:"bytes,1,opt,name=vrf_proof,json=vrfProof,proto3" json:"vrf_proof,omitempty"`
	// map_inclusion is an inclusion proof for the map leaf in an accompanying
	// trillian.SignedMapRoot. If the leaf is non-empty, its leaf.leaf_value
	// stores a serialized Entry proto.
	MapInclusion *trillian.MapLeafInclusion `protobuf:"bytes,2,opt,name=map_inclusion,json=mapInclusion,proto3" json:"map_inclusion,omitempty"`
	// committed contains the data and nonce used to make a cryptographic
	// commitment, which is stored in the commitment field of the serialized Entry
	// proto from map_inclusion.
	// Note: committed can also be found serialized in
	// map_inclusion.leaf.extra_data.
	Committed *Committed `protobuf:"bytes,3,opt,name=committed,proto3" json:"committed,omitempty"`
	// contains filtered or unexported fields
}

Leaf entry for a user.

func (*MapLeaf) Descriptor deprecated

func (*MapLeaf) Descriptor() ([]byte, []int)

Deprecated: Use MapLeaf.ProtoReflect.Descriptor instead.

func (*MapLeaf) GetCommitted

func (x *MapLeaf) GetCommitted() *Committed

func (*MapLeaf) GetMapInclusion

func (x *MapLeaf) GetMapInclusion() *trillian.MapLeafInclusion

func (*MapLeaf) GetVrfProof

func (x *MapLeaf) GetVrfProof() []byte

func (*MapLeaf) ProtoMessage

func (*MapLeaf) ProtoMessage()

func (*MapLeaf) ProtoReflect added in v0.3.0

func (x *MapLeaf) ProtoReflect() protoreflect.Message

func (*MapLeaf) Reset

func (x *MapLeaf) Reset()

func (*MapLeaf) String

func (x *MapLeaf) String() string

type MapRevision

type MapRevision struct {

	// map_root contains the map root and its inclusion in the log.
	MapRoot *MapRoot `protobuf:"bytes,1,opt,name=map_root,json=mapRoot,proto3" json:"map_root,omitempty"`
	// map_leaf contains a leaf and its inclusion proof to map_root.
	MapLeaf *MapLeaf `protobuf:"bytes,2,opt,name=map_leaf,json=mapLeaf,proto3" json:"map_leaf,omitempty"`
	// contains filtered or unexported fields
}

MapRevision contains a map leaf at a speific revision.

func (*MapRevision) Descriptor deprecated

func (*MapRevision) Descriptor() ([]byte, []int)

Deprecated: Use MapRevision.ProtoReflect.Descriptor instead.

func (*MapRevision) GetMapLeaf

func (x *MapRevision) GetMapLeaf() *MapLeaf

func (*MapRevision) GetMapRoot

func (x *MapRevision) GetMapRoot() *MapRoot

func (*MapRevision) ProtoMessage

func (*MapRevision) ProtoMessage()

func (*MapRevision) ProtoReflect added in v0.3.0

func (x *MapRevision) ProtoReflect() protoreflect.Message

func (*MapRevision) Reset

func (x *MapRevision) Reset()

func (*MapRevision) String

func (x *MapRevision) String() string

type MapRoot

type MapRoot struct {

	// map_root contains the signed map root for the sparse Merkle Tree.
	MapRoot *trillian.SignedMapRoot `protobuf:"bytes,1,opt,name=map_root,json=mapRoot,proto3" json:"map_root,omitempty"`
	// log_inclusion proves that map_root is part of log_root at
	// index=map_root.MapRevision.
	LogInclusion [][]byte `protobuf:"bytes,2,rep,name=log_inclusion,json=logInclusion,proto3" json:"log_inclusion,omitempty"`
	// contains filtered or unexported fields
}

MapRoot contains the map root and its inclusion proof in the log.

func (*MapRoot) Descriptor deprecated

func (*MapRoot) Descriptor() ([]byte, []int)

Deprecated: Use MapRoot.ProtoReflect.Descriptor instead.

func (*MapRoot) GetLogInclusion

func (x *MapRoot) GetLogInclusion() [][]byte

func (*MapRoot) GetMapRoot

func (x *MapRoot) GetMapRoot() *trillian.SignedMapRoot

func (*MapRoot) ProtoMessage

func (*MapRoot) ProtoMessage()

func (*MapRoot) ProtoReflect added in v0.3.0

func (x *MapRoot) ProtoReflect() protoreflect.Message

func (*MapRoot) Reset

func (x *MapRoot) Reset()

func (*MapRoot) String

func (x *MapRoot) String() string

type MapperMetadata

type MapperMetadata struct {
	HighestFullyCompletedSeq int64 `` /* 138-byte string literal not displayed */
	// contains filtered or unexported fields
}

MapperMetadata tracks the mutations that have been mapped so far. It is embedded in the Trillian SignedMapHead.

func (*MapperMetadata) Descriptor deprecated

func (*MapperMetadata) Descriptor() ([]byte, []int)

Deprecated: Use MapperMetadata.ProtoReflect.Descriptor instead.

func (*MapperMetadata) GetHighestFullyCompletedSeq

func (x *MapperMetadata) GetHighestFullyCompletedSeq() int64

func (*MapperMetadata) ProtoMessage

func (*MapperMetadata) ProtoMessage()

func (*MapperMetadata) ProtoReflect added in v0.3.0

func (x *MapperMetadata) ProtoReflect() protoreflect.Message

func (*MapperMetadata) Reset

func (x *MapperMetadata) Reset()

func (*MapperMetadata) String

func (x *MapperMetadata) String() string

type MutationProof

type MutationProof struct {

	// mutation contains the information needed to modify the old leaf.
	// The format of a mutation is specific to the particular Mutate function
	// being used.
	Mutation *SignedEntry `protobuf:"bytes,1,opt,name=mutation,proto3" json:"mutation,omitempty"`
	// leaf_proof contains the leaf and its inclusion proof for a particular map
	// revision.
	LeafProof *trillian.MapLeafInclusion `protobuf:"bytes,2,opt,name=leaf_proof,json=leafProof,proto3" json:"leaf_proof,omitempty"`
	// contains filtered or unexported fields
}

MutationProof contains the information necessary to compute the new leaf value. It contains a) the old leaf value with it's inclusion proof and b) the mutation. The new leaf value is computed via:

Mutate(leaf_value, mutation)

func (*MutationProof) Descriptor deprecated

func (*MutationProof) Descriptor() ([]byte, []int)

Deprecated: Use MutationProof.ProtoReflect.Descriptor instead.

func (*MutationProof) GetLeafProof

func (x *MutationProof) GetLeafProof() *trillian.MapLeafInclusion

func (*MutationProof) GetMutation

func (x *MutationProof) GetMutation() *SignedEntry

func (*MutationProof) ProtoMessage

func (*MutationProof) ProtoMessage()

func (*MutationProof) ProtoReflect added in v0.3.0

func (x *MutationProof) ProtoReflect() protoreflect.Message

func (*MutationProof) Reset

func (x *MutationProof) Reset()

func (*MutationProof) String

func (x *MutationProof) String() string

type QueueKeyUpdateRequest

type QueueKeyUpdateRequest struct {

	// directory_id identifies the directory in which the user lives.
	DirectoryId string `protobuf:"bytes,1,opt,name=directory_id,json=directoryId,proto3" json:"directory_id,omitempty"`
	// user_id specifies the id for the user whose keys are being updated.
	UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// key_data is the key data to store.
	KeyData []byte `protobuf:"bytes,3,opt,name=key_data,json=keyData,proto3" json:"key_data,omitempty"`
	// contains filtered or unexported fields
}

QueueKeyUpdateRequest enqueues an update to a user's identity keys.

func (*QueueKeyUpdateRequest) Descriptor deprecated

func (*QueueKeyUpdateRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueueKeyUpdateRequest.ProtoReflect.Descriptor instead.

func (*QueueKeyUpdateRequest) GetDirectoryId

func (x *QueueKeyUpdateRequest) GetDirectoryId() string

func (*QueueKeyUpdateRequest) GetKeyData

func (x *QueueKeyUpdateRequest) GetKeyData() []byte

func (*QueueKeyUpdateRequest) GetUserId

func (x *QueueKeyUpdateRequest) GetUserId() string

func (*QueueKeyUpdateRequest) ProtoMessage

func (*QueueKeyUpdateRequest) ProtoMessage()

func (*QueueKeyUpdateRequest) ProtoReflect added in v0.3.0

func (x *QueueKeyUpdateRequest) ProtoReflect() protoreflect.Message

func (*QueueKeyUpdateRequest) Reset

func (x *QueueKeyUpdateRequest) Reset()

func (*QueueKeyUpdateRequest) String

func (x *QueueKeyUpdateRequest) String() string

type Revision

type Revision struct {

	// directory_id is the directory identifier.
	DirectoryId string `protobuf:"bytes,1,opt,name=directory_id,json=directoryId,proto3" json:"directory_id,omitempty"`
	// map_root contains the map root and its inclusion in the log.
	MapRoot *MapRoot `protobuf:"bytes,5,opt,name=map_root,json=mapRoot,proto3" json:"map_root,omitempty"`
	// latest_log_root contains the most recent log root and its consistency
	// proof to the client's last seen log root.
	LatestLogRoot *LogRoot `protobuf:"bytes,6,opt,name=latest_log_root,json=latestLogRoot,proto3" json:"latest_log_root,omitempty"`
	// contains filtered or unexported fields
}

Revision represents a snapshot of the entire key directory and a diff of what changed between this revision and the previous revision.

func (*Revision) Descriptor deprecated

func (*Revision) Descriptor() ([]byte, []int)

Deprecated: Use Revision.ProtoReflect.Descriptor instead.

func (*Revision) GetDirectoryId

func (x *Revision) GetDirectoryId() string

func (*Revision) GetLatestLogRoot

func (x *Revision) GetLatestLogRoot() *LogRoot

func (*Revision) GetMapRoot

func (x *Revision) GetMapRoot() *MapRoot

func (*Revision) ProtoMessage

func (*Revision) ProtoMessage()

func (*Revision) ProtoReflect added in v0.3.0

func (x *Revision) ProtoReflect() protoreflect.Message

func (*Revision) Reset

func (x *Revision) Reset()

func (*Revision) String

func (x *Revision) String() string

type SignedEntry

type SignedEntry struct {

	// entry contains a serialized Entry.
	Entry []byte `protobuf:"bytes,1,opt,name=entry,proto3" json:"entry,omitempty"`
	// signatures on entry. Must be signed by keys from both previous and
	// current revisions. The first proves ownership of new revision key, and the
	// second proves that the correct owner is making this change.
	// The signature scheme is specified by the authorized_keys tink.Keyset.
	Signatures [][]byte `protobuf:"bytes,2,rep,name=signatures,proto3" json:"signatures,omitempty"`
	// contains filtered or unexported fields
}

SignedEntry is a cryptographically signed Entry. SignedEntry will be storead as a trillian.Map leaf.

func (*SignedEntry) Descriptor deprecated

func (*SignedEntry) Descriptor() ([]byte, []int)

Deprecated: Use SignedEntry.ProtoReflect.Descriptor instead.

func (*SignedEntry) GetEntry

func (x *SignedEntry) GetEntry() []byte

func (*SignedEntry) GetSignatures

func (x *SignedEntry) GetSignatures() [][]byte

func (*SignedEntry) ProtoMessage

func (*SignedEntry) ProtoMessage()

func (*SignedEntry) ProtoReflect added in v0.3.0

func (x *SignedEntry) ProtoReflect() protoreflect.Message

func (*SignedEntry) Reset

func (x *SignedEntry) Reset()

func (*SignedEntry) String

func (x *SignedEntry) String() string

type UndeleteDirectoryRequest

type UndeleteDirectoryRequest struct {
	DirectoryId string `protobuf:"bytes,1,opt,name=directory_id,json=directoryId,proto3" json:"directory_id,omitempty"`
	// contains filtered or unexported fields
}

UndeleteDirectoryRequest deletes a directory

func (*UndeleteDirectoryRequest) Descriptor deprecated

func (*UndeleteDirectoryRequest) Descriptor() ([]byte, []int)

Deprecated: Use UndeleteDirectoryRequest.ProtoReflect.Descriptor instead.

func (*UndeleteDirectoryRequest) GetDirectoryId

func (x *UndeleteDirectoryRequest) GetDirectoryId() string

func (*UndeleteDirectoryRequest) ProtoMessage

func (*UndeleteDirectoryRequest) ProtoMessage()

func (*UndeleteDirectoryRequest) ProtoReflect added in v0.3.0

func (x *UndeleteDirectoryRequest) ProtoReflect() protoreflect.Message

func (*UndeleteDirectoryRequest) Reset

func (x *UndeleteDirectoryRequest) Reset()

func (*UndeleteDirectoryRequest) String

func (x *UndeleteDirectoryRequest) String() string

type UnimplementedKeyTransparencyAdminServer

type UnimplementedKeyTransparencyAdminServer struct {
}

UnimplementedKeyTransparencyAdminServer can be embedded to have forward compatible implementations.

func (*UnimplementedKeyTransparencyAdminServer) CreateDirectory

func (*UnimplementedKeyTransparencyAdminServer) CreateInputLog

func (*UnimplementedKeyTransparencyAdminServer) DeleteDirectory

func (*UnimplementedKeyTransparencyAdminServer) GarbageCollect

func (*UnimplementedKeyTransparencyAdminServer) GetDirectory

func (*UnimplementedKeyTransparencyAdminServer) ListDirectories

func (*UnimplementedKeyTransparencyAdminServer) ListInputLogs

func (*UnimplementedKeyTransparencyAdminServer) UndeleteDirectory

func (*UnimplementedKeyTransparencyAdminServer) UpdateInputLog

type UnimplementedKeyTransparencyFrontendServer

type UnimplementedKeyTransparencyFrontendServer struct {
}

UnimplementedKeyTransparencyFrontendServer can be embedded to have forward compatible implementations.

func (*UnimplementedKeyTransparencyFrontendServer) QueueKeyUpdate

type UnimplementedKeyTransparencyServer

type UnimplementedKeyTransparencyServer struct {
}

UnimplementedKeyTransparencyServer can be embedded to have forward compatible implementations.

func (*UnimplementedKeyTransparencyServer) BatchGetUser

func (*UnimplementedKeyTransparencyServer) BatchGetUserIndex

func (*UnimplementedKeyTransparencyServer) BatchQueueUserUpdate

func (*UnimplementedKeyTransparencyServer) GetDirectory

func (*UnimplementedKeyTransparencyServer) GetLatestRevision

func (*UnimplementedKeyTransparencyServer) GetRevision

func (*UnimplementedKeyTransparencyServer) GetRevisionStream

func (*UnimplementedKeyTransparencyServer) GetUser

func (*UnimplementedKeyTransparencyServer) ListEntryHistory

func (*UnimplementedKeyTransparencyServer) ListMutations

func (*UnimplementedKeyTransparencyServer) ListMutationsStream

func (*UnimplementedKeyTransparencyServer) ListUserRevisions

func (*UnimplementedKeyTransparencyServer) QueueEntryUpdate

type UpdateEntryRequest

type UpdateEntryRequest struct {

	// directory_id identifies the directory in which the user lives.
	DirectoryId string `protobuf:"bytes,5,opt,name=directory_id,json=directoryId,proto3" json:"directory_id,omitempty"`
	// entry_update contains the user submitted update.
	EntryUpdate *EntryUpdate `protobuf:"bytes,4,opt,name=entry_update,json=entryUpdate,proto3" json:"entry_update,omitempty"`
	// contains filtered or unexported fields
}

UpdateEntryRequest updates a user's profile.

func (*UpdateEntryRequest) Descriptor deprecated

func (*UpdateEntryRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateEntryRequest.ProtoReflect.Descriptor instead.

func (*UpdateEntryRequest) GetDirectoryId

func (x *UpdateEntryRequest) GetDirectoryId() string

func (*UpdateEntryRequest) GetEntryUpdate

func (x *UpdateEntryRequest) GetEntryUpdate() *EntryUpdate

func (*UpdateEntryRequest) ProtoMessage

func (*UpdateEntryRequest) ProtoMessage()

func (*UpdateEntryRequest) ProtoReflect added in v0.3.0

func (x *UpdateEntryRequest) ProtoReflect() protoreflect.Message

func (*UpdateEntryRequest) Reset

func (x *UpdateEntryRequest) Reset()

func (*UpdateEntryRequest) String

func (x *UpdateEntryRequest) String() string

Jump to

Keyboard shortcuts

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