gitnogd

package
v0.0.0-...-4450389 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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 Logger

type Logger interface {
	Errorw(msg string, kv ...interface{})
}

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) Content

func (srv *Server) Content(
	ctx context.Context, i *pb.ContentI,
) (*pb.ContentO, error)

func (*Server) Head

func (srv *Server) Head(ctx context.Context, i *pb.HeadI) (*pb.HeadO, error)

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) Meta

func (srv *Server) Meta(ctx context.Context, i *pb.MetaI) (*pb.MetaO, error)

func (*Server) PutMeta

func (srv *Server) PutMeta(
	ctx context.Context, i *pb.PutMetaI,
) (*pb.PutMetaO, error)

func (*Server) PutPathMetadata

func (srv *Server) PutPathMetadata(
	ctx context.Context, i *pb.PutPathMetadataI,
) (*pb.PutPathMetadataO, error)

func (*Server) Summary

func (srv *Server) Summary(
	ctx context.Context, i *pb.SummaryI,
) (*pb.SummaryO, error)

Jump to

Keyboard shortcuts

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