mem_gitstore

package
v0.0.0-...-f3bf748 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MemGitStore

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

MemGitStore implements the gitstore.GitStore interface in memory.

func New

func New() *MemGitStore

New returns an in-memory gitstore.GitStore implementation.

func (*MemGitStore) Get

func (gs *MemGitStore) Get(ctx context.Context, hashes []string) ([]*vcsinfo.LongCommit, error)

See documentation for gitstore.GitStore interface.

func (*MemGitStore) GetBranches

func (gs *MemGitStore) GetBranches(ctx context.Context) (map[string]*gitstore.BranchPointer, error)

See documentation for gitstore.GitStore interface.

func (*MemGitStore) Put

func (gs *MemGitStore) Put(ctx context.Context, commits []*vcsinfo.LongCommit) error

See documentation for gitstore.GitStore interface.

func (*MemGitStore) PutBranches

func (gs *MemGitStore) PutBranches(ctx context.Context, branches map[string]string) error

See documentation for gitstore.GitStore interface.

func (*MemGitStore) RangeByTime

func (gs *MemGitStore) RangeByTime(ctx context.Context, start, end time.Time, branch string) ([]*vcsinfo.IndexCommit, error)

See documentation for gitstore.GitStore interface.

func (*MemGitStore) RangeN

func (gs *MemGitStore) RangeN(ctx context.Context, startIndex, endIndex int, branch string) ([]*vcsinfo.IndexCommit, error)

See documentation for gitstore.GitStore interface.

Jump to

Keyboard shortcuts

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