git

package
v0.11.4 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 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, logger logging.Logger, committer, email, repoURL string) *Client

func (*Client) Clone

func (g *Client) Clone() error

func (*Client) Init

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

func (*Client) Read

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

func (*Client) UpdateRemote

func (g *Client) UpdateRemote(files ...File) error

func (*Client) UpdateRemoteUntilItWorks

func (g *Client) UpdateRemoteUntilItWorks(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