git

package
v0.19.8 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddDeployKeyOpts added in v0.9.2

type AddDeployKeyOpts struct {
	Owner      string
	Repository string
	Key        string
	Title      string
	ReadOnly   bool
}

type Client added in v0.9.0

type Client interface {
	Add(filename string) error
	Remove(filename string) error
	Clone(ctx context.Context) error
	Commit(message string) error
	Push(ctx context.Context) error
	Pull(ctx context.Context, branch string) error
	Init() error
	Branch(name string) error
	ValidateRemoteExists(ctx context.Context) error
}

type CreateRepoOpts

type CreateRepoOpts struct {
	Name        string
	Owner       string
	Description string
	Personal    bool
	Privacy     bool
	AutoInit    bool
}

type DeleteRepoOpts added in v0.6.0

type DeleteRepoOpts struct {
	Owner      string
	Repository string
}

type GetRepoOpts

type GetRepoOpts struct {
	Owner      string
	Repository string
}

type ProviderClient added in v0.9.0

type ProviderClient interface {
	GetRepo(ctx context.Context) (repo *Repository, err error)
	CreateRepo(ctx context.Context, opts CreateRepoOpts) (repo *Repository, err error)
	DeleteRepo(ctx context.Context, opts DeleteRepoOpts) error
	AddDeployKeyToRepo(ctx context.Context, opts AddDeployKeyOpts) error
	Validate(ctx context.Context) error
	PathExists(ctx context.Context, owner, repo, branch, path string) (bool, error)
}

type RemoteBranchDoesNotExistError

type RemoteBranchDoesNotExistError struct {
	Repository string
	Branch     string
}

func (*RemoteBranchDoesNotExistError) Error

type Repository

type Repository struct {
	Name         string
	Owner        string
	Organization string
	CloneUrl     string
}

type RepositoryDoesNotExistError

type RepositoryDoesNotExistError struct {
	Err error
	// contains filtered or unexported fields
}

func (*RepositoryDoesNotExistError) Error

type RepositoryIsEmptyError

type RepositoryIsEmptyError struct {
	Repository string
}

func (*RepositoryIsEmptyError) Error

func (e *RepositoryIsEmptyError) Error() string

type RepositoryUpToDateError

type RepositoryUpToDateError struct{}

func (*RepositoryUpToDateError) Error

func (e *RepositoryUpToDateError) Error() string

type TokenAuth

type TokenAuth struct {
	Username string
	Token    string
}

Directories

Path Synopsis
mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
providers
github/mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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