mock

package
v1.6.11 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Git

type Git struct{}

Git is a no-op git backend

func New

func New() *Git

New creates a new Git object

func (*Git) Add

func (g *Git) Add(ctx context.Context, args ...string) error

Add does nothing

func (*Git) AddRemote

func (g *Git) AddRemote(ctx context.Context, remote, url string) error

AddRemote does nothing

func (*Git) Cmd

func (g *Git) Cmd(ctx context.Context, name string, args ...string) error

Cmd does nothing

func (*Git) Commit

func (g *Git) Commit(ctx context.Context, msg string) error

Commit does nothing

func (*Git) Init

func (g *Git) Init(context.Context, string, string, string) error

Init does nothing

func (*Git) InitConfig

func (g *Git) InitConfig(context.Context, string, string, string) error

InitConfig does nothing

func (*Git) Pull

func (g *Git) Pull(ctx context.Context, origin, branch string) error

Pull does nothing

func (*Git) Push

func (g *Git) Push(ctx context.Context, origin, branch string) error

Push does nothing

func (*Git) Version

func (g *Git) Version(context.Context) semver.Version

Version returns an empty version

Jump to

Keyboard shortcuts

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