git

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2025 License: MIT Imports: 16 Imported by: 0

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