Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrProviderNotSupported = errors.New("git provider not supported") ErrAuthenticationFailed = func(err error) error { return fmt.Errorf("authentication failed, make sure credentials are correct: %w", err) } )
Errors
View Source
var ( ErrNilOpts = errors.New("options cannot be nil") ErrRepoNotFound = errors.New("git repository not found") )
Errors
Functions ¶
Types ¶
type CloneOptions ¶
type CreateRepoOptions ¶
type GetRepoOptions ¶
type Provider ¶
type Provider interface { // CreateRepository creates the repository in the remote provider and returns a // clone url CreateRepository(ctx context.Context, opts *CreateRepoOptions) (string, error) }
Provider represents a git provider
func NewProvider ¶
func NewProvider(opts *ProviderOptions) (Provider, error)
New creates a new git provider
type ProviderOptions ¶
ProviderOptions for a new git provider
type PushOptions ¶
type Repository ¶
type Repository interface { // Persist runs add, commit and push to the repository default remote Persist(ctx context.Context, opts *PushOptions) error }
Repository represents a git repository
Click to show internal directories.
Click to hide internal directories.