mocks

package
v0.0.0-...-02502d4 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KV

type KV struct {
	T *testing.T
	// contains filtered or unexported fields
}

func (*KV) Delete

func (kv *KV) Delete(key string, wOptions *api.WriteOptions) (*api.WriteMeta, error)

func (*KV) Get

func (kv *KV) Get(key string, opts *api.QueryOptions) (*api.KVPair, *api.QueryMeta, error)

func (*KV) Put

func (kv *KV) Put(kvPair *api.KVPair, wOptions *api.WriteOptions) (*api.WriteMeta, error)

func (*KV) Txn

func (kv *KV) Txn(txnops api.KVTxnOps, opts *api.QueryOptions) (bool, *api.KVTxnResponse, *api.QueryMeta, error)

type Repo

type Repo struct {
	Config *config.Repo
	Path   string

	T *testing.T
	// contains filtered or unexported fields
}

func (*Repo) Add

func (r *Repo) Add(path string)

func (*Repo) Branch

func (r *Repo) Branch() plumbing.ReferenceName

func (*Repo) CheckRef

func (r *Repo) CheckRef(branch string) error

func (*Repo) CheckoutBranch

func (r *Repo) CheckoutBranch(branch plumbing.ReferenceName) error

func (*Repo) DiffStatus

func (r *Repo) DiffStatus(commit string) (object.Changes, error)

func (*Repo) GetConfig

func (r *Repo) GetConfig() *config.Repo

func (*Repo) GetStorer

func (r *Repo) GetStorer() storage.Storer

func (*Repo) Head

func (r *Repo) Head() (*plumbing.Reference, error)

func (*Repo) Lock

func (r *Repo) Lock()

func (*Repo) Name

func (r *Repo) Name() string

func (*Repo) Pull

func (r *Repo) Pull(branch string) error

func (*Repo) ResolveRevision

func (r *Repo) ResolveRevision(plumbing.Revision) (*plumbing.Hash, error)

func (*Repo) Unlock

func (r *Repo) Unlock()

func (*Repo) Worktree

func (r *Repo) Worktree() (*git.Worktree, error)

Jump to

Keyboard shortcuts

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