services

package
v0.0.0-...-d8b41f4 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

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

func (s *DefaultGithubReleaseService) GetLatestRelease(owner string, repo string, client *github.Client) (error, string)

type GitCloneService

type GitCloneService interface {
	CloneToTmpDir(prefix string, url string, reference plumbing.ReferenceName) (string, *git.Repository, error)
}

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 GitService interface {
	GetRefs(ctx context.Context, owner string, repo string, ref string) ([]*github.Reference, *github.Response, error)
	CreateRef(ctx context.Context, owner string, repo string, ref *github.Reference) (*github.Reference, *github.Response, error)
}

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 GithubReleaseService interface {
	GetLatestRelease(owner string, repo string, client *github.Client) (error, string)
}

type PrometheusService

type PrometheusService interface {
	Query(ctx context.Context, query string, ts time.Time) (model.Value, api.Warnings, error)
	QueryRange(ctx context.Context, query string, r promv1.Range) (model.Value, api.Warnings, error)
}

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)
}

Jump to

Keyboard shortcuts

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