git

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: MIT Imports: 12 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 {
	Storage *memory.Storage
	FS      billy.Filesystem
	Auth    transport.AuthMethod
	Repo    *git.Repository
	// contains filtered or unexported fields
}

func New

func New(url, branch, username, password string) *Client

func (*Client) Add

func (c *Client) Add(filename string, content []byte) error

func (*Client) GetCurrent

func (c *Client) GetCurrent(filename string) ([]byte, error)

func (*Client) Initialize

func (c *Client) Initialize() error

func (*Client) IsClean

func (c *Client) IsClean() (bool, error)

func (*Client) Store

func (c *Client) Store(msg string) error

Jump to

Keyboard shortcuts

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