git

package
v0.10.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client added in v0.9.20

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 added in v0.9.20

func (g *Client) Clone() error

func (*Client) Commit added in v0.9.20

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

func (*Client) GetURL added in v0.10.0

func (g *Client) GetURL() string

func (*Client) Init added in v0.9.20

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

func (*Client) Push added in v0.9.20

func (g *Client) Push() error

func (*Client) Read added in v0.9.20

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

func (*Client) ReadFolder added in v0.9.20

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

func (*Client) ReadYamlIntoStruct added in v0.9.20

func (g *Client) ReadYamlIntoStruct(path string, struc interface{}) error

func (*Client) UpdateRemote added in v0.9.20

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

func (*Client) UpdateRemoteUntilItWorks added in v0.9.20

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

type File added in v0.9.20

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