gitaly

package
v8.7.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2019 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseConnections added in v1.4.0

func CloseConnections()

func UnmarshalJSON

func UnmarshalJSON(s string, msg proto.Message) error

Types

type BlobClient

type BlobClient struct {
	gitalypb.BlobServiceClient
}

func NewBlobClient

func NewBlobClient(server Server) (*BlobClient, error)

func (*BlobClient) SendBlob

func (client *BlobClient) SendBlob(ctx context.Context, w http.ResponseWriter, request *gitalypb.GetBlobRequest) error

type DiffClient

type DiffClient struct {
	gitalypb.DiffServiceClient
}

func NewDiffClient

func NewDiffClient(server Server) (*DiffClient, error)

func (*DiffClient) SendRawDiff

func (client *DiffClient) SendRawDiff(ctx context.Context, w http.ResponseWriter, request *gitalypb.RawDiffRequest) error

func (*DiffClient) SendRawPatch

func (client *DiffClient) SendRawPatch(ctx context.Context, w http.ResponseWriter, request *gitalypb.RawPatchRequest) error

type NamespaceClient

type NamespaceClient struct {
	gitalypb.NamespaceServiceClient
}

NamespaceClient encapsulates NamespaceService calls

func NewNamespaceClient

func NewNamespaceClient(server Server) (*NamespaceClient, error)

NewNamespaceClient is only used by the Gitaly integration tests at present

type RepositoryClient

type RepositoryClient struct {
	gitalypb.RepositoryServiceClient
}

RepositoryClient encapsulates RepositoryService calls

func NewRepositoryClient

func NewRepositoryClient(server Server) (*RepositoryClient, error)

func (*RepositoryClient) ArchiveReader

func (client *RepositoryClient) ArchiveReader(ctx context.Context, request *gitalypb.GetArchiveRequest) (io.Reader, error)

ArchiveReader performs a GetArchive Gitaly request and returns an io.Reader for the response

func (*RepositoryClient) SnapshotReader

func (client *RepositoryClient) SnapshotReader(ctx context.Context, request *gitalypb.GetSnapshotRequest) (io.Reader, error)

SnapshotReader performs a GetSnapshot Gitaly request and returns an io.Reader for the response

type Server

type Server struct {
	Address string `json:"address"`
	Token   string `json:"token"`
}

type SmartHTTPClient added in v1.4.0

type SmartHTTPClient struct {
	gitalypb.SmartHTTPServiceClient
}

func NewSmartHTTPClient added in v1.4.0

func NewSmartHTTPClient(server Server) (*SmartHTTPClient, error)

func (*SmartHTTPClient) InfoRefsResponseReader

func (client *SmartHTTPClient) InfoRefsResponseReader(ctx context.Context, repo *gitalypb.Repository, rpc string, gitConfigOptions []string, gitProtocol string) (io.Reader, error)

func (*SmartHTTPClient) ReceivePack added in v1.4.3

func (client *SmartHTTPClient) ReceivePack(ctx context.Context, repo *gitalypb.Repository, glId string, glUsername string, glRepository string, gitConfigOptions []string, clientRequest io.Reader, clientResponse io.Writer, gitProtocol string) error

func (*SmartHTTPClient) UploadPack added in v1.4.3

func (client *SmartHTTPClient) UploadPack(ctx context.Context, repo *gitalypb.Repository, clientRequest io.Reader, clientResponse io.Writer, gitConfigOptions []string, gitProtocol string) error

Jump to

Keyboard shortcuts

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