git

package
v0.0.0-...-f1ac91e Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repo

type Repo struct {
	Dir string
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, url, branch string) (*Repo, error)

func (*Repo) Add

func (r *Repo) Add(ctx context.Context, path string, data []byte) error

func (*Repo) Close

func (r *Repo) Close() error

func (*Repo) Delete

func (r *Repo) Delete(ctx context.Context, path string) error

func (*Repo) Head

func (r *Repo) Head(ctx context.Context) (string, error)

func (*Repo) Update

func (r *Repo) Update(ctx context.Context) (string, error)

Jump to

Keyboard shortcuts

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