gogit

package
v0.25.1 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommitOptions added in v0.18.0

type CommitOptions struct {
	GpgKeyPath       string
	GpgKeyPassphrase string
	KeyID            string
}

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, caBundle []byte) (bool, error)

func (*GoGit) Commit

func (g *GoGit) Commit(message git.Commit, opts ...git.Option) (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, caBundle []byte) 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