Documentation
¶
Index ¶
- type Provider
- func (p *Provider) Commit(_ context.Context, repoID string, options provider.CommitOptions) (string, error)
- func (p *Provider) CreateBranch(_ context.Context, repoID, branch, fromRef string) error
- func (p *Provider) CreateRepository(_ context.Context, repoID string) (*provider.Repository, error)
- func (p *Provider) DeleteBranch(_ context.Context, repoID, branch string) error
- func (p *Provider) DeleteRepository(_ context.Context, repoID string) error
- func (p *Provider) GetFile(_ context.Context, repoID, path, ref string) (io.ReadCloser, error)
- func (p *Provider) GetRepositoryID(options provider.RepositoryOptions) string
- func (p *Provider) Head(_ context.Context, repoID, ref string) (string, error)
- func (p *Provider) ListBranches(_ context.Context, repoID, prefix string) ([]string, error)
- func (p *Provider) ListFiles(_ context.Context, repoID, ref string) ([]string, error)
- func (p *Provider) MergeBranch(_ context.Context, repoID, sourceBranch, targetBranch, message 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) CreateBranch ¶ added in v0.26.0
func (*Provider) CreateRepository ¶
func (*Provider) DeleteBranch ¶ added in v0.26.0
func (*Provider) DeleteRepository ¶
func (*Provider) GetRepositoryID ¶
func (p *Provider) GetRepositoryID(options provider.RepositoryOptions) string
func (*Provider) ListBranches ¶ added in v0.26.0
func (*Provider) MergeBranch ¶ added in v0.26.0
Click to show internal directories.
Click to hide internal directories.