Back to godoc.org

Package noop

v1.8.6
Latest Go to latest
Published: Jul 26, 2019 | License: MIT | Module: github.com/justwatchcom/gopass

Index

Package Files

type Noop

type Noop struct{}

Noop is a no-op git backend

func New

func New() *Noop

New creates a new Noop object

func (*Noop) Add

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

Add does nothing

func (*Noop) AddRemote

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

AddRemote does nothing

func (*Noop) Cmd

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

Cmd does nothing

func (*Noop) Commit

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

Commit does nothing

func (*Noop) GetRevision

func (g *Noop) GetRevision(context.Context, string, string) ([]byte, error)

GetRevision is not implemented

func (*Noop) Init

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

Init does nothing

func (*Noop) InitConfig

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

InitConfig does nothing

func (*Noop) Name

func (g *Noop) Name() string

Name returns noop

func (*Noop) Pull

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

Pull does nothing

func (*Noop) Push

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

Push does nothing

func (*Noop) RemoveRemote

func (g *Noop) RemoveRemote(ctx context.Context, remote string) error

RemoveRemote does nothing

func (*Noop) Revisions

func (g *Noop) Revisions(context.Context, string) ([]backend.Revision, error)

Revisions is not implemented

func (*Noop) Version

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

Version returns an empty version

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier