Documentation
¶
Index ¶
- type Provider
- func (p *Provider) Commit(_ context.Context, repoID string, options provider.CommitOptions) (string, error)
- func (p *Provider) CreateRepository(_ context.Context, repoID string) (*provider.Repository, error)
- func (p *Provider) DeleteRepository(_ context.Context, repoID string) error
- func (p *Provider) GetFile(_ context.Context, repoID string, path string) (io.ReadCloser, error)
- func (p *Provider) GetRepositoryID(options provider.RepositoryOptions) string
- func (p *Provider) Head(_ context.Context, repoID string) (string, error)
- func (p *Provider) ListFiles(_ context.Context, repoID string) ([]string, error)
- func (p *Provider) Name() string
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) CreateRepository ¶
func (*Provider) DeleteRepository ¶
func (*Provider) GetRepositoryID ¶
func (p *Provider) GetRepositoryID(options provider.RepositoryOptions) string
Click to show internal directories.
Click to hide internal directories.