git

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2025 License: MIT Imports: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitBackend

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

func NewGitBackend

func NewGitBackend(ctx context.Context, conf GitBackendConfig) (*GitBackend, error)

func (*GitBackend) Close

func (be *GitBackend) Close() error

func (*GitBackend) Delete

func (be *GitBackend) Delete(ctx context.Context, u *url.URL) error

func (*GitBackend) ListPrefix

func (be *GitBackend) ListPrefix(ctx context.Context, u *url.URL, optFunc ...types.ListOption) ([]*types.Object, error)

func (*GitBackend) ReadMetadata

func (be *GitBackend) ReadMetadata(ctx context.Context, u *url.URL) (*types.ObjectMetadata, error)

func (*GitBackend) Reader

func (be *GitBackend) Reader(ctx context.Context, u *url.URL) (types.Reader, error)

func (*GitBackend) ReaderAt

func (be *GitBackend) ReaderAt(ctx context.Context, u *url.URL) (types.ReaderAt, error)

func (*GitBackend) Writer

func (be *GitBackend) Writer(ctx context.Context, u *url.URL) (types.Writer, error)

type GitBackendConfig

type GitBackendConfig struct {
	TmpDir   string
	Matchers []string
}

Jump to

Keyboard shortcuts

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