gitlab

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIClientFactory added in v0.6.0

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
}

func NewGitlabClientFactory added in v0.6.0

func NewGitlabClientFactory(url, token string) (APIClientFactory, error)

type GitlabClientFactory added in v0.6.0

type GitlabClientFactory struct {
	// contains filtered or unexported fields
}

func (*GitlabClientFactory) GetIssueClient added in v0.6.0

func (f *GitlabClientFactory) GetIssueClient() Issue

func (*GitlabClientFactory) GetJobClient added in v0.6.0

func (f *GitlabClientFactory) GetJobClient() Job

func (*GitlabClientFactory) GetLintClient added in v0.6.0

func (f *GitlabClientFactory) GetLintClient() Lint

func (*GitlabClientFactory) GetMergeRequestClient added in v0.6.0

func (f *GitlabClientFactory) GetMergeRequestClient() MergeRequest

func (*GitlabClientFactory) GetMilestoneClient added in v0.6.1

func (f *GitlabClientFactory) GetMilestoneClient() Milestone

func (*GitlabClientFactory) GetNoteClient added in v0.6.0

func (f *GitlabClientFactory) GetNoteClient() Note

func (*GitlabClientFactory) GetPipelineClient added in v0.6.0

func (f *GitlabClientFactory) GetPipelineClient() Pipeline

func (*GitlabClientFactory) GetProjectClient added in v0.6.0

func (f *GitlabClientFactory) GetProjectClient() Project

func (*GitlabClientFactory) GetProjectVariableClient added in v0.6.0

func (f *GitlabClientFactory) GetProjectVariableClient() ProjectVariable

func (*GitlabClientFactory) GetRepositoryClient added in v0.6.0

func (f *GitlabClientFactory) GetRepositoryClient() Repository

func (*GitlabClientFactory) GetRunnerClient added in v0.6.0

func (f *GitlabClientFactory) GetRunnerClient() Runner

func (*GitlabClientFactory) GetUserClient added in v0.6.0

func (f *GitlabClientFactory) GetUserClient() User

func (*GitlabClientFactory) Init added in v0.6.0

func (f *GitlabClientFactory) Init(url, token string) 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

type IssueClient struct {
	Issue
	Client *gitlab.Client
}

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) GetIssue added in v0.3.0

func (c *IssueClient) GetIssue(pid int, repositoryName string) (*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 Job added in v0.4.0

type Job interface {
	GetProjectJobs(opt *gitlab.ListJobsOptions, repositoryName string) ([]gitlab.Job, error)
	GetJob(repositoryName string, jobID int) (*gitlab.Job, error)
	GetTraceFile(repositoryName string, jobID int) (io.Reader, error)
}

type JobClient added in v0.4.0

type JobClient struct {
	Job
	Client *gitlab.Client
}

func NewJobClient added in v0.4.0

func NewJobClient(client *gitlab.Client) *JobClient

func (*JobClient) GetJob added in v0.4.0

func (c *JobClient) GetJob(repositoryName string, jobID int) (*gitlab.Job, error)

func (*JobClient) GetProjectJobs added in v0.4.0

func (c *JobClient) GetProjectJobs(opt *gitlab.ListJobsOptions, repositoryName string) ([]gitlab.Job, error)

func (*JobClient) GetTraceFile added in v0.4.0

func (c *JobClient) GetTraceFile(repositoryName string, jobID int) (io.Reader, error)

type Lint added in v0.6.0

type Lint interface {
	Lint(content string) (*gitlab.LintResult, error)
}

type LintClient added in v0.6.0

type LintClient struct {
	Client *gitlab.Client
}

func NewLintClient added in v0.6.0

func NewLintClient(client *gitlab.Client) *LintClient

func (*LintClient) Lint added in v0.6.0

func (c *LintClient) Lint(content string) (*gitlab.LintResult, 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 Milestone added in v0.6.1

type Milestone interface {
	ListMilestones(project string, opt *gitlab.ListMilestonesOptions) ([]*gitlab.Milestone, error)
}

type MilestoneClient added in v0.6.1

type MilestoneClient struct {
	Client *gitlab.Client
}

func NewMilestoneClient added in v0.6.1

func NewMilestoneClient(client *gitlab.Client) *MilestoneClient

func (*MilestoneClient) ListMilestones added in v0.6.1

func (c *MilestoneClient) ListMilestones(project string, opt *gitlab.ListMilestonesOptions) ([]*gitlab.Milestone, error)

type MockAPIClientFactory added in v0.6.0

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
}

func (*MockAPIClientFactory) GetIssueClient added in v0.6.0

func (m *MockAPIClientFactory) GetIssueClient() Issue

func (*MockAPIClientFactory) GetJobClient added in v0.6.0

func (m *MockAPIClientFactory) GetJobClient() Job

func (*MockAPIClientFactory) GetLintClient added in v0.6.0

func (m *MockAPIClientFactory) GetLintClient() Lint

func (*MockAPIClientFactory) GetMergeRequestClient added in v0.6.0

func (m *MockAPIClientFactory) GetMergeRequestClient() MergeRequest

func (*MockAPIClientFactory) GetMilestoneClient added in v0.6.1

func (m *MockAPIClientFactory) GetMilestoneClient() Milestone

func (*MockAPIClientFactory) GetNoteClient added in v0.6.0

func (m *MockAPIClientFactory) GetNoteClient() Note

func (*MockAPIClientFactory) GetPipelineClient added in v0.6.0

func (m *MockAPIClientFactory) GetPipelineClient() Pipeline

func (*MockAPIClientFactory) GetProjectClient added in v0.6.0

func (m *MockAPIClientFactory) GetProjectClient() Project

func (*MockAPIClientFactory) GetProjectVariableClient added in v0.6.0

func (m *MockAPIClientFactory) GetProjectVariableClient() ProjectVariable

func (*MockAPIClientFactory) GetRepositoryClient added in v0.6.0

func (m *MockAPIClientFactory) GetRepositoryClient() Repository

func (*MockAPIClientFactory) GetRunnerClient added in v0.6.0

func (m *MockAPIClientFactory) GetRunnerClient() Runner

func (*MockAPIClientFactory) GetUserClient added in v0.6.0

func (m *MockAPIClientFactory) GetUserClient() User

func (*MockAPIClientFactory) Init added in v0.6.0

func (m *MockAPIClientFactory) Init(url, token string) 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)
	// contains filtered or unexported fields
}

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) GetIssue added in v0.3.0

func (m *MockLabIssueClient) GetIssue(pid int, repositoryName string) (*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 MockLintClient added in v0.6.0

type MockLintClient struct {
	MockLint func(content string) (*gitlab.LintResult, error)
}

func (*MockLintClient) Lint added in v0.6.0

func (m *MockLintClient) Lint(content string) (*gitlab.LintResult, error)

type MockMilestoneClient added in v0.6.1

type MockMilestoneClient struct {
	MockListMilestones func(project string, opt *gitlab.ListMilestonesOptions) ([]*gitlab.Milestone, error)
}

func (*MockMilestoneClient) ListMilestones added in v0.6.1

func (m *MockMilestoneClient) ListMilestones(project string, opt *gitlab.ListMilestonesOptions) ([]*gitlab.Milestone, error)

type MockNoteClient added in v0.5.4

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 added in v0.5.4

func (m *MockNoteClient) GetIssueNotes(repositoryName string, iid int, opt *gitlab.ListIssueNotesOptions) ([]*gitlab.Note, error)

func (*MockNoteClient) GetMergeRequestNotes added in v0.6.0

func (m *MockNoteClient) GetMergeRequestNotes(repositoryName string, iid int, opt *gitlab.ListMergeRequestNotesOptions) ([]*gitlab.Note, error)

type MockPipelineClient added in v0.6.0

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 added in v0.6.0

func (m *MockPipelineClient) ProjectPipelineJobs(repositoryName string, opt *gitlab.ListJobsOptions, pid int) ([]*gitlab.Job, error)

func (*MockPipelineClient) ProjectPipelines added in v0.6.0

func (m *MockPipelineClient) ProjectPipelines(repositoryName string, opt *gitlab.ListProjectPipelinesOptions) (gitlab.PipelineList, error)

type MockProjectClient added in v0.6.0

type MockProjectClient struct {
	MockProjects func(opt *gitlab.ListProjectsOptions) ([]*gitlab.Project, error)
}

func (*MockProjectClient) Projects added in v0.6.0

type MockProjectVariableClient added in v0.5.0

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 added in v0.5.0

func (c *MockProjectVariableClient) CreateVariable(repositoryName string, opt *gitlab.CreateVariableOptions) (*gitlab.ProjectVariable, error)

func (*MockProjectVariableClient) GetVariables added in v0.5.0

func (c *MockProjectVariableClient) GetVariables(repositoryName string) ([]*gitlab.ProjectVariable, error)

func (*MockProjectVariableClient) RemoveVariable added in v0.5.0

func (c *MockProjectVariableClient) RemoveVariable(repositoryName string, key string) error

func (*MockProjectVariableClient) UpdateVariable added in v0.5.0

func (c *MockProjectVariableClient) UpdateVariable(repositoryName string, key string, opt *gitlab.UpdateVariableOptions) (*gitlab.ProjectVariable, error)

type MockRepositoryClient added in v0.5.4

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 added in v0.5.4

func (m *MockRepositoryClient) GetFile(repositoryName string, filename string, opt *gitlab.GetRawFileOptions) (string, error)

func (*MockRepositoryClient) GetTree added in v0.5.4

func (m *MockRepositoryClient) GetTree(repositoryName string, opt *gitlab.ListTreeOptions) ([]*gitlab.TreeNode, error)

type MockUserClient added in v0.6.0

type MockUserClient struct {
	MockUsers        func(opt *gitlab.ListUsersOptions) ([]*gitlab.User, error)
	MockProjectUsers func(repositoryName string, opt *gitlab.ListProjectUserOptions) ([]*gitlab.ProjectUser, error)
}

func (*MockUserClient) ProjectUsers added in v0.6.0

func (m *MockUserClient) ProjectUsers(repositoryName string, opt *gitlab.ListProjectUserOptions) ([]*gitlab.ProjectUser, error)

func (*MockUserClient) Users added in v0.6.0

func (m *MockUserClient) Users(opt *gitlab.ListUsersOptions) ([]*gitlab.User, error)

type Note added in v0.5.4

type Note interface {
	GetIssueNotes(repositoryName string, iid int, opt *gitlab.ListIssueNotesOptions) ([]*gitlab.Note, error)
	GetMergeRequestNotes(repositoryName string, iid int, opt *gitlab.ListMergeRequestNotesOptions) ([]*gitlab.Note, error)
}

type NoteClient added in v0.5.4

type NoteClient struct {
	Note
	Client *gitlab.Client
}

func NewNoteClient added in v0.5.4

func NewNoteClient(client *gitlab.Client) *NoteClient

func (*NoteClient) GetIssueNotes added in v0.5.4

func (c *NoteClient) GetIssueNotes(repositoryName string, iid int, opt *gitlab.ListIssueNotesOptions) ([]*gitlab.Note, error)

func (*NoteClient) GetMergeRequestNotes added in v0.6.0

func (c *NoteClient) GetMergeRequestNotes(repositoryName string, iid int, opt *gitlab.ListMergeRequestNotesOptions) ([]*gitlab.Note, error)

type Pipeline added in v0.6.0

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 added in v0.6.0

func NewPipelineClient(client *gitlab.Client) Pipeline

type PipelineClient added in v0.6.0

type PipelineClient struct {
	Client *gitlab.Client
}

func (*PipelineClient) ProjectPipelineJobs added in v0.6.0

func (c *PipelineClient) ProjectPipelineJobs(repositoryName string, opt *gitlab.ListJobsOptions, pid int) ([]*gitlab.Job, error)

func (*PipelineClient) ProjectPipelines added in v0.6.0

func (c *PipelineClient) ProjectPipelines(repositoryName string, opt *gitlab.ListProjectPipelinesOptions) (gitlab.PipelineList, error)

type Project added in v0.6.0

type Project interface {
	Projects(opt *gitlab.ListProjectsOptions) ([]*gitlab.Project, error)
}

type ProjectClient added in v0.6.0

type ProjectClient struct {
	Client *gitlab.Client
}

func NewProjectClient added in v0.6.0

func NewProjectClient(client *gitlab.Client) *ProjectClient

func (*ProjectClient) Projects added in v0.6.0

func (c *ProjectClient) Projects(opt *gitlab.ListProjectsOptions) ([]*gitlab.Project, error)

type ProjectVariable added in v0.5.0

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 added in v0.5.0

func NewProjectVariableClient(client *gitlab.Client) ProjectVariable

type ProjectVariableClient added in v0.5.0

type ProjectVariableClient struct {
	ProjectVariable
	Client *gitlab.Client
}

func (*ProjectVariableClient) CreateVariable added in v0.5.0

func (c *ProjectVariableClient) CreateVariable(repositoryName string, opt *gitlab.CreateVariableOptions) (*gitlab.ProjectVariable, error)

func (*ProjectVariableClient) GetVariables added in v0.5.0

func (c *ProjectVariableClient) GetVariables(repositoryName string) ([]*gitlab.ProjectVariable, error)

func (*ProjectVariableClient) RemoveVariable added in v0.5.0

func (c *ProjectVariableClient) RemoveVariable(repositoryName string, key string) error

func (*ProjectVariableClient) UpdateVariable added in v0.5.0

func (c *ProjectVariableClient) UpdateVariable(repositoryName string, key string, opt *gitlab.UpdateVariableOptions) (*gitlab.ProjectVariable, error)

type Repository added in v0.5.2

type Repository interface {
	GetTree(repositoryName string, opt *gitlab.ListTreeOptions) ([]*gitlab.TreeNode, error)
	GetFile(repositoryName string, filename string, opt *gitlab.GetRawFileOptions) (string, error)
}

func NewRepositoryClient added in v0.5.2

func NewRepositoryClient(client *gitlab.Client) Repository

type RepositoryClient added in v0.5.2

type RepositoryClient struct {
	Repository
	Client *gitlab.Client
}

func (*RepositoryClient) GetFile added in v0.5.2

func (c *RepositoryClient) GetFile(repositoryName string, filename string, opt *gitlab.GetRawFileOptions) (string, error)

func (*RepositoryClient) GetTree added in v0.5.2

func (c *RepositoryClient) GetTree(repositoryName string, opt *gitlab.ListTreeOptions) ([]*gitlab.TreeNode, error)

type Runner added in v0.6.0

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 added in v0.6.0

func NewRunnerClient(client *gitlab.Client) Runner

type RunnerClient added in v0.6.0

type RunnerClient struct {
	Client *gitlab.Client
}

func (*RunnerClient) GetRunnerDetails added in v0.6.0

func (c *RunnerClient) GetRunnerDetails(id int) (*gitlab.RunnerDetails, error)

func (*RunnerClient) ListAllRunners added in v0.6.0

func (c *RunnerClient) ListAllRunners(opt *gitlab.ListRunnersOptions) ([]*gitlab.Runner, error)

func (*RunnerClient) ListProjectRunners added in v0.6.0

func (c *RunnerClient) ListProjectRunners(pid string, opt *gitlab.ListProjectRunnersOptions) ([]*gitlab.Runner, error)

func (*RunnerClient) RemoveRunner added in v0.6.0

func (c *RunnerClient) RemoveRunner(iid int) error

type User added in v0.6.0

type User interface {
	Users(opt *gitlab.ListUsersOptions) ([]*gitlab.User, error)
	ProjectUsers(repositoryName string, opt *gitlab.ListProjectUserOptions) ([]*gitlab.ProjectUser, error)
}

type UserClient added in v0.6.0

type UserClient struct {
	Client *gitlab.Client
}

func NewUserClient added in v0.6.0

func NewUserClient(client *gitlab.Client) *UserClient

func (*UserClient) ProjectUsers added in v0.6.0

func (c *UserClient) ProjectUsers(repositoryName string, opt *gitlab.ListProjectUserOptions) ([]*gitlab.ProjectUser, error)

func (*UserClient) Users added in v0.6.0

func (c *UserClient) Users(opt *gitlab.ListUsersOptions) ([]*gitlab.User, error)

Jump to

Keyboard shortcuts

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