bt_vcs

package
v0.0.0-...-0807a26 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BigTableVCS

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

BigTableVCS implements the vcsinfo.VCS interface based on a BT-backed GitStore.

func New

func New(ctx context.Context, gitStore gitstore.GitStore, branch string) (*BigTableVCS, error)

New returns an instance of vcsinfo.VCS that is backed by the given GitStore and uses the gittiles.Repo to retrieve files. Each instance provides an interface to one branch. The instance of gitiles.Repo is only used to fetch files.

func (*BigTableVCS) ByIndex

func (b *BigTableVCS) ByIndex(ctx context.Context, idx int) (*vcsinfo.LongCommit, error)

ByIndex implements the vcsinfo.VCS interface

func (*BigTableVCS) Details

func (b *BigTableVCS) Details(ctx context.Context, hash string, _ bool) (*vcsinfo.LongCommit, error)

Details implements the vcsinfo.VCS interface

func (*BigTableVCS) DetailsMulti

func (b *BigTableVCS) DetailsMulti(ctx context.Context, hashes []string, _ bool) ([]*vcsinfo.LongCommit, error)

DetailsMulti implements the vcsinfo.VCS interface

func (*BigTableVCS) From

func (b *BigTableVCS) From(start time.Time) []string

From implements the vcsinfo.VCS interface

func (*BigTableVCS) GetBranch

func (b *BigTableVCS) GetBranch() string

GetBranch implements the vcsinfo.VCS interface.

func (*BigTableVCS) IndexOf

func (b *BigTableVCS) IndexOf(ctx context.Context, hash string) (int, error)

IndexOf implements the vcsinfo.VCS interface

func (*BigTableVCS) LastNIndex

func (b *BigTableVCS) LastNIndex(N int) []*vcsinfo.IndexCommit

LastNIndex implements the vcsinfo.VCS interface

func (*BigTableVCS) Range

func (b *BigTableVCS) Range(begin, end time.Time) []*vcsinfo.IndexCommit

Range implements the vcsinfo.VCS interface

func (*BigTableVCS) Update

func (b *BigTableVCS) Update(ctx context.Context, _, _ bool) error

Update implements the vcsinfo.VCS interface

Jump to

Keyboard shortcuts

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