Documentation
¶
Index ¶
- type HostingGithub
- func (h *HostingGithub) CreateBranch(ctx context.Context, repo *hosting.Repository, opts *hosting.CreateBranchOpts) (*hosting.Branch, error)
- func (h *HostingGithub) CreateFile(ctx context.Context, repo *hosting.Repository, file *hosting.File, ...) (*hosting.File, *hosting.Commit, error)
- func (h *HostingGithub) DeleteBranch(ctx context.Context, repo *hosting.Repository, branch *hosting.Branch) error
- func (h *HostingGithub) DeleteFile(ctx context.Context, repo *hosting.Repository, path string, ...) (*hosting.Commit, error)
- func (h *HostingGithub) GetBranches(ctx context.Context, repo *hosting.Repository) ([]hosting.Branch, error)
- func (h *HostingGithub) GetCommit(ctx context.Context, repo *hosting.Repository, opts *hosting.GetCommitsOpts) (*hosting.Commit, error)
- func (h *HostingGithub) GetCommits(ctx context.Context, repo *hosting.Repository, opts *hosting.GetCommitsOpts) ([]hosting.Commit, error)
- func (h *HostingGithub) GetFiles(ctx context.Context, repo *hosting.Repository, path string) (*hosting.File, []hosting.File, error)
- func (h *HostingGithub) GetRawFile(ctx context.Context, repo *hosting.Repository, path string, ...) ([]byte, error)
- func (h *HostingGithub) GetRepositories(ctx context.Context, owner string) ([]hosting.Repository, error)
- func (h *HostingGithub) GetRepository(ctx context.Context, owner string, repo string) (*hosting.Repository, error)
- func (h *HostingGithub) UpdateFile(ctx context.Context, repo *hosting.Repository, file *hosting.File, ...) (*hosting.File, *hosting.Commit, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HostingGithub ¶
type HostingGithub struct {
// contains filtered or unexported fields
}
func New ¶
func New(token *string) (*HostingGithub, error)
func (*HostingGithub) CreateBranch ¶ added in v0.1.0
func (h *HostingGithub) CreateBranch(ctx context.Context, repo *hosting.Repository, opts *hosting.CreateBranchOpts) (*hosting.Branch, error)
func (*HostingGithub) CreateFile ¶ added in v0.1.0
func (h *HostingGithub) CreateFile(ctx context.Context, repo *hosting.Repository, file *hosting.File, opts *hosting.CreateFileOpts) (*hosting.File, *hosting.Commit, error)
func (*HostingGithub) DeleteBranch ¶ added in v0.1.0
func (h *HostingGithub) DeleteBranch(ctx context.Context, repo *hosting.Repository, branch *hosting.Branch) error
func (*HostingGithub) DeleteFile ¶ added in v0.1.0
func (h *HostingGithub) DeleteFile(ctx context.Context, repo *hosting.Repository, path string, opts *hosting.DeleteFileOpts) (*hosting.Commit, error)
func (*HostingGithub) GetBranches ¶
func (h *HostingGithub) GetBranches(ctx context.Context, repo *hosting.Repository) ([]hosting.Branch, error)
func (*HostingGithub) GetCommit ¶ added in v0.1.0
func (h *HostingGithub) GetCommit(ctx context.Context, repo *hosting.Repository, opts *hosting.GetCommitsOpts) (*hosting.Commit, error)
func (*HostingGithub) GetCommits ¶
func (h *HostingGithub) GetCommits(ctx context.Context, repo *hosting.Repository, opts *hosting.GetCommitsOpts) ([]hosting.Commit, error)
func (*HostingGithub) GetRawFile ¶ added in v0.1.0
func (h *HostingGithub) GetRawFile(ctx context.Context, repo *hosting.Repository, path string, opts *hosting.GetFileOpts) ([]byte, error)
func (*HostingGithub) GetRepositories ¶
func (h *HostingGithub) GetRepositories(ctx context.Context, owner string) ([]hosting.Repository, error)
func (*HostingGithub) GetRepository ¶
func (h *HostingGithub) GetRepository(ctx context.Context, owner string, repo string) (*hosting.Repository, error)
func (*HostingGithub) UpdateFile ¶ added in v0.1.0
func (h *HostingGithub) UpdateFile(ctx context.Context, repo *hosting.Repository, file *hosting.File, opts *hosting.UpdateFileOpts) (*hosting.File, *hosting.Commit, error)
Click to show internal directories.
Click to hide internal directories.