Documentation
¶
Index ¶
- type APIClientFactory
- type Branch
- type BranchClient
- type GitlabClientFactory
- func (f *GitlabClientFactory) GetBranchClient() Branch
- func (f *GitlabClientFactory) GetIssueClient() Issue
- func (f *GitlabClientFactory) GetJobClient() Job
- func (f *GitlabClientFactory) GetLintClient() Lint
- func (f *GitlabClientFactory) GetMergeRequestClient() MergeRequest
- func (f *GitlabClientFactory) GetMilestoneClient() Milestone
- func (f *GitlabClientFactory) GetNoteClient() Note
- func (f *GitlabClientFactory) GetPipelineClient() Pipeline
- func (f *GitlabClientFactory) GetProjectClient() Project
- func (f *GitlabClientFactory) GetProjectVariableClient() ProjectVariable
- func (f *GitlabClientFactory) GetRepositoryClient() Repository
- func (f *GitlabClientFactory) GetRunnerClient() Runner
- func (f *GitlabClientFactory) GetUserClient() User
- func (f *GitlabClientFactory) Init(url, token string) 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 Lint
- type LintClient
- 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 Milestone
- type MilestoneClient
- type MockAPIClientFactory
- func (m *MockAPIClientFactory) GetBranchClient() Branch
- func (m *MockAPIClientFactory) GetIssueClient() Issue
- func (m *MockAPIClientFactory) GetJobClient() Job
- func (m *MockAPIClientFactory) GetLintClient() Lint
- func (m *MockAPIClientFactory) GetMergeRequestClient() MergeRequest
- func (m *MockAPIClientFactory) GetMilestoneClient() Milestone
- func (m *MockAPIClientFactory) GetNoteClient() Note
- func (m *MockAPIClientFactory) GetPipelineClient() Pipeline
- func (m *MockAPIClientFactory) GetProjectClient() Project
- func (m *MockAPIClientFactory) GetProjectVariableClient() ProjectVariable
- func (m *MockAPIClientFactory) GetRepositoryClient() Repository
- func (m *MockAPIClientFactory) GetRunnerClient() Runner
- func (m *MockAPIClientFactory) GetUserClient() User
- func (m *MockAPIClientFactory) Init(url, token string) error
- type MockBranchClient
- 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 MockLintClient
- type MockMilestoneClient
- type MockNoteClient
- type MockPipelineClient
- type MockProjectClient
- type MockProjectVariableClient
- func (c *MockProjectVariableClient) CreateVariable(repositoryName string, opt *gitlab.CreateVariableOptions) (*gitlab.ProjectVariable, error)
- func (c *MockProjectVariableClient) GetVariables(repositoryName string) ([]*gitlab.ProjectVariable, error)
- func (c *MockProjectVariableClient) RemoveVariable(repositoryName string, key string) error
- func (c *MockProjectVariableClient) UpdateVariable(repositoryName string, key string, opt *gitlab.UpdateVariableOptions) (*gitlab.ProjectVariable, error)
- type MockRepositoryClient
- type MockUserClient
- type Note
- type NoteClient
- type Pipeline
- type PipelineClient
- type Project
- type ProjectClient
- type ProjectVariable
- type ProjectVariableClient
- func (c *ProjectVariableClient) CreateVariable(repositoryName string, opt *gitlab.CreateVariableOptions) (*gitlab.ProjectVariable, error)
- func (c *ProjectVariableClient) GetVariables(repositoryName string) ([]*gitlab.ProjectVariable, error)
- func (c *ProjectVariableClient) RemoveVariable(repositoryName string, key string) error
- func (c *ProjectVariableClient) UpdateVariable(repositoryName string, key string, opt *gitlab.UpdateVariableOptions) (*gitlab.ProjectVariable, error)
- type Repository
- type RepositoryClient
- type Runner
- type RunnerClient
- func (c *RunnerClient) GetRunnerDetails(id int) (*gitlab.RunnerDetails, error)
- func (c *RunnerClient) ListAllRunners(opt *gitlab.ListRunnersOptions) ([]*gitlab.Runner, error)
- func (c *RunnerClient) ListProjectRunners(pid string, opt *gitlab.ListProjectRunnersOptions) ([]*gitlab.Runner, error)
- func (c *RunnerClient) RemoveRunner(iid int) error
- type User
- type UserClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIClientFactory ¶
type APIClientFactory interface { Init(url, token string) error GetJobClient() Job GetIssueClient() Issue GetMergeRequestClient() MergeRequest GetProjectVariableClient() ProjectVariable GetRepositoryClient() Repository GetPipelineClient() Pipeline GetNoteClient() Note GetProjectClient() Project GetUserClient() User GetLintClient() Lint GetRunnerClient() Runner GetMilestoneClient() Milestone GetBranchClient() Branch }
func NewGitlabClientFactory ¶
func NewGitlabClientFactory(url, token string) (APIClientFactory, error)
type Branch ¶
type Branch interface { GetBranch(project string, branch string) (*gitlab.Branch, error) ListBranches(project string, opt *gitlab.ListBranchesOptions) ([]*gitlab.Branch, error) }
func NewBranchClient ¶
type BranchClient ¶
func (*BranchClient) ListBranches ¶
func (c *BranchClient) ListBranches(project string, opt *gitlab.ListBranchesOptions) ([]*gitlab.Branch, error)
type GitlabClientFactory ¶
type GitlabClientFactory struct {
// contains filtered or unexported fields
}
func (*GitlabClientFactory) GetBranchClient ¶
func (f *GitlabClientFactory) GetBranchClient() Branch
func (*GitlabClientFactory) GetIssueClient ¶
func (f *GitlabClientFactory) GetIssueClient() Issue
func (*GitlabClientFactory) GetJobClient ¶
func (f *GitlabClientFactory) GetJobClient() Job
func (*GitlabClientFactory) GetLintClient ¶
func (f *GitlabClientFactory) GetLintClient() Lint
func (*GitlabClientFactory) GetMergeRequestClient ¶
func (f *GitlabClientFactory) GetMergeRequestClient() MergeRequest
func (*GitlabClientFactory) GetMilestoneClient ¶
func (f *GitlabClientFactory) GetMilestoneClient() Milestone
func (*GitlabClientFactory) GetNoteClient ¶
func (f *GitlabClientFactory) GetNoteClient() Note
func (*GitlabClientFactory) GetPipelineClient ¶
func (f *GitlabClientFactory) GetPipelineClient() Pipeline
func (*GitlabClientFactory) GetProjectClient ¶
func (f *GitlabClientFactory) GetProjectClient() Project
func (*GitlabClientFactory) GetProjectVariableClient ¶
func (f *GitlabClientFactory) GetProjectVariableClient() ProjectVariable
func (*GitlabClientFactory) GetRepositoryClient ¶
func (f *GitlabClientFactory) GetRepositoryClient() Repository
func (*GitlabClientFactory) GetRunnerClient ¶
func (f *GitlabClientFactory) GetRunnerClient() Runner
func (*GitlabClientFactory) GetUserClient ¶
func (f *GitlabClientFactory) GetUserClient() User
func (*GitlabClientFactory) Init ¶
func (f *GitlabClientFactory) Init(url, token string) error
type Issue ¶
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 ¶
func NewIssueClient ¶
func NewIssueClient(client *gitlab.Client) *IssueClient
func (*IssueClient) CreateIssue ¶
func (c *IssueClient) CreateIssue(opt *gitlab.CreateIssueOptions, repositoryName string) (*gitlab.Issue, error)
func (*IssueClient) GetAllProjectIssues ¶
func (c *IssueClient) GetAllProjectIssues(opt *gitlab.ListIssuesOptions) ([]*gitlab.Issue, error)
func (*IssueClient) GetProjectIssues ¶
func (c *IssueClient) GetProjectIssues(opt *gitlab.ListProjectIssuesOptions, repositoryName string) ([]*gitlab.Issue, error)
func (*IssueClient) UpdateIssue ¶
func (c *IssueClient) UpdateIssue(opt *gitlab.UpdateIssueOptions, pid int, repositoryName string) (*gitlab.Issue, error)
type LintClient ¶
func NewLintClient ¶
func NewLintClient(client *gitlab.Client) *LintClient
func (*LintClient) Lint ¶
func (c *LintClient) Lint(content string) (*gitlab.LintResult, error)
type MergeRequest ¶
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 ¶
type MergeRequestClient struct { MergeRequest Client *gitlab.Client }
func NewMergeRequestClient ¶
func NewMergeRequestClient(client *gitlab.Client) *MergeRequestClient
func (*MergeRequestClient) CreateMergeRequest ¶
func (l *MergeRequestClient) CreateMergeRequest(opt *gitlab.CreateMergeRequestOptions, repositoryName string) (*gitlab.MergeRequest, error)
func (*MergeRequestClient) GetAllProjectMergeRequest ¶
func (l *MergeRequestClient) GetAllProjectMergeRequest(opt *gitlab.ListMergeRequestsOptions) ([]*gitlab.MergeRequest, error)
func (*MergeRequestClient) GetMergeRequest ¶
func (l *MergeRequestClient) GetMergeRequest(pid int, repositoryName string) (*gitlab.MergeRequest, error)
func (*MergeRequestClient) GetProjectMargeRequest ¶
func (l *MergeRequestClient) GetProjectMargeRequest(opt *gitlab.ListProjectMergeRequestsOptions, repositoryName string) ([]*gitlab.MergeRequest, error)
func (*MergeRequestClient) UpdateMergeRequest ¶
func (l *MergeRequestClient) UpdateMergeRequest(opt *gitlab.UpdateMergeRequestOptions, pid int, repositoryName string) (*gitlab.MergeRequest, error)
type MilestoneClient ¶
func NewMilestoneClient ¶
func NewMilestoneClient(client *gitlab.Client) *MilestoneClient
func (*MilestoneClient) ListMilestones ¶
func (c *MilestoneClient) ListMilestones(project string, opt *gitlab.ListMilestonesOptions) ([]*gitlab.Milestone, error)
type MockAPIClientFactory ¶
type MockAPIClientFactory struct { MockGetJobClient func() Job MockGetIssueClient func() Issue MockGetMergeRequestClient func() MergeRequest MockGetProjectVariableClient func() ProjectVariable MockGetRepositoryClient func() Repository MockGetNoteClient func() Note MockGetPipelineClient func() Pipeline MockGetProjectClient func() Project MockGetUserClient func() User MockGetLintClient func() Lint MockGetRunnerClient func() Runner MockGetMilestoneClient func() Milestone MockGetBranchClient func() Branch }
func (*MockAPIClientFactory) GetBranchClient ¶
func (m *MockAPIClientFactory) GetBranchClient() Branch
func (*MockAPIClientFactory) GetIssueClient ¶
func (m *MockAPIClientFactory) GetIssueClient() Issue
func (*MockAPIClientFactory) GetJobClient ¶
func (m *MockAPIClientFactory) GetJobClient() Job
func (*MockAPIClientFactory) GetLintClient ¶
func (m *MockAPIClientFactory) GetLintClient() Lint
func (*MockAPIClientFactory) GetMergeRequestClient ¶
func (m *MockAPIClientFactory) GetMergeRequestClient() MergeRequest
func (*MockAPIClientFactory) GetMilestoneClient ¶
func (m *MockAPIClientFactory) GetMilestoneClient() Milestone
func (*MockAPIClientFactory) GetNoteClient ¶
func (m *MockAPIClientFactory) GetNoteClient() Note
func (*MockAPIClientFactory) GetPipelineClient ¶
func (m *MockAPIClientFactory) GetPipelineClient() Pipeline
func (*MockAPIClientFactory) GetProjectClient ¶
func (m *MockAPIClientFactory) GetProjectClient() Project
func (*MockAPIClientFactory) GetProjectVariableClient ¶
func (m *MockAPIClientFactory) GetProjectVariableClient() ProjectVariable
func (*MockAPIClientFactory) GetRepositoryClient ¶
func (m *MockAPIClientFactory) GetRepositoryClient() Repository
func (*MockAPIClientFactory) GetRunnerClient ¶
func (m *MockAPIClientFactory) GetRunnerClient() Runner
func (*MockAPIClientFactory) GetUserClient ¶
func (m *MockAPIClientFactory) GetUserClient() User
func (*MockAPIClientFactory) Init ¶
func (m *MockAPIClientFactory) Init(url, token string) error
type MockBranchClient ¶
type MockBranchClient struct { MockGetBranch func(project string, branch string) (*gitlab.Branch, error) MockListBranches func(project string, opt *gitlab.ListBranchesOptions) ([]*gitlab.Branch, error) }
func (*MockBranchClient) ListBranches ¶
func (m *MockBranchClient) ListBranches(project string, opt *gitlab.ListBranchesOptions) ([]*gitlab.Branch, error)
type MockLabIssueClient ¶
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) // contains filtered or unexported fields }
func (*MockLabIssueClient) CreateIssue ¶
func (m *MockLabIssueClient) CreateIssue(opt *gitlab.CreateIssueOptions, repositoryName string) (*gitlab.Issue, error)
func (*MockLabIssueClient) GetAllProjectIssues ¶
func (m *MockLabIssueClient) GetAllProjectIssues(opt *gitlab.ListIssuesOptions) ([]*gitlab.Issue, error)
func (*MockLabIssueClient) GetProjectIssues ¶
func (m *MockLabIssueClient) GetProjectIssues(opt *gitlab.ListProjectIssuesOptions, repositoryName string) ([]*gitlab.Issue, error)
func (*MockLabIssueClient) UpdateIssue ¶
func (m *MockLabIssueClient) UpdateIssue(opt *gitlab.UpdateIssueOptions, pid int, repositoryName string) (*gitlab.Issue, error)
type MockLabJobClient ¶
type MockLabJobClient struct { Job MockGetProjectJobs func(opt *gitlab.ListJobsOptions, repositoryName string) ([]*gitlab.Job, error) }
func (*MockLabJobClient) GetProjectJobs ¶
func (m *MockLabJobClient) GetProjectJobs(opt *gitlab.ListJobsOptions, repositoryName string) ([]*gitlab.Job, error)
type MockLabMergeRequestClient ¶
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 ¶
func (m *MockLabMergeRequestClient) CreateMergeRequest(opt *gitlab.CreateMergeRequestOptions, repositoryName string) (*gitlab.MergeRequest, error)
func (*MockLabMergeRequestClient) GetAllProjectMergeRequest ¶
func (m *MockLabMergeRequestClient) GetAllProjectMergeRequest(opt *gitlab.ListMergeRequestsOptions) ([]*gitlab.MergeRequest, error)
func (*MockLabMergeRequestClient) GetMergeRequest ¶
func (m *MockLabMergeRequestClient) GetMergeRequest(pid int, repositoryName string) (*gitlab.MergeRequest, error)
func (*MockLabMergeRequestClient) GetProjectMargeRequest ¶
func (m *MockLabMergeRequestClient) GetProjectMargeRequest(opt *gitlab.ListProjectMergeRequestsOptions, repositoryName string) ([]*gitlab.MergeRequest, error)
func (*MockLabMergeRequestClient) UpdateMergeRequest ¶
func (m *MockLabMergeRequestClient) UpdateMergeRequest(opt *gitlab.UpdateMergeRequestOptions, pid int, repositoryName string) (*gitlab.MergeRequest, error)
type MockLintClient ¶
type MockLintClient struct {
MockLint func(content string) (*gitlab.LintResult, error)
}
func (*MockLintClient) Lint ¶
func (m *MockLintClient) Lint(content string) (*gitlab.LintResult, error)
type MockMilestoneClient ¶
type MockMilestoneClient struct {
MockListMilestones func(project string, opt *gitlab.ListMilestonesOptions) ([]*gitlab.Milestone, error)
}
func (*MockMilestoneClient) ListMilestones ¶
func (m *MockMilestoneClient) ListMilestones(project string, opt *gitlab.ListMilestonesOptions) ([]*gitlab.Milestone, error)
type MockNoteClient ¶
type MockNoteClient struct { Note MockGetIssueNotes func(repositoryName string, iid int, opt *gitlab.ListIssueNotesOptions) ([]*gitlab.Note, error) MockGetMergeRequestNotes func(repositoryName string, iid int, opt *gitlab.ListMergeRequestNotesOptions) ([]*gitlab.Note, error) }
func (*MockNoteClient) GetIssueNotes ¶
func (m *MockNoteClient) GetIssueNotes(repositoryName string, iid int, opt *gitlab.ListIssueNotesOptions) ([]*gitlab.Note, error)
func (*MockNoteClient) GetMergeRequestNotes ¶
func (m *MockNoteClient) GetMergeRequestNotes(repositoryName string, iid int, opt *gitlab.ListMergeRequestNotesOptions) ([]*gitlab.Note, error)
type MockPipelineClient ¶
type MockPipelineClient struct { MockProjectPipelines func(repositoryName string, opt *gitlab.ListProjectPipelinesOptions) (gitlab.PipelineList, error) MockProjectPipelineJobs func(repositoryName string, opt *gitlab.ListJobsOptions, pid int) ([]*gitlab.Job, error) }
func (*MockPipelineClient) ProjectPipelineJobs ¶
func (m *MockPipelineClient) ProjectPipelineJobs(repositoryName string, opt *gitlab.ListJobsOptions, pid int) ([]*gitlab.Job, error)
func (*MockPipelineClient) ProjectPipelines ¶
func (m *MockPipelineClient) ProjectPipelines(repositoryName string, opt *gitlab.ListProjectPipelinesOptions) (gitlab.PipelineList, error)
type MockProjectClient ¶
type MockProjectClient struct {
MockProjects func(opt *gitlab.ListProjectsOptions) ([]*gitlab.Project, error)
}
func (*MockProjectClient) Projects ¶
func (m *MockProjectClient) Projects(opt *gitlab.ListProjectsOptions) ([]*gitlab.Project, error)
type MockProjectVariableClient ¶
type MockProjectVariableClient struct { ProjectVariable MockGetVariables func(repositoryName string) ([]*gitlab.ProjectVariable, error) MockCreateVariable func(repositoryName string, opt *gitlab.CreateVariableOptions) (*gitlab.ProjectVariable, error) MockUpdateVariable func(repositoryName string, key string, opt *gitlab.UpdateVariableOptions) (*gitlab.ProjectVariable, error) MockRemoveVariable func(repositoryName string, key string) error }
func (*MockProjectVariableClient) CreateVariable ¶
func (c *MockProjectVariableClient) CreateVariable(repositoryName string, opt *gitlab.CreateVariableOptions) (*gitlab.ProjectVariable, error)
func (*MockProjectVariableClient) GetVariables ¶
func (c *MockProjectVariableClient) GetVariables(repositoryName string) ([]*gitlab.ProjectVariable, error)
func (*MockProjectVariableClient) RemoveVariable ¶
func (c *MockProjectVariableClient) RemoveVariable(repositoryName string, key string) error
func (*MockProjectVariableClient) UpdateVariable ¶
func (c *MockProjectVariableClient) UpdateVariable(repositoryName string, key string, opt *gitlab.UpdateVariableOptions) (*gitlab.ProjectVariable, error)
type MockRepositoryClient ¶
type MockRepositoryClient struct { Repository MockGetTree func(repositoryName string, opt *gitlab.ListTreeOptions) ([]*gitlab.TreeNode, error) MockGetFile func(repositoryName string, filename string, opt *gitlab.GetRawFileOptions) (string, error) }
func (*MockRepositoryClient) GetFile ¶
func (m *MockRepositoryClient) GetFile(repositoryName string, filename string, opt *gitlab.GetRawFileOptions) (string, error)
func (*MockRepositoryClient) GetTree ¶
func (m *MockRepositoryClient) GetTree(repositoryName string, opt *gitlab.ListTreeOptions) ([]*gitlab.TreeNode, error)
type MockUserClient ¶
type MockUserClient struct { MockUsers func(opt *gitlab.ListUsersOptions) ([]*gitlab.User, error) MockProjectUsers func(repositoryName string, opt *gitlab.ListProjectUserOptions) ([]*gitlab.ProjectUser, error) }
func (*MockUserClient) ProjectUsers ¶
func (m *MockUserClient) ProjectUsers(repositoryName string, opt *gitlab.ListProjectUserOptions) ([]*gitlab.ProjectUser, error)
func (*MockUserClient) Users ¶
func (m *MockUserClient) Users(opt *gitlab.ListUsersOptions) ([]*gitlab.User, error)
type NoteClient ¶
func NewNoteClient ¶
func NewNoteClient(client *gitlab.Client) *NoteClient
func (*NoteClient) GetIssueNotes ¶
func (c *NoteClient) GetIssueNotes(repositoryName string, iid int, opt *gitlab.ListIssueNotesOptions) ([]*gitlab.Note, error)
func (*NoteClient) GetMergeRequestNotes ¶
func (c *NoteClient) GetMergeRequestNotes(repositoryName string, iid int, opt *gitlab.ListMergeRequestNotesOptions) ([]*gitlab.Note, error)
type Pipeline ¶
type Pipeline interface { ProjectPipelines(repositoryName string, opt *gitlab.ListProjectPipelinesOptions) (gitlab.PipelineList, error) ProjectPipelineJobs(repositoryName string, opt *gitlab.ListJobsOptions, pid int) ([]*gitlab.Job, error) }
func NewPipelineClient ¶
type PipelineClient ¶
func (*PipelineClient) ProjectPipelineJobs ¶
func (c *PipelineClient) ProjectPipelineJobs(repositoryName string, opt *gitlab.ListJobsOptions, pid int) ([]*gitlab.Job, error)
func (*PipelineClient) ProjectPipelines ¶
func (c *PipelineClient) ProjectPipelines(repositoryName string, opt *gitlab.ListProjectPipelinesOptions) (gitlab.PipelineList, error)
type Project ¶
type Project interface {
Projects(opt *gitlab.ListProjectsOptions) ([]*gitlab.Project, error)
}
type ProjectClient ¶
func NewProjectClient ¶
func NewProjectClient(client *gitlab.Client) *ProjectClient
func (*ProjectClient) Projects ¶
func (c *ProjectClient) Projects(opt *gitlab.ListProjectsOptions) ([]*gitlab.Project, error)
type ProjectVariable ¶
type ProjectVariable interface { GetVariables(repositoryName string) ([]*gitlab.ProjectVariable, error) CreateVariable(repositoryName string, opt *gitlab.CreateVariableOptions) (*gitlab.ProjectVariable, error) UpdateVariable(repositoryName string, key string, opt *gitlab.UpdateVariableOptions) (*gitlab.ProjectVariable, error) RemoveVariable(repositoryName string, key string) error }
func NewProjectVariableClient ¶
func NewProjectVariableClient(client *gitlab.Client) ProjectVariable
type ProjectVariableClient ¶
type ProjectVariableClient struct { ProjectVariable Client *gitlab.Client }
func (*ProjectVariableClient) CreateVariable ¶
func (c *ProjectVariableClient) CreateVariable(repositoryName string, opt *gitlab.CreateVariableOptions) (*gitlab.ProjectVariable, error)
func (*ProjectVariableClient) GetVariables ¶
func (c *ProjectVariableClient) GetVariables(repositoryName string) ([]*gitlab.ProjectVariable, error)
func (*ProjectVariableClient) RemoveVariable ¶
func (c *ProjectVariableClient) RemoveVariable(repositoryName string, key string) error
func (*ProjectVariableClient) UpdateVariable ¶
func (c *ProjectVariableClient) UpdateVariable(repositoryName string, key string, opt *gitlab.UpdateVariableOptions) (*gitlab.ProjectVariable, error)
type Repository ¶
type Repository interface { GetTree(repositoryName string, opt *gitlab.ListTreeOptions) ([]*gitlab.TreeNode, error) GetFile(repositoryName string, filename string, opt *gitlab.GetRawFileOptions) (string, error) }
func NewRepositoryClient ¶
func NewRepositoryClient(client *gitlab.Client) Repository
type RepositoryClient ¶
type RepositoryClient struct { Repository Client *gitlab.Client }
func (*RepositoryClient) GetFile ¶
func (c *RepositoryClient) GetFile(repositoryName string, filename string, opt *gitlab.GetRawFileOptions) (string, error)
func (*RepositoryClient) GetTree ¶
func (c *RepositoryClient) GetTree(repositoryName string, opt *gitlab.ListTreeOptions) ([]*gitlab.TreeNode, error)
type Runner ¶
type Runner interface { ListAllRunners(opt *gitlab.ListRunnersOptions) ([]*gitlab.Runner, error) ListProjectRunners(pid string, opt *gitlab.ListProjectRunnersOptions) ([]*gitlab.Runner, error) GetRunnerDetails(id int) (*gitlab.RunnerDetails, error) RemoveRunner(iid int) error }
func NewRunnerClient ¶
type RunnerClient ¶
func (*RunnerClient) GetRunnerDetails ¶
func (c *RunnerClient) GetRunnerDetails(id int) (*gitlab.RunnerDetails, error)
func (*RunnerClient) ListAllRunners ¶
func (c *RunnerClient) ListAllRunners(opt *gitlab.ListRunnersOptions) ([]*gitlab.Runner, error)
func (*RunnerClient) ListProjectRunners ¶
func (c *RunnerClient) ListProjectRunners(pid string, opt *gitlab.ListProjectRunnersOptions) ([]*gitlab.Runner, error)
func (*RunnerClient) RemoveRunner ¶
func (c *RunnerClient) RemoveRunner(iid int) error
type User ¶
type User interface { Users(opt *gitlab.ListUsersOptions) ([]*gitlab.User, error) ProjectUsers(repositoryName string, opt *gitlab.ListProjectUserOptions) ([]*gitlab.ProjectUser, error) }
type UserClient ¶
func NewUserClient ¶
func NewUserClient(client *gitlab.Client) *UserClient
func (*UserClient) ProjectUsers ¶
func (c *UserClient) ProjectUsers(repositoryName string, opt *gitlab.ListProjectUserOptions) ([]*gitlab.ProjectUser, error)
func (*UserClient) Users ¶
func (c *UserClient) Users(opt *gitlab.ListUsersOptions) ([]*gitlab.User, error)
Click to show internal directories.
Click to hide internal directories.