gitaly

package
v0.8.3-e2027 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NullTreeSHA       = "4b825dc642cb6eb9a060e54bf8d69288fbee4904" // SHA1("tree 0\0")
	ZeroSHA           = "0000000000000000000000000000000000000000"
	NullTreeSHA256    = "6ef19b41225c5369f1c104d45d8d85efa9b057b53b14b4b9b939dd74decc5321" // SHA256("tree 0\0")
	ZeroSHA256        = "0000000000000000000000000000000000000000000000000000000000000000"
	FormatSha256      = "OBJECT_FORMAT_SHA256"
	ClientName        = "gitlab-zoekt-indexer"
	SubmoduleFileMode = 0160000
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DelFunc

type DelFunc func(path string) error

type File

type File struct {
	Path     string
	Content  []byte
	Oid      string
	Size     int64
	TooLarge bool
}

type GitalyClient

type GitalyClient struct {
	FromHash string
	ToHash   string
	// contains filtered or unexported fields
}

func NewGitalyClient

func NewGitalyClient(config *StorageConfig, correlationID string, projectID uint32, limitFileSize int64) (*GitalyClient, error)

func (*GitalyClient) Close

func (gc *GitalyClient) Close()

func (*GitalyClient) EachFileChange

func (gc *GitalyClient) EachFileChange(put PutFunc, del DelFunc) error

func (*GitalyClient) GetCurrentSHA

func (gc *GitalyClient) GetCurrentSHA() (string, error)

func (*GitalyClient) IsValidSHA

func (gc *GitalyClient) IsValidSHA(SHA string) bool

type HashFinder added in v0.8.2

type HashFinder interface {
	// contains filtered or unexported methods
}

type PutFunc

type PutFunc func(file *File) error

type StorageConfig

type StorageConfig struct {
	Address      string `json:"address"`
	Token        string `json:"token"`
	StorageName  string `json:"storage"`
	RelativePath string `json:"relative_path"`
	ProjectPath  string `json:"project_path"`
	TokenVersion int    `json:"token_version"`
}

Jump to

Keyboard shortcuts

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