gogit

package
v0.15.3 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoGit

type GoGit struct {
	// contains filtered or unexported fields
}

func New

func New(path string, auth transport.AuthMethod) *GoGit

func (*GoGit) Clone

func (g *GoGit) Clone(ctx context.Context, url, branch string) (bool, error)

func (*GoGit) Commit

func (g *GoGit) Commit(message git.Commit) (string, error)

func (*GoGit) Head added in v0.12.1

func (g *GoGit) Head() (string, error)

func (*GoGit) Init

func (g *GoGit) Init(url, branch string) (bool, error)

func (*GoGit) Path

func (g *GoGit) Path() string

func (*GoGit) Push

func (g *GoGit) Push(ctx context.Context) error

func (*GoGit) Status

func (g *GoGit) Status() (bool, error)

func (*GoGit) Write

func (g *GoGit) Write(path string, reader io.Reader) error

Jump to

Keyboard shortcuts

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