Documentation ¶
Index ¶
- func ParceRepositoryFullName(webURL string) string
- type Client
- type GitlabProvider
- func (p *GitlabProvider) GetClient(remote *git.RemoteInfo) (Client, error)
- func (p *GitlabProvider) GetCurrentRemote() (*git.RemoteInfo, error)
- func (p *GitlabProvider) GetIssueClient(remote *git.RemoteInfo) (Issue, error)
- func (p *GitlabProvider) GetJobClient(remote *git.RemoteInfo) (Job, error)
- func (p *GitlabProvider) GetMergeRequestClient(remote *git.RemoteInfo) (MergeRequest, error)
- func (p *GitlabProvider) Init() error
- type Issue
- type IssueClient
- func (c *IssueClient) CreateIssue(opt *gitlab.CreateIssueOptions, repositoryName string) (*gitlab.Issue, error)
- func (c *IssueClient) GetAllProjectIssues(opt *gitlab.ListIssuesOptions) ([]*gitlab.Issue, error)
- func (c *IssueClient) GetIssue(pid int, repositoryName string) (*gitlab.Issue, error)
- func (c *IssueClient) GetProjectIssues(opt *gitlab.ListProjectIssuesOptions, repositoryName string) ([]*gitlab.Issue, error)
- func (c *IssueClient) UpdateIssue(opt *gitlab.UpdateIssueOptions, pid int, repositoryName string) (*gitlab.Issue, error)
- type Job
- type JobClient
- type LabClient
- func (l *LabClient) Lint(content string) (*gitlab.LintResult, error)
- func (l *LabClient) ProjectPipelineJobs(repositoryName string, opt *gitlab.ListJobsOptions, pid int) ([]*gitlab.Job, error)
- func (l *LabClient) ProjectPipelines(repositoryName string, opt *gitlab.ListProjectPipelinesOptions) (gitlab.PipelineList, error)
- func (l *LabClient) ProjectUsers(repositoryName string, opt *gitlab.ListProjectUserOptions) ([]*gitlab.ProjectUser, error)
- func (l *LabClient) Projects(opt *gitlab.ListProjectsOptions) ([]*gitlab.Project, error)
- func (l *LabClient) Users(opt *gitlab.ListUsersOptions) ([]*gitlab.User, error)
- type MergeRequest
- type MergeRequestClient
- func (l *MergeRequestClient) CreateMergeRequest(opt *gitlab.CreateMergeRequestOptions, repositoryName string) (*gitlab.MergeRequest, error)
- func (l *MergeRequestClient) GetAllProjectMergeRequest(opt *gitlab.ListMergeRequestsOptions) ([]*gitlab.MergeRequest, error)
- func (l *MergeRequestClient) GetMergeRequest(pid int, repositoryName string) (*gitlab.MergeRequest, error)
- func (l *MergeRequestClient) GetProjectMargeRequest(opt *gitlab.ListProjectMergeRequestsOptions, repositoryName string) ([]*gitlab.MergeRequest, error)
- func (l *MergeRequestClient) UpdateMergeRequest(opt *gitlab.UpdateMergeRequestOptions, pid int, repositoryName string) (*gitlab.MergeRequest, error)
- type MockLabClient
- func (m *MockLabClient) Lint(content string) (*gitlab.LintResult, error)
- func (m *MockLabClient) ProjectPipelineJobs(repositoryName string, opt *gitlab.ListJobsOptions, pid int) ([]*gitlab.Job, error)
- func (m *MockLabClient) ProjectPipelines(repositoryName string, opt *gitlab.ListProjectPipelinesOptions) (gitlab.PipelineList, error)
- func (m *MockLabClient) ProjectUsers(repositoryName string, opt *gitlab.ListProjectUserOptions) ([]*gitlab.ProjectUser, error)
- func (m *MockLabClient) Projects(opt *gitlab.ListProjectsOptions) ([]*gitlab.Project, error)
- func (m *MockLabClient) Users(opt *gitlab.ListUsersOptions) ([]*gitlab.User, error)
- type MockLabIssueClient
- func (m *MockLabIssueClient) CreateIssue(opt *gitlab.CreateIssueOptions, repositoryName string) (*gitlab.Issue, error)
- func (m *MockLabIssueClient) GetAllProjectIssues(opt *gitlab.ListIssuesOptions) ([]*gitlab.Issue, error)
- func (m *MockLabIssueClient) GetIssue(pid int, repositoryName string) (*gitlab.Issue, error)
- func (m *MockLabIssueClient) GetProjectIssues(opt *gitlab.ListProjectIssuesOptions, repositoryName string) ([]*gitlab.Issue, error)
- func (m *MockLabIssueClient) UpdateIssue(opt *gitlab.UpdateIssueOptions, pid int, repositoryName string) (*gitlab.Issue, error)
- type MockLabJobClient
- type MockLabMergeRequestClient
- func (m *MockLabMergeRequestClient) CreateMergeRequest(opt *gitlab.CreateMergeRequestOptions, repositoryName string) (*gitlab.MergeRequest, error)
- func (m *MockLabMergeRequestClient) GetAllProjectMergeRequest(opt *gitlab.ListMergeRequestsOptions) ([]*gitlab.MergeRequest, error)
- func (m *MockLabMergeRequestClient) GetMergeRequest(pid int, repositoryName string) (*gitlab.MergeRequest, error)
- func (m *MockLabMergeRequestClient) GetProjectMargeRequest(opt *gitlab.ListProjectMergeRequestsOptions, repositoryName string) ([]*gitlab.MergeRequest, error)
- func (m *MockLabMergeRequestClient) UpdateMergeRequest(opt *gitlab.UpdateMergeRequestOptions, pid int, repositoryName string) (*gitlab.MergeRequest, error)
- type MockProvider
- func (m *MockProvider) GetClient(remote *git.RemoteInfo) (Client, error)
- func (m *MockProvider) GetCurrentRemote() (*git.RemoteInfo, error)
- func (m *MockProvider) GetIssueClient(remote *git.RemoteInfo) (Issue, error)
- func (m *MockProvider) GetMergeRequestClient(remote *git.RemoteInfo) (MergeRequest, error)
- func (m *MockProvider) Init() error
- type Provider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParceRepositoryFullName ¶
Types ¶
type Client ¶
type Client interface { // Project Projects(opt *gitlab.ListProjectsOptions) ([]*gitlab.Project, error) // Pipeline ProjectPipelines(repositoryName string, opt *gitlab.ListProjectPipelinesOptions) (gitlab.PipelineList, error) ProjectPipelineJobs(repositoryName string, opt *gitlab.ListJobsOptions, pid int) ([]*gitlab.Job, error) // Lint Lint(content string) (*gitlab.LintResult, error) // User ProjectUsers(repositoryName string, opt *gitlab.ListProjectUserOptions) ([]*gitlab.ProjectUser, error) Users(opt *gitlab.ListUsersOptions) ([]*gitlab.User, error) }
type GitlabProvider ¶
func NewProvider ¶
func NewProvider(ui ui.Ui, gitClient git.Client, configManager *config.ConfigManager) *GitlabProvider
func (*GitlabProvider) GetClient ¶
func (p *GitlabProvider) GetClient(remote *git.RemoteInfo) (Client, error)
func (*GitlabProvider) GetCurrentRemote ¶
func (p *GitlabProvider) GetCurrentRemote() (*git.RemoteInfo, error)
func (*GitlabProvider) GetIssueClient ¶ added in v0.3.0
func (p *GitlabProvider) GetIssueClient(remote *git.RemoteInfo) (Issue, error)
func (*GitlabProvider) GetJobClient ¶ added in v0.4.0
func (p *GitlabProvider) GetJobClient(remote *git.RemoteInfo) (Job, error)
func (*GitlabProvider) GetMergeRequestClient ¶ added in v0.3.0
func (p *GitlabProvider) GetMergeRequestClient(remote *git.RemoteInfo) (MergeRequest, error)
func (*GitlabProvider) Init ¶
func (p *GitlabProvider) Init() error
type Issue ¶ added in v0.3.0
type Issue interface { GetIssue(pid int, repositoryName string) (*gitlab.Issue, error) GetAllProjectIssues(opt *gitlab.ListIssuesOptions) ([]*gitlab.Issue, error) GetProjectIssues(opt *gitlab.ListProjectIssuesOptions, repositoryName string) ([]*gitlab.Issue, error) CreateIssue(opt *gitlab.CreateIssueOptions, repositoryName string) (*gitlab.Issue, error) UpdateIssue(opt *gitlab.UpdateIssueOptions, pid int, repositoryName string) (*gitlab.Issue, error) }
type IssueClient ¶ added in v0.3.0
func NewIssueClient ¶ added in v0.3.0
func NewIssueClient(client *gitlab.Client) *IssueClient
func (*IssueClient) CreateIssue ¶ added in v0.3.0
func (c *IssueClient) CreateIssue(opt *gitlab.CreateIssueOptions, repositoryName string) (*gitlab.Issue, error)
func (*IssueClient) GetAllProjectIssues ¶ added in v0.3.0
func (c *IssueClient) GetAllProjectIssues(opt *gitlab.ListIssuesOptions) ([]*gitlab.Issue, error)
func (*IssueClient) GetProjectIssues ¶ added in v0.3.0
func (c *IssueClient) GetProjectIssues(opt *gitlab.ListProjectIssuesOptions, repositoryName string) ([]*gitlab.Issue, error)
func (*IssueClient) UpdateIssue ¶ added in v0.3.0
func (c *IssueClient) UpdateIssue(opt *gitlab.UpdateIssueOptions, pid int, repositoryName string) (*gitlab.Issue, error)
type JobClient ¶ added in v0.4.0
func NewJobClient ¶ added in v0.4.0
func (*JobClient) GetProjectJobs ¶ added in v0.4.0
type LabClient ¶
func NewLabClient ¶
func (*LabClient) Lint ¶ added in v0.2.0
func (l *LabClient) Lint(content string) (*gitlab.LintResult, error)
func (*LabClient) ProjectPipelineJobs ¶ added in v0.3.0
func (*LabClient) ProjectPipelines ¶ added in v0.2.0
func (l *LabClient) ProjectPipelines(repositoryName string, opt *gitlab.ListProjectPipelinesOptions) (gitlab.PipelineList, error)
func (*LabClient) ProjectUsers ¶ added in v0.3.0
func (l *LabClient) ProjectUsers(repositoryName string, opt *gitlab.ListProjectUserOptions) ([]*gitlab.ProjectUser, error)
type MergeRequest ¶ added in v0.3.0
type MergeRequest interface { GetMergeRequest(pid int, repositoryName string) (*gitlab.MergeRequest, error) GetAllProjectMergeRequest(opt *gitlab.ListMergeRequestsOptions) ([]*gitlab.MergeRequest, error) GetProjectMargeRequest(opt *gitlab.ListProjectMergeRequestsOptions, repositoryName string) ([]*gitlab.MergeRequest, error) CreateMergeRequest(opt *gitlab.CreateMergeRequestOptions, repositoryName string) (*gitlab.MergeRequest, error) UpdateMergeRequest(opt *gitlab.UpdateMergeRequestOptions, pid int, repositoryName string) (*gitlab.MergeRequest, error) }
type MergeRequestClient ¶ added in v0.3.0
type MergeRequestClient struct { MergeRequest Client *gitlab.Client }
func NewMergeRequestClient ¶ added in v0.3.0
func NewMergeRequestClient(client *gitlab.Client) *MergeRequestClient
func (*MergeRequestClient) CreateMergeRequest ¶ added in v0.3.0
func (l *MergeRequestClient) CreateMergeRequest(opt *gitlab.CreateMergeRequestOptions, repositoryName string) (*gitlab.MergeRequest, error)
func (*MergeRequestClient) GetAllProjectMergeRequest ¶ added in v0.3.0
func (l *MergeRequestClient) GetAllProjectMergeRequest(opt *gitlab.ListMergeRequestsOptions) ([]*gitlab.MergeRequest, error)
func (*MergeRequestClient) GetMergeRequest ¶ added in v0.3.0
func (l *MergeRequestClient) GetMergeRequest(pid int, repositoryName string) (*gitlab.MergeRequest, error)
func (*MergeRequestClient) GetProjectMargeRequest ¶ added in v0.3.0
func (l *MergeRequestClient) GetProjectMargeRequest(opt *gitlab.ListProjectMergeRequestsOptions, repositoryName string) ([]*gitlab.MergeRequest, error)
func (*MergeRequestClient) UpdateMergeRequest ¶ added in v0.3.0
func (l *MergeRequestClient) UpdateMergeRequest(opt *gitlab.UpdateMergeRequestOptions, pid int, repositoryName string) (*gitlab.MergeRequest, error)
type MockLabClient ¶
type MockLabClient struct { Client // Project MockProjects func(opt *gitlab.ListProjectsOptions) ([]*gitlab.Project, error) // Pipeline MockProjectPipelines func(repositoryName string, opt *gitlab.ListProjectPipelinesOptions) (gitlab.PipelineList, error) MockProjectPipelineJobs func(repositoryName string, opt *gitlab.ListJobsOptions, pid int) ([]*gitlab.Job, error) // Lint MockLint func(content string) (*gitlab.LintResult, error) // User MockProjectUsers func(repositoryName string, opt *gitlab.ListProjectUserOptions) ([]*gitlab.ProjectUser, error) MockUsers func(opt *gitlab.ListUsersOptions) ([]*gitlab.User, error) }
func (*MockLabClient) Lint ¶ added in v0.2.0
func (m *MockLabClient) Lint(content string) (*gitlab.LintResult, error)
func (*MockLabClient) ProjectPipelineJobs ¶ added in v0.3.0
func (m *MockLabClient) ProjectPipelineJobs(repositoryName string, opt *gitlab.ListJobsOptions, pid int) ([]*gitlab.Job, error)
func (*MockLabClient) ProjectPipelines ¶ added in v0.2.0
func (m *MockLabClient) ProjectPipelines(repositoryName string, opt *gitlab.ListProjectPipelinesOptions) (gitlab.PipelineList, error)
func (*MockLabClient) ProjectUsers ¶ added in v0.3.0
func (m *MockLabClient) ProjectUsers(repositoryName string, opt *gitlab.ListProjectUserOptions) ([]*gitlab.ProjectUser, error)
func (*MockLabClient) Projects ¶ added in v0.2.0
func (m *MockLabClient) Projects(opt *gitlab.ListProjectsOptions) ([]*gitlab.Project, error)
func (*MockLabClient) Users ¶ added in v0.3.0
func (m *MockLabClient) Users(opt *gitlab.ListUsersOptions) ([]*gitlab.User, error)
type MockLabIssueClient ¶ added in v0.3.0
type MockLabIssueClient struct { Issue MockGetIssue func(pid int, repositoryName string) (*gitlab.Issue, error) MockGetAllProjectIssues func(opt *gitlab.ListIssuesOptions) ([]*gitlab.Issue, error) MockGetProjectIssues func(opt *gitlab.ListProjectIssuesOptions, repositoryName string) ([]*gitlab.Issue, error) MockCreateIssue func(opt *gitlab.CreateIssueOptions, repositoryName string) (*gitlab.Issue, error) MockUpdateIssue func(opt *gitlab.UpdateIssueOptions, pid int, repositoryName string) (*gitlab.Issue, error) }
func (*MockLabIssueClient) CreateIssue ¶ added in v0.3.0
func (m *MockLabIssueClient) CreateIssue(opt *gitlab.CreateIssueOptions, repositoryName string) (*gitlab.Issue, error)
func (*MockLabIssueClient) GetAllProjectIssues ¶ added in v0.3.0
func (m *MockLabIssueClient) GetAllProjectIssues(opt *gitlab.ListIssuesOptions) ([]*gitlab.Issue, error)
func (*MockLabIssueClient) GetProjectIssues ¶ added in v0.3.0
func (m *MockLabIssueClient) GetProjectIssues(opt *gitlab.ListProjectIssuesOptions, repositoryName string) ([]*gitlab.Issue, error)
func (*MockLabIssueClient) UpdateIssue ¶ added in v0.3.0
func (m *MockLabIssueClient) UpdateIssue(opt *gitlab.UpdateIssueOptions, pid int, repositoryName string) (*gitlab.Issue, error)
type MockLabJobClient ¶ added in v0.4.0
type MockLabJobClient struct { Job MockGetProjectJobs func(opt *gitlab.ListJobsOptions, repositoryName string) ([]*gitlab.Job, error) }
func (*MockLabJobClient) GetProjectJobs ¶ added in v0.4.0
func (m *MockLabJobClient) GetProjectJobs(opt *gitlab.ListJobsOptions, repositoryName string) ([]*gitlab.Job, error)
type MockLabMergeRequestClient ¶ added in v0.3.0
type MockLabMergeRequestClient struct { MergeRequest MockGetMergeRequest func(pid int, repositoryName string) (*gitlab.MergeRequest, error) MockGetAllProjectMergeRequest func(opt *gitlab.ListMergeRequestsOptions) ([]*gitlab.MergeRequest, error) MockGetProjectMargeRequest func(opt *gitlab.ListProjectMergeRequestsOptions, repositoryName string) ([]*gitlab.MergeRequest, error) MockCreateMergeRequest func(opt *gitlab.CreateMergeRequestOptions, repositoryName string) (*gitlab.MergeRequest, error) MockUpdateMergeRequest func(opt *gitlab.UpdateMergeRequestOptions, pid int, repositoryName string) (*gitlab.MergeRequest, error) }
func (*MockLabMergeRequestClient) CreateMergeRequest ¶ added in v0.3.0
func (m *MockLabMergeRequestClient) CreateMergeRequest(opt *gitlab.CreateMergeRequestOptions, repositoryName string) (*gitlab.MergeRequest, error)
func (*MockLabMergeRequestClient) GetAllProjectMergeRequest ¶ added in v0.3.0
func (m *MockLabMergeRequestClient) GetAllProjectMergeRequest(opt *gitlab.ListMergeRequestsOptions) ([]*gitlab.MergeRequest, error)
func (*MockLabMergeRequestClient) GetMergeRequest ¶ added in v0.3.0
func (m *MockLabMergeRequestClient) GetMergeRequest(pid int, repositoryName string) (*gitlab.MergeRequest, error)
func (*MockLabMergeRequestClient) GetProjectMargeRequest ¶ added in v0.3.0
func (m *MockLabMergeRequestClient) GetProjectMargeRequest(opt *gitlab.ListProjectMergeRequestsOptions, repositoryName string) ([]*gitlab.MergeRequest, error)
func (*MockLabMergeRequestClient) UpdateMergeRequest ¶ added in v0.3.0
func (m *MockLabMergeRequestClient) UpdateMergeRequest(opt *gitlab.UpdateMergeRequestOptions, pid int, repositoryName string) (*gitlab.MergeRequest, error)
type MockProvider ¶
type MockProvider struct { Provider MockInit func() error MockGetSpecificRemote func(namespace, project string) *git.RemoteInfo MockGetCurrentRemote func() (*git.RemoteInfo, error) MockGetClient func(remote *git.RemoteInfo) (Client, error) MockGetIssueClient func(remote *git.RemoteInfo) (Issue, error) MockGetMergeRequestClient func(remote *git.RemoteInfo) (MergeRequest, error) }
func (*MockProvider) GetClient ¶
func (m *MockProvider) GetClient(remote *git.RemoteInfo) (Client, error)
func (*MockProvider) GetCurrentRemote ¶
func (m *MockProvider) GetCurrentRemote() (*git.RemoteInfo, error)
func (*MockProvider) GetIssueClient ¶ added in v0.3.0
func (m *MockProvider) GetIssueClient(remote *git.RemoteInfo) (Issue, error)
func (*MockProvider) GetMergeRequestClient ¶ added in v0.3.0
func (m *MockProvider) GetMergeRequestClient(remote *git.RemoteInfo) (MergeRequest, error)
func (*MockProvider) Init ¶
func (m *MockProvider) Init() error
type Provider ¶
type Provider interface { Init() error GetCurrentRemote() (*git.RemoteInfo, error) GetClient(remote *git.RemoteInfo) (Client, error) GetJobClient(remote *git.RemoteInfo) (Job, error) GetIssueClient(remote *git.RemoteInfo) (Issue, error) GetMergeRequestClient(remote *git.RemoteInfo) (MergeRequest, error) }
Click to show internal directories.
Click to hide internal directories.