inmemory

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 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 Provider

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

* In-memory git provider. * * This provider is used for testing purposes. * It does not store data in a real git repository. * It is not meant to be used in production.

func NewProvider

func NewProvider() *Provider

func (*Provider) Commit

func (p *Provider) Commit(_ context.Context, repoID string, options provider.CommitOptions) (string, error)

func (*Provider) CreateRepository

func (p *Provider) CreateRepository(_ context.Context, repoID string) (*provider.Repository, error)

func (*Provider) DeleteRepository

func (p *Provider) DeleteRepository(_ context.Context, repoID string) error

func (*Provider) GetFile

func (p *Provider) GetFile(_ context.Context, repoID string, path string) (io.ReadCloser, error)

func (*Provider) GetRepositoryID

func (p *Provider) GetRepositoryID(options provider.RepositoryOptions) string

func (*Provider) Head

func (p *Provider) Head(_ context.Context, repoID string) (string, error)

func (*Provider) ListFiles

func (p *Provider) ListFiles(_ context.Context, repoID string) ([]string, error)

func (*Provider) Name

func (p *Provider) Name() string

Jump to

Keyboard shortcuts

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