reffs

package
v0.4.11 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewReflogReader

func NewReflogReader(r io.ReadSeekCloser) (ref.ReflogReader, error)

Types

type Store

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

func NewStore

func NewStore(rootDir string) *Store

func (*Store) Copy

func (s *Store) Copy(srcKey, dstKey string) (err error)

func (*Store) Delete

func (s *Store) Delete(key string) error

func (*Store) Filter

func (s *Store) Filter(prefix string) (m map[string][]byte, err error)

func (*Store) FilterKey

func (s *Store) FilterKey(prefix string) (keys []string, err error)

func (*Store) Get

func (s *Store) Get(key string) (val []byte, err error)

func (*Store) LogReader

func (s *Store) LogReader(key string) (ref.ReflogReader, error)

func (*Store) Rename

func (s *Store) Rename(oldKey, newKey string) (err error)

func (*Store) Set

func (s *Store) Set(key string, val []byte) error

func (*Store) SetWithLog

func (s *Store) SetWithLog(key string, val []byte, log *ref.Reflog) error

Jump to

Keyboard shortcuts

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