Documentation ¶
Index ¶
- type MemGitStore
- func (gs *MemGitStore) Get(ctx context.Context, hashes []string) ([]*vcsinfo.LongCommit, error)
- func (gs *MemGitStore) GetBranches(ctx context.Context) (map[string]*gitstore.BranchPointer, error)
- func (gs *MemGitStore) Put(ctx context.Context, commits []*vcsinfo.LongCommit) error
- func (gs *MemGitStore) PutBranches(ctx context.Context, branches map[string]string) error
- func (gs *MemGitStore) RangeByTime(ctx context.Context, start, end time.Time, branch string) ([]*vcsinfo.IndexCommit, error)
- func (gs *MemGitStore) RangeN(ctx context.Context, startIndex, endIndex int, branch string) ([]*vcsinfo.IndexCommit, error)
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 (*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 ¶
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.
Click to show internal directories.
Click to hide internal directories.