git

package
v0.20.3 Latest Latest
Warning

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

Go to latest
Published: May 13, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New(ctx context.Context, monitor mntr.Monitor, committer, email, repoURL string) *Client

func (*Client) Clone

func (g *Client) Clone() (err error)

func (*Client) Commit

func (g *Client) Commit(msg string) error

func (*Client) Init

func (g *Client) Init(deploykey []byte) error

func (*Client) Push

func (g *Client) Push() error

func (*Client) Read

func (g *Client) Read(path string) ([]byte, error)

func (*Client) StageAndCommit

func (g *Client) StageAndCommit(msg string, files ...File) (bool, error)

func (*Client) UpdateRemote

func (g *Client) UpdateRemote(msg string, files ...File) error

func (*Client) UpdateRemoteUntilItWorks

func (g *Client) UpdateRemoteUntilItWorks(msg string, path string, overwrite func([]byte) ([]byte, error), force bool) ([]byte, error)

type File

type File struct {
	Path    string
	Content []byte
}

Jump to

Keyboard shortcuts

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