git

package
v0.0.0-...-ff642e8 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: MIT Imports: 47 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_git_data_proto protoreflect.FileDescriptor

Functions

func Clone

func Clone(ctx context.Context, appId, installationId int64, privateKeyFile, dir, repo, commit string) error

func InitObjectStorageRepository

func InitObjectStorageRepository(ctx context.Context, b ObjectStorageInterface, url, prefix string, auth *http.BasicAuth) (*git.Repository, error)

func RegisterGitDataServer

func RegisterGitDataServer(s *grpc.Server, srv GitDataServer)

Types

type Commit

type Commit struct {
	Sha       string     `protobuf:"bytes,1,opt,name=sha,proto3" json:"sha,omitempty"`
	Author    *Signature `protobuf:"bytes,2,opt,name=author,proto3" json:"author,omitempty"`
	Committer *Signature `protobuf:"bytes,3,opt,name=committer,proto3" json:"committer,omitempty"`
	Tree      string     `protobuf:"bytes,4,opt,name=tree,proto3" json:"tree,omitempty"`
	Message   string     `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"`
	Parents   []string   `protobuf:"bytes,6,rep,name=parents,proto3" json:"parents,omitempty"`
	// contains filtered or unexported fields
}

func (*Commit) Descriptor deprecated

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

Deprecated: Use Commit.ProtoReflect.Descriptor instead.

func (*Commit) GetAuthor

func (x *Commit) GetAuthor() *Signature

func (*Commit) GetCommitter

func (x *Commit) GetCommitter() *Signature

func (*Commit) GetMessage

func (x *Commit) GetMessage() string

func (*Commit) GetParents

func (x *Commit) GetParents() []string

func (*Commit) GetSha

func (x *Commit) GetSha() string

func (*Commit) GetTree

func (x *Commit) GetTree() string

func (*Commit) ProtoMessage

func (*Commit) ProtoMessage()

func (*Commit) ProtoReflect

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

func (*Commit) Reset

func (x *Commit) Reset()

func (*Commit) String

func (x *Commit) String() string

type DataService

type DataService struct {
	// contains filtered or unexported fields
}

func NewDataService

func NewDataService(repo map[string]*goGit.Repository) (*DataService, error)

func (*DataService) GetBlob

func (*DataService) GetCommit

func (*DataService) GetFile

func (*DataService) GetReference

func (*DataService) GetRepository

func (*DataService) GetTree

func (*DataService) ListBranch

func (*DataService) ListReferences

func (*DataService) ListRepositories

func (*DataService) ListTag

func (*DataService) Stat

type EncodedObject

type EncodedObject struct {
	// contains filtered or unexported fields
}

func (*EncodedObject) Hash

func (e *EncodedObject) Hash() plumbing.Hash

func (*EncodedObject) MarshalJSON

func (e *EncodedObject) MarshalJSON() ([]byte, error)

func (*EncodedObject) Reader

func (e *EncodedObject) Reader() (io.ReadCloser, error)

func (*EncodedObject) SetReader

func (e *EncodedObject) SetReader(r io.ReadCloser)

func (*EncodedObject) SetSize

func (e *EncodedObject) SetSize(i int64)

func (*EncodedObject) SetType

func (e *EncodedObject) SetType(objectType plumbing.ObjectType)

func (*EncodedObject) SetWriter

func (e *EncodedObject) SetWriter(w *objfile.Writer)

func (*EncodedObject) Size

func (e *EncodedObject) Size() int64

func (*EncodedObject) Type

func (e *EncodedObject) Type() plumbing.ObjectType

func (*EncodedObject) UnmarshalJSON

func (e *EncodedObject) UnmarshalJSON(b []byte) error

func (*EncodedObject) Writer

func (e *EncodedObject) Writer() (io.WriteCloser, error)

type GitDataClient

GitDataClient is the client API for GitData service.

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

func NewGitDataClient

func NewGitDataClient(cc grpc.ClientConnInterface) GitDataClient

type ObjectStorageInterface

type ObjectStorageInterface interface {
	PutReader(ctx context.Context, name string, data io.Reader) error
	Delete(ctx context.Context, name string) error
	Get(ctx context.Context, name string) (*storage.Object, error)
	List(ctx context.Context, prefix string) ([]*storage.Object, error)
}

type ObjectStorageStorer

type ObjectStorageStorer struct {
	// contains filtered or unexported fields
}

func NewObjectStorageStorer

func NewObjectStorageStorer(b ObjectStorageInterface, rootPath string, cachePool *client.SinglePool) *ObjectStorageStorer

func (*ObjectStorageStorer) AddAlternate

func (b *ObjectStorageStorer) AddAlternate(remote string) error

func (*ObjectStorageStorer) CheckAndSetReference

func (b *ObjectStorageStorer) CheckAndSetReference(new, old *plumbing.Reference) error

func (*ObjectStorageStorer) Config

func (b *ObjectStorageStorer) Config() (*config.Config, error)

func (*ObjectStorageStorer) CountLooseRefs

func (b *ObjectStorageStorer) CountLooseRefs() (int, error)

func (*ObjectStorageStorer) EnabledCache

func (b *ObjectStorageStorer) EnabledCache() bool

func (*ObjectStorageStorer) EncodedObject

func (b *ObjectStorageStorer) EncodedObject(objectType plumbing.ObjectType, hash plumbing.Hash) (plumbing.EncodedObject, error)

func (*ObjectStorageStorer) EncodedObjectSize

func (b *ObjectStorageStorer) EncodedObjectSize(hash plumbing.Hash) (int64, error)

func (*ObjectStorageStorer) Exist

func (b *ObjectStorageStorer) Exist() (bool, error)

func (*ObjectStorageStorer) HasEncodedObject

func (b *ObjectStorageStorer) HasEncodedObject(hash plumbing.Hash) error

func (*ObjectStorageStorer) IncludePackFile

func (b *ObjectStorageStorer) IncludePackFile(ctx context.Context) bool

func (*ObjectStorageStorer) Index

func (b *ObjectStorageStorer) Index() (*index.Index, error)

func (*ObjectStorageStorer) InflatePackFile

func (b *ObjectStorageStorer) InflatePackFile(ctx context.Context) error

func (*ObjectStorageStorer) IterEncodedObjects

func (b *ObjectStorageStorer) IterEncodedObjects(objectType plumbing.ObjectType) (storer.EncodedObjectIter, error)

func (*ObjectStorageStorer) IterReferences

func (b *ObjectStorageStorer) IterReferences() (storer.ReferenceIter, error)

func (*ObjectStorageStorer) Module

func (b *ObjectStorageStorer) Module(name string) (gitStorage.Storer, error)

func (*ObjectStorageStorer) NewEncodedObject

func (b *ObjectStorageStorer) NewEncodedObject() plumbing.EncodedObject

func (*ObjectStorageStorer) PackRefs

func (b *ObjectStorageStorer) PackRefs() error

func (*ObjectStorageStorer) Reference

func (*ObjectStorageStorer) RemoveReference

func (b *ObjectStorageStorer) RemoveReference(name plumbing.ReferenceName) error

func (*ObjectStorageStorer) SetConfig

func (b *ObjectStorageStorer) SetConfig(conf *config.Config) error

func (*ObjectStorageStorer) SetEncodedObject

func (b *ObjectStorageStorer) SetEncodedObject(e plumbing.EncodedObject) (plumbing.Hash, error)

func (*ObjectStorageStorer) SetIndex

func (b *ObjectStorageStorer) SetIndex(idx *index.Index) error

func (*ObjectStorageStorer) SetReference

func (b *ObjectStorageStorer) SetReference(ref *plumbing.Reference) error

func (*ObjectStorageStorer) SetShallow

func (b *ObjectStorageStorer) SetShallow(commits []plumbing.Hash) error

func (*ObjectStorageStorer) Shallow

func (b *ObjectStorageStorer) Shallow() ([]plumbing.Hash, error)

type Packfile

type Packfile struct {
	// contains filtered or unexported fields
}

Packfile is a decoder for git's packfile. Ref: https://git-scm.com/docs/pack-format Ref: http://shafiul.github.io/gitbook/7_the_packfile.html

func NewPackfile

func NewPackfile(idx idxfile.Index, f io.ReadSeekCloser) (*Packfile, error)

func (*Packfile) All

func (p *Packfile) All() ([]plumbing.EncodedObject, error)

func (*Packfile) Get

type Reference

type Reference struct {
	Name   string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Target string `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"`
	Hash   string `protobuf:"bytes,3,opt,name=hash,proto3" json:"hash,omitempty"`
	// contains filtered or unexported fields
}

func (*Reference) Descriptor deprecated

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

Deprecated: Use Reference.ProtoReflect.Descriptor instead.

func (*Reference) GetHash

func (x *Reference) GetHash() string

func (*Reference) GetName

func (x *Reference) GetName() string

func (*Reference) GetTarget

func (x *Reference) GetTarget() string

func (*Reference) ProtoMessage

func (*Reference) ProtoMessage()

func (*Reference) ProtoReflect

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

func (*Reference) Reset

func (x *Reference) Reset()

func (*Reference) String

func (x *Reference) String() string

type Repository

type Repository struct {
	Name          string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	DefaultBranch string `protobuf:"bytes,2,opt,name=default_branch,json=defaultBranch,proto3" json:"default_branch,omitempty"`
	Url           string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"`
	GitUrl        string `protobuf:"bytes,4,opt,name=git_url,json=gitUrl,proto3" json:"git_url,omitempty"`
	// contains filtered or unexported fields
}

func (*Repository) Descriptor deprecated

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

Deprecated: Use Repository.ProtoReflect.Descriptor instead.

func (*Repository) GetDefaultBranch

func (x *Repository) GetDefaultBranch() string

func (*Repository) GetGitUrl

func (x *Repository) GetGitUrl() string

func (*Repository) GetName

func (x *Repository) GetName() string

func (*Repository) GetUrl

func (x *Repository) GetUrl() string

func (*Repository) ProtoMessage

func (*Repository) ProtoMessage()

func (*Repository) ProtoReflect

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

func (*Repository) Reset

func (x *Repository) Reset()

func (*Repository) String

func (x *Repository) String() string

type RequestGetBlob

type RequestGetBlob struct {
	Repo string `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"`
	Sha  string `protobuf:"bytes,2,opt,name=sha,proto3" json:"sha,omitempty"`
	// contains filtered or unexported fields
}

func (*RequestGetBlob) Descriptor deprecated

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

Deprecated: Use RequestGetBlob.ProtoReflect.Descriptor instead.

func (*RequestGetBlob) GetRepo

func (x *RequestGetBlob) GetRepo() string

func (*RequestGetBlob) GetSha

func (x *RequestGetBlob) GetSha() string

func (*RequestGetBlob) ProtoMessage

func (*RequestGetBlob) ProtoMessage()

func (*RequestGetBlob) ProtoReflect

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

func (*RequestGetBlob) Reset

func (x *RequestGetBlob) Reset()

func (*RequestGetBlob) String

func (x *RequestGetBlob) String() string

type RequestGetCommit

type RequestGetCommit struct {
	Repo string `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"`
	Sha  string `protobuf:"bytes,2,opt,name=sha,proto3" json:"sha,omitempty"`
	Ref  string `protobuf:"bytes,3,opt,name=ref,proto3" json:"ref,omitempty"`
	// contains filtered or unexported fields
}

func (*RequestGetCommit) Descriptor deprecated

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

Deprecated: Use RequestGetCommit.ProtoReflect.Descriptor instead.

func (*RequestGetCommit) GetRef

func (x *RequestGetCommit) GetRef() string

func (*RequestGetCommit) GetRepo

func (x *RequestGetCommit) GetRepo() string

func (*RequestGetCommit) GetSha

func (x *RequestGetCommit) GetSha() string

func (*RequestGetCommit) ProtoMessage

func (*RequestGetCommit) ProtoMessage()

func (*RequestGetCommit) ProtoReflect

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

func (*RequestGetCommit) Reset

func (x *RequestGetCommit) Reset()

func (*RequestGetCommit) String

func (x *RequestGetCommit) String() string

type RequestGetFile

type RequestGetFile struct {
	Repo string `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"`
	Ref  string `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"`
	Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

func (*RequestGetFile) Descriptor deprecated

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

Deprecated: Use RequestGetFile.ProtoReflect.Descriptor instead.

func (*RequestGetFile) GetPath

func (x *RequestGetFile) GetPath() string

func (*RequestGetFile) GetRef

func (x *RequestGetFile) GetRef() string

func (*RequestGetFile) GetRepo

func (x *RequestGetFile) GetRepo() string

func (*RequestGetFile) ProtoMessage

func (*RequestGetFile) ProtoMessage()

func (*RequestGetFile) ProtoReflect

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

func (*RequestGetFile) Reset

func (x *RequestGetFile) Reset()

func (*RequestGetFile) String

func (x *RequestGetFile) String() string

type RequestGetReference

type RequestGetReference struct {
	Repo string `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"`
	Ref  string `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"`
	// contains filtered or unexported fields
}

func (*RequestGetReference) Descriptor deprecated

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

Deprecated: Use RequestGetReference.ProtoReflect.Descriptor instead.

func (*RequestGetReference) GetRef

func (x *RequestGetReference) GetRef() string

func (*RequestGetReference) GetRepo

func (x *RequestGetReference) GetRepo() string

func (*RequestGetReference) ProtoMessage

func (*RequestGetReference) ProtoMessage()

func (*RequestGetReference) ProtoReflect

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

func (*RequestGetReference) Reset

func (x *RequestGetReference) Reset()

func (*RequestGetReference) String

func (x *RequestGetReference) String() string

type RequestGetRepository

type RequestGetRepository struct {
	Repo string `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"`
	// contains filtered or unexported fields
}

func (*RequestGetRepository) Descriptor deprecated

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

Deprecated: Use RequestGetRepository.ProtoReflect.Descriptor instead.

func (*RequestGetRepository) GetRepo

func (x *RequestGetRepository) GetRepo() string

func (*RequestGetRepository) ProtoMessage

func (*RequestGetRepository) ProtoMessage()

func (*RequestGetRepository) ProtoReflect

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

func (*RequestGetRepository) Reset

func (x *RequestGetRepository) Reset()

func (*RequestGetRepository) String

func (x *RequestGetRepository) String() string

type RequestGetTree

type RequestGetTree struct {
	Repo      string `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"`
	Sha       string `protobuf:"bytes,2,opt,name=sha,proto3" json:"sha,omitempty"`
	Ref       string `protobuf:"bytes,3,opt,name=ref,proto3" json:"ref,omitempty"`
	Path      string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"`
	Recursive bool   `protobuf:"varint,5,opt,name=recursive,proto3" json:"recursive,omitempty"`
	// contains filtered or unexported fields
}

func (*RequestGetTree) Descriptor deprecated

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

Deprecated: Use RequestGetTree.ProtoReflect.Descriptor instead.

func (*RequestGetTree) GetPath

func (x *RequestGetTree) GetPath() string

func (*RequestGetTree) GetRecursive

func (x *RequestGetTree) GetRecursive() bool

func (*RequestGetTree) GetRef

func (x *RequestGetTree) GetRef() string

func (*RequestGetTree) GetRepo

func (x *RequestGetTree) GetRepo() string

func (*RequestGetTree) GetSha

func (x *RequestGetTree) GetSha() string

func (*RequestGetTree) ProtoMessage

func (*RequestGetTree) ProtoMessage()

func (*RequestGetTree) ProtoReflect

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

func (*RequestGetTree) Reset

func (x *RequestGetTree) Reset()

func (*RequestGetTree) String

func (x *RequestGetTree) String() string

type RequestListBranch

type RequestListBranch struct {
	Repo string `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"`
	// contains filtered or unexported fields
}

func (*RequestListBranch) Descriptor deprecated

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

Deprecated: Use RequestListBranch.ProtoReflect.Descriptor instead.

func (*RequestListBranch) GetRepo

func (x *RequestListBranch) GetRepo() string

func (*RequestListBranch) ProtoMessage

func (*RequestListBranch) ProtoMessage()

func (*RequestListBranch) ProtoReflect

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

func (*RequestListBranch) Reset

func (x *RequestListBranch) Reset()

func (*RequestListBranch) String

func (x *RequestListBranch) String() string

type RequestListReferences

type RequestListReferences struct {
	Repo string `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"`
	// contains filtered or unexported fields
}

func (*RequestListReferences) Descriptor deprecated

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

Deprecated: Use RequestListReferences.ProtoReflect.Descriptor instead.

func (*RequestListReferences) GetRepo

func (x *RequestListReferences) GetRepo() string

func (*RequestListReferences) ProtoMessage

func (*RequestListReferences) ProtoMessage()

func (*RequestListReferences) ProtoReflect

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

func (*RequestListReferences) Reset

func (x *RequestListReferences) Reset()

func (*RequestListReferences) String

func (x *RequestListReferences) String() string

type RequestListRepositories

type RequestListRepositories struct {
	// contains filtered or unexported fields
}

func (*RequestListRepositories) Descriptor deprecated

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

Deprecated: Use RequestListRepositories.ProtoReflect.Descriptor instead.

func (*RequestListRepositories) ProtoMessage

func (*RequestListRepositories) ProtoMessage()

func (*RequestListRepositories) ProtoReflect

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

func (*RequestListRepositories) Reset

func (x *RequestListRepositories) Reset()

func (*RequestListRepositories) String

func (x *RequestListRepositories) String() string

type RequestListTag

type RequestListTag struct {
	Repo string `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"`
	// contains filtered or unexported fields
}

func (*RequestListTag) Descriptor deprecated

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

Deprecated: Use RequestListTag.ProtoReflect.Descriptor instead.

func (*RequestListTag) GetRepo

func (x *RequestListTag) GetRepo() string

func (*RequestListTag) ProtoMessage

func (*RequestListTag) ProtoMessage()

func (*RequestListTag) ProtoReflect

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

func (*RequestListTag) Reset

func (x *RequestListTag) Reset()

func (*RequestListTag) String

func (x *RequestListTag) String() string

type RequestStat

type RequestStat struct {
	Repo string `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"`
	Ref  string `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"`
	Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

func (*RequestStat) Descriptor deprecated

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

Deprecated: Use RequestStat.ProtoReflect.Descriptor instead.

func (*RequestStat) GetPath

func (x *RequestStat) GetPath() string

func (*RequestStat) GetRef

func (x *RequestStat) GetRef() string

func (*RequestStat) GetRepo

func (x *RequestStat) GetRepo() string

func (*RequestStat) ProtoMessage

func (*RequestStat) ProtoMessage()

func (*RequestStat) ProtoReflect

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

func (*RequestStat) Reset

func (x *RequestStat) Reset()

func (*RequestStat) String

func (x *RequestStat) String() string

type ResponseGetBlob

type ResponseGetBlob struct {
	Sha     string `protobuf:"bytes,1,opt,name=sha,proto3" json:"sha,omitempty"`
	Size    int64  `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
	Content []byte `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

func (*ResponseGetBlob) Descriptor deprecated

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

Deprecated: Use ResponseGetBlob.ProtoReflect.Descriptor instead.

func (*ResponseGetBlob) GetContent

func (x *ResponseGetBlob) GetContent() []byte

func (*ResponseGetBlob) GetSha

func (x *ResponseGetBlob) GetSha() string

func (*ResponseGetBlob) GetSize

func (x *ResponseGetBlob) GetSize() int64

func (*ResponseGetBlob) ProtoMessage

func (*ResponseGetBlob) ProtoMessage()

func (*ResponseGetBlob) ProtoReflect

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

func (*ResponseGetBlob) Reset

func (x *ResponseGetBlob) Reset()

func (*ResponseGetBlob) String

func (x *ResponseGetBlob) String() string

type ResponseGetCommit

type ResponseGetCommit struct {
	Commit *Commit `protobuf:"bytes,1,opt,name=commit,proto3" json:"commit,omitempty"`
	// contains filtered or unexported fields
}

func (*ResponseGetCommit) Descriptor deprecated

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

Deprecated: Use ResponseGetCommit.ProtoReflect.Descriptor instead.

func (*ResponseGetCommit) GetCommit

func (x *ResponseGetCommit) GetCommit() *Commit

func (*ResponseGetCommit) ProtoMessage

func (*ResponseGetCommit) ProtoMessage()

func (*ResponseGetCommit) ProtoReflect

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

func (*ResponseGetCommit) Reset

func (x *ResponseGetCommit) Reset()

func (*ResponseGetCommit) String

func (x *ResponseGetCommit) String() string

type ResponseGetFile

type ResponseGetFile struct {
	Content []byte `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
	RawUrl  string `protobuf:"bytes,2,opt,name=raw_url,json=rawUrl,proto3" json:"raw_url,omitempty"`
	EditUrl string `protobuf:"bytes,3,opt,name=edit_url,json=editUrl,proto3" json:"edit_url,omitempty"`
	Sha     string `protobuf:"bytes,4,opt,name=sha,proto3" json:"sha,omitempty"`
	// contains filtered or unexported fields
}

func (*ResponseGetFile) Descriptor deprecated

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

Deprecated: Use ResponseGetFile.ProtoReflect.Descriptor instead.

func (*ResponseGetFile) GetContent

func (x *ResponseGetFile) GetContent() []byte

func (*ResponseGetFile) GetEditUrl

func (x *ResponseGetFile) GetEditUrl() string

func (*ResponseGetFile) GetRawUrl

func (x *ResponseGetFile) GetRawUrl() string

func (*ResponseGetFile) GetSha

func (x *ResponseGetFile) GetSha() string

func (*ResponseGetFile) ProtoMessage

func (*ResponseGetFile) ProtoMessage()

func (*ResponseGetFile) ProtoReflect

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

func (*ResponseGetFile) Reset

func (x *ResponseGetFile) Reset()

func (*ResponseGetFile) String

func (x *ResponseGetFile) String() string

type ResponseGetReference

type ResponseGetReference struct {
	Ref *Reference `protobuf:"bytes,1,opt,name=ref,proto3" json:"ref,omitempty"`
	// contains filtered or unexported fields
}

func (*ResponseGetReference) Descriptor deprecated

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

Deprecated: Use ResponseGetReference.ProtoReflect.Descriptor instead.

func (*ResponseGetReference) GetRef

func (x *ResponseGetReference) GetRef() *Reference

func (*ResponseGetReference) ProtoMessage

func (*ResponseGetReference) ProtoMessage()

func (*ResponseGetReference) ProtoReflect

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

func (*ResponseGetReference) Reset

func (x *ResponseGetReference) Reset()

func (*ResponseGetReference) String

func (x *ResponseGetReference) String() string

type ResponseGetRepository

type ResponseGetRepository struct {
	Name    string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Url     string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
	Hosting string `protobuf:"bytes,3,opt,name=hosting,proto3" json:"hosting,omitempty"`
	// contains filtered or unexported fields
}

func (*ResponseGetRepository) Descriptor deprecated

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

Deprecated: Use ResponseGetRepository.ProtoReflect.Descriptor instead.

func (*ResponseGetRepository) GetHosting

func (x *ResponseGetRepository) GetHosting() string

func (*ResponseGetRepository) GetName

func (x *ResponseGetRepository) GetName() string

func (*ResponseGetRepository) GetUrl

func (x *ResponseGetRepository) GetUrl() string

func (*ResponseGetRepository) ProtoMessage

func (*ResponseGetRepository) ProtoMessage()

func (*ResponseGetRepository) ProtoReflect

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

func (*ResponseGetRepository) Reset

func (x *ResponseGetRepository) Reset()

func (*ResponseGetRepository) String

func (x *ResponseGetRepository) String() string

type ResponseGetTree

type ResponseGetTree struct {
	Sha  string       `protobuf:"bytes,1,opt,name=sha,proto3" json:"sha,omitempty"`
	Tree []*TreeEntry `protobuf:"bytes,2,rep,name=tree,proto3" json:"tree,omitempty"`
	// contains filtered or unexported fields
}

func (*ResponseGetTree) Descriptor deprecated

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

Deprecated: Use ResponseGetTree.ProtoReflect.Descriptor instead.

func (*ResponseGetTree) GetSha

func (x *ResponseGetTree) GetSha() string

func (*ResponseGetTree) GetTree

func (x *ResponseGetTree) GetTree() []*TreeEntry

func (*ResponseGetTree) ProtoMessage

func (*ResponseGetTree) ProtoMessage()

func (*ResponseGetTree) ProtoReflect

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

func (*ResponseGetTree) Reset

func (x *ResponseGetTree) Reset()

func (*ResponseGetTree) String

func (x *ResponseGetTree) String() string

type ResponseListBranch

type ResponseListBranch struct {
	Branches []*Reference `protobuf:"bytes,1,rep,name=branches,proto3" json:"branches,omitempty"`
	// contains filtered or unexported fields
}

func (*ResponseListBranch) Descriptor deprecated

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

Deprecated: Use ResponseListBranch.ProtoReflect.Descriptor instead.

func (*ResponseListBranch) GetBranches

func (x *ResponseListBranch) GetBranches() []*Reference

func (*ResponseListBranch) ProtoMessage

func (*ResponseListBranch) ProtoMessage()

func (*ResponseListBranch) ProtoReflect

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

func (*ResponseListBranch) Reset

func (x *ResponseListBranch) Reset()

func (*ResponseListBranch) String

func (x *ResponseListBranch) String() string

type ResponseListReferences

type ResponseListReferences struct {
	Refs []*Reference `protobuf:"bytes,1,rep,name=refs,proto3" json:"refs,omitempty"`
	// contains filtered or unexported fields
}

func (*ResponseListReferences) Descriptor deprecated

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

Deprecated: Use ResponseListReferences.ProtoReflect.Descriptor instead.

func (*ResponseListReferences) GetRefs

func (x *ResponseListReferences) GetRefs() []*Reference

func (*ResponseListReferences) ProtoMessage

func (*ResponseListReferences) ProtoMessage()

func (*ResponseListReferences) ProtoReflect

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

func (*ResponseListReferences) Reset

func (x *ResponseListReferences) Reset()

func (*ResponseListReferences) String

func (x *ResponseListReferences) String() string

type ResponseListRepositories

type ResponseListRepositories struct {
	Repositories []*Repository `protobuf:"bytes,1,rep,name=repositories,proto3" json:"repositories,omitempty"`
	// contains filtered or unexported fields
}

func (*ResponseListRepositories) Descriptor deprecated

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

Deprecated: Use ResponseListRepositories.ProtoReflect.Descriptor instead.

func (*ResponseListRepositories) GetRepositories

func (x *ResponseListRepositories) GetRepositories() []*Repository

func (*ResponseListRepositories) ProtoMessage

func (*ResponseListRepositories) ProtoMessage()

func (*ResponseListRepositories) ProtoReflect

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

func (*ResponseListRepositories) Reset

func (x *ResponseListRepositories) Reset()

func (*ResponseListRepositories) String

func (x *ResponseListRepositories) String() string

type ResponseListTag

type ResponseListTag struct {
	Tags []*Reference `protobuf:"bytes,1,rep,name=tags,proto3" json:"tags,omitempty"`
	// contains filtered or unexported fields
}

func (*ResponseListTag) Descriptor deprecated

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

Deprecated: Use ResponseListTag.ProtoReflect.Descriptor instead.

func (*ResponseListTag) GetTags

func (x *ResponseListTag) GetTags() []*Reference

func (*ResponseListTag) ProtoMessage

func (*ResponseListTag) ProtoMessage()

func (*ResponseListTag) ProtoReflect

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

func (*ResponseListTag) Reset

func (x *ResponseListTag) Reset()

func (*ResponseListTag) String

func (x *ResponseListTag) String() string

type ResponseStat

type ResponseStat struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Hash string `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
	Mode uint32 `protobuf:"varint,3,opt,name=mode,proto3" json:"mode,omitempty"`
	// contains filtered or unexported fields
}

func (*ResponseStat) Descriptor deprecated

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

Deprecated: Use ResponseStat.ProtoReflect.Descriptor instead.

func (*ResponseStat) GetHash

func (x *ResponseStat) GetHash() string

func (*ResponseStat) GetMode

func (x *ResponseStat) GetMode() uint32

func (*ResponseStat) GetName

func (x *ResponseStat) GetName() string

func (*ResponseStat) ProtoMessage

func (*ResponseStat) ProtoMessage()

func (*ResponseStat) ProtoReflect

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

func (*ResponseStat) Reset

func (x *ResponseStat) Reset()

func (*ResponseStat) String

func (x *ResponseStat) String() string

type Signature

type Signature struct {
	Name  string                 `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Email string                 `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	When  *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=when,proto3" json:"when,omitempty"`
	// contains filtered or unexported fields
}

func (*Signature) Descriptor deprecated

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

Deprecated: Use Signature.ProtoReflect.Descriptor instead.

func (*Signature) GetEmail

func (x *Signature) GetEmail() string

func (*Signature) GetName

func (x *Signature) GetName() string

func (*Signature) GetWhen

func (x *Signature) GetWhen() *timestamppb.Timestamp

func (*Signature) ProtoMessage

func (*Signature) ProtoMessage()

func (*Signature) ProtoReflect

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

func (*Signature) Reset

func (x *Signature) Reset()

func (*Signature) String

func (x *Signature) String() string

type TreeEntry

type TreeEntry struct {
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	Mode string `protobuf:"bytes,2,opt,name=mode,proto3" json:"mode,omitempty"`
	Sha  string `protobuf:"bytes,3,opt,name=sha,proto3" json:"sha,omitempty"`
	Size int64  `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"`
	// contains filtered or unexported fields
}

func (*TreeEntry) Descriptor deprecated

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

Deprecated: Use TreeEntry.ProtoReflect.Descriptor instead.

func (*TreeEntry) GetMode

func (x *TreeEntry) GetMode() string

func (*TreeEntry) GetPath

func (x *TreeEntry) GetPath() string

func (*TreeEntry) GetSha

func (x *TreeEntry) GetSha() string

func (*TreeEntry) GetSize

func (x *TreeEntry) GetSize() int64

func (*TreeEntry) ProtoMessage

func (*TreeEntry) ProtoMessage()

func (*TreeEntry) ProtoReflect

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

func (*TreeEntry) Reset

func (x *TreeEntry) Reset()

func (*TreeEntry) String

func (x *TreeEntry) String() string

type UnimplementedGitDataServer

type UnimplementedGitDataServer struct {
}

UnimplementedGitDataServer can be embedded to have forward compatible implementations.

func (*UnimplementedGitDataServer) GetBlob

func (*UnimplementedGitDataServer) GetCommit

func (*UnimplementedGitDataServer) GetFile

func (*UnimplementedGitDataServer) GetReference

func (*UnimplementedGitDataServer) GetRepository

func (*UnimplementedGitDataServer) GetTree

func (*UnimplementedGitDataServer) ListBranch

func (*UnimplementedGitDataServer) ListReferences

func (*UnimplementedGitDataServer) ListRepositories

func (*UnimplementedGitDataServer) ListTag

func (*UnimplementedGitDataServer) Stat

Jump to

Keyboard shortcuts

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