git

package
v0.30.5 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 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

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

func New

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

func (*Client) Check added in v0.28.0

func (g *Client) Check() error

func (*Client) Clone

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

func (*Client) Commit

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

func (*Client) Configure added in v0.25.0

func (g *Client) Configure(repoURL string, deploykey []byte) error

func (*Client) EmptyFolder added in v0.21.0

func (g *Client) EmptyFolder(path string) (bool, error)

func (*Client) ExistsFolder added in v0.21.0

func (g *Client) ExistsFolder(path string) (bool, error)

func (*Client) GetURL added in v0.21.0

func (g *Client) GetURL() string

func (*Client) Push

func (g *Client) Push() error

func (*Client) Read

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

func (*Client) ReadFolder added in v0.21.0

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

func (*Client) ReadYamlIntoStruct added in v0.21.0

func (g *Client) ReadYamlIntoStruct(path string, struc interface{}) 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

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