Documentation ¶
Index ¶
- type DefaultGitCloneService
- type DefaultGitPushService
- type DefaultGitRemoteService
- type DefaultGithubReleaseService
- type GitCloneService
- type GitLabMergeRequestsService
- type GitLabProjectsService
- type GitPushService
- type GitRemoteService
- type GitService
- type GithubIssuesService
- type GithubReleaseService
- type PrometheusService
- type PullRequestsService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultGitCloneService ¶
type DefaultGitCloneService struct{}
func (*DefaultGitCloneService) CloneToTmpDir ¶
func (s *DefaultGitCloneService) CloneToTmpDir(prefix string, url string, reference plumbing.ReferenceName) (string, *git.Repository, error)
type DefaultGitPushService ¶
type DefaultGitPushService struct{}
func (*DefaultGitPushService) Push ¶
func (s *DefaultGitPushService) Push(gitRepo *git.Repository, opts *git.PushOptions) error
type DefaultGitRemoteService ¶
type DefaultGitRemoteService struct{}
func (*DefaultGitRemoteService) Create ¶
func (s *DefaultGitRemoteService) Create(gitRepo *git.Repository, remoteConfig *config.RemoteConfig) (*git.Remote, error)
func (*DefaultGitRemoteService) CreateAndPull ¶
func (s *DefaultGitRemoteService) CreateAndPull(gitRepo *git.Repository, remoteConfig *config.RemoteConfig) (*git.Remote, error)
type DefaultGithubReleaseService ¶
type DefaultGithubReleaseService struct{}
func (*DefaultGithubReleaseService) GetLatestRelease ¶
type GitCloneService ¶
type GitLabMergeRequestsService ¶
type GitLabMergeRequestsService interface {
CreateMergeRequest(pid interface{}, opt *gitlab.CreateMergeRequestOptions, options ...gitlab.RequestOptionFunc) (*gitlab.MergeRequest, *gitlab.Response, error)
}
type GitLabProjectsService ¶
type GitLabProjectsService interface {
GetProject(pid interface{}, opt *gitlab.GetProjectOptions, options ...gitlab.RequestOptionFunc) (*gitlab.Project, *gitlab.Response, error)
}
type GitPushService ¶
type GitPushService interface {
Push(gitRepo *git.Repository, opts *git.PushOptions) error
}
type GitRemoteService ¶
type GitRemoteService interface { Create(gitRepo *git.Repository, remoteConfig *config.RemoteConfig) (*git.Remote, error) CreateAndPull(gitRepo *git.Repository, remoteConfig *config.RemoteConfig) (*git.Remote, error) }
type GitService ¶
type GithubIssuesService ¶
type GithubIssuesService interface { ListByRepo(ctx context.Context, owner string, repo string, opts *github.IssueListByRepoOptions) ([]*github.Issue, *github.Response, error) Create(ctx context.Context, owner string, repo string, issue *github.IssueRequest) (*github.Issue, *github.Response, error) Edit(ctx context.Context, owner string, repo string, number int, issue *github.IssueRequest) (*github.Issue, *github.Response, error) }
type GithubReleaseService ¶
type PrometheusService ¶
type PullRequestsService ¶
type PullRequestsService interface { List(ctx context.Context, owner string, repo string, opts *github.PullRequestListOptions) ([]*github.PullRequest, *github.Response, error) Get(ctx context.Context, owner string, repo string, number int) (*github.PullRequest, *github.Response, error) Merge(ctx context.Context, owner string, repo string, number int, commitMessage string, options *github.PullRequestOptions) (*github.PullRequestMergeResult, *github.Response, error) Create(ctx context.Context, owner string, repo string, pull *github.NewPullRequest) (*github.PullRequest, *github.Response, error) }
Click to show internal directories.
Click to hide internal directories.