Documentation ¶
Index ¶
- Constants
- type Logger
- type Processor
- type Server
- func (srv *Server) Content(ctx context.Context, i *pb.ContentI) (*pb.ContentO, error)
- func (srv *Server) Head(ctx context.Context, i *pb.HeadI) (*pb.HeadO, error)
- func (srv *Server) ListMetaTree(i *pb.ListMetaTreeI, ostream pb.GitNogTree_ListMetaTreeServer) error
- func (srv *Server) ListStatTree(i *pb.ListStatTreeI, ostream pb.GitNogTree_ListStatTreeServer) error
- func (srv *Server) Meta(ctx context.Context, i *pb.MetaI) (*pb.MetaO, error)
- func (srv *Server) PutMeta(ctx context.Context, i *pb.PutMetaI) (*pb.PutMetaO, error)
- func (srv *Server) PutPathMetadata(ctx context.Context, i *pb.PutPathMetadataI) (*pb.PutPathMetadataO, error)
- func (srv *Server) Summary(ctx context.Context, i *pb.SummaryI) (*pb.SummaryO, error)
Constants ¶
View Source
const AAFsoReadRepo = fsoauthz.AAFsoReadRepo
View Source
const AAFsoWriteRepo = fsoauthz.AAFsoWriteRepo
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Processor ¶
type Processor interface { GlobalRepoPath(repoId uuid.I) (string, bool) GitNogHead(ctx context.Context, repoId uuid.I) (*pb.HeadO, error) GitNogSummary(ctx context.Context, repoId uuid.I) (*pb.SummaryO, error) GitNogMeta(ctx context.Context, repoId uuid.I) (*pb.MetaO, error) GitNogPutPathMetadata( ctx context.Context, repoId uuid.I, i *pb.PutPathMetadataI, ) (*pb.PutPathMetadataO, error) GitNogContent( ctx context.Context, repoId uuid.I, path string, ) (*pb.ContentO, error) ListStatTree( ctx context.Context, repoId uuid.I, gitCommit []byte, prefix string, fn shadows.ListStatTreeFunc, ) error ListMetaTree( ctx context.Context, repoId uuid.I, gitCommit []byte, fn shadows.ListMetaTreeFunc, ) error }
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func New ¶
func New( lg Logger, authn auth.Authenticator, authz auth.Authorizer, proc Processor, ) *Server
func (*Server) ListMetaTree ¶
func (srv *Server) ListMetaTree( i *pb.ListMetaTreeI, ostream pb.GitNogTree_ListMetaTreeServer, ) error
func (*Server) ListStatTree ¶
func (srv *Server) ListStatTree( i *pb.ListStatTreeI, ostream pb.GitNogTree_ListStatTreeServer, ) error
func (*Server) PutPathMetadata ¶
func (srv *Server) PutPathMetadata( ctx context.Context, i *pb.PutPathMetadataI, ) (*pb.PutPathMetadataO, error)
Click to show internal directories.
Click to hide internal directories.