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