repo

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultPerms = 0755

Variables

This section is empty.

Functions

func GitExec

func GitExec() string

Types

type Git

type Git struct {
	Config *config.Config
}

func New

func New(c *config.Config) (g *Git)

func (*Git) Clone

func (g *Git) Clone() error

func (*Git) Commit

func (g *Git) Commit(bts []byte, msg string) error

func (*Git) Create

func (g *Git) Create() error

func (*Git) CurrentSHA added in v0.2.2

func (g *Git) CurrentSHA() (string, error)

func (*Git) Enabled

func (g *Git) Enabled() bool

func (*Git) Exists

func (g *Git) Exists() bool

func (*Git) Init

func (g *Git) Init()

func (*Git) Pull

func (g *Git) Pull() error

func (*Git) Push

func (g *Git) Push() error

type IFace

type IFace interface {
	Init()
	Clone() error
	Commit(bts []byte, msg string) error
	Create() error
	Exists() bool
	Enabled() bool
	Push() error
	Pull() error
	CurrentSHA() (string, error)
}

Jump to

Keyboard shortcuts

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