mocks

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2020 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
}

KV TODO write a useful documentation here

func (*KV) Delete

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

Delete TODO write a useful documentation here

func (*KV) Get

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

Get TODO write a useful documentation here

func (*KV) Put

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

Put TODO write a useful documentation here

func (*KV) Txn

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

Txn TODO write a useful documentation here

type Repo

type Repo struct {
	Config *config.Repo
	Path   string

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

Repo TODO write a useful documentation here

func (*Repo) Add

func (r *Repo) Add(path string)

Add TODO write a useful documentation here

func (*Repo) Branch

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

Branch TODO write a useful documentation here

func (*Repo) CheckRef

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

CheckRef TODO write a useful documentation here

func (*Repo) CheckoutBranch

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

CheckoutBranch TODO write a useful documentation here

func (*Repo) DiffStatus

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

DiffStatus TODO write a useful documentation here

func (*Repo) GetConfig

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

GetConfig TODO write a useful documentation here

func (*Repo) GetStorer

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

GetStorer TODO write a useful documentation here

func (*Repo) Head

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

Head TODO write a useful documentation here

func (*Repo) Lock

func (r *Repo) Lock()

Lock TODO write a useful documentation here

func (*Repo) Name

func (r *Repo) Name() string

Name TODO write a useful documentation here

func (*Repo) Pull

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

Pull TODO write a useful documentation here

func (*Repo) ResolveRevision

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

ResolveRevision TODO write a useful documentation here

func (*Repo) Unlock

func (r *Repo) Unlock()

Unlock TODO write a useful documentation here

func (*Repo) Worktree

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

Worktree TODO write a useful documentation here

Jump to

Keyboard shortcuts

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