Documentation ¶
Index ¶
- type MockClient
- func (c *MockClient) AddDeployKey(pid interface{}, opt *gitlab.AddDeployKeyOptions, ...) (*gitlab.ProjectDeployKey, *gitlab.Response, error)
- func (c *MockClient) AddProjectHook(pid interface{}, opt *gitlab.AddProjectHookOptions, ...) (*gitlab.ProjectHook, *gitlab.Response, error)
- func (c *MockClient) AddProjectMember(pid interface{}, opt *gitlab.AddProjectMemberOptions, ...) (*gitlab.ProjectMember, *gitlab.Response, error)
- func (c *MockClient) CreatePipelineSchedule(pid interface{}, opt *gitlab.CreatePipelineScheduleOptions, ...) (*gitlab.PipelineSchedule, *gitlab.Response, error)
- func (c *MockClient) CreatePipelineScheduleVariable(pid interface{}, schedule int, ...) (*gitlab.PipelineVariable, *gitlab.Response, error)
- func (c *MockClient) CreateProject(opt *gitlab.CreateProjectOptions, options ...gitlab.RequestOptionFunc) (*gitlab.Project, *gitlab.Response, error)
- func (c *MockClient) CreateProjectAccessToken(pid interface{}, opt *gitlab.CreateProjectAccessTokenOptions, ...) (*gitlab.ProjectAccessToken, *gitlab.Response, error)
- func (c *MockClient) CreateProjectDeployToken(pid interface{}, opt *gitlab.CreateProjectDeployTokenOptions, ...) (*gitlab.DeployToken, *gitlab.Response, error)
- func (c *MockClient) CreateVariable(pid interface{}, opt *gitlab.CreateProjectVariableOptions, ...) (*gitlab.ProjectVariable, *gitlab.Response, error)
- func (c *MockClient) DeleteDeployKey(pid interface{}, deployKey int, options ...gitlab.RequestOptionFunc) (*gitlab.Response, error)
- func (c *MockClient) DeletePipelineSchedule(pid interface{}, schedule int, options ...gitlab.RequestOptionFunc) (*gitlab.Response, error)
- func (c *MockClient) DeletePipelineScheduleVariable(pid interface{}, schedule int, key string, options ...gitlab.RequestOptionFunc) (*gitlab.PipelineVariable, *gitlab.Response, error)
- func (c *MockClient) DeleteProject(pid interface{}, options ...gitlab.RequestOptionFunc) (*gitlab.Response, error)
- func (c *MockClient) DeleteProjectDeployToken(pid interface{}, deployToken int, options ...gitlab.RequestOptionFunc) (*gitlab.Response, error)
- func (c *MockClient) DeleteProjectHook(pid interface{}, hook int, options ...gitlab.RequestOptionFunc) (*gitlab.Response, error)
- func (c *MockClient) DeleteProjectMember(pid interface{}, user int, options ...gitlab.RequestOptionFunc) (*gitlab.Response, error)
- func (c *MockClient) EditPipelineSchedule(pid interface{}, schedule int, opt *gitlab.EditPipelineScheduleOptions, ...) (*gitlab.PipelineSchedule, *gitlab.Response, error)
- func (c *MockClient) EditPipelineScheduleVariable(pid interface{}, schedule int, key string, ...) (*gitlab.PipelineVariable, *gitlab.Response, error)
- func (c *MockClient) EditProject(pid interface{}, opt *gitlab.EditProjectOptions, ...) (*gitlab.Project, *gitlab.Response, error)
- func (c *MockClient) EditProjectHook(pid interface{}, hook int, opt *gitlab.EditProjectHookOptions, ...) (*gitlab.ProjectHook, *gitlab.Response, error)
- func (c *MockClient) EditProjectMember(pid interface{}, user int, opt *gitlab.EditProjectMemberOptions, ...) (*gitlab.ProjectMember, *gitlab.Response, error)
- func (c *MockClient) GetDeployKey(pid interface{}, deployKey int, options ...gitlab.RequestOptionFunc) (*gitlab.ProjectDeployKey, *gitlab.Response, error)
- func (c *MockClient) GetPipelineSchedule(pid interface{}, schedule int, options ...gitlab.RequestOptionFunc) (*gitlab.PipelineSchedule, *gitlab.Response, error)
- func (c *MockClient) GetProject(pid interface{}, opt *gitlab.GetProjectOptions, ...) (*gitlab.Project, *gitlab.Response, error)
- func (c *MockClient) GetProjectAccessToken(pid interface{}, id int, options ...gitlab.RequestOptionFunc) (*gitlab.ProjectAccessToken, *gitlab.Response, error)
- func (c *MockClient) GetProjectDeployToken(pid interface{}, deployToken int, options ...gitlab.RequestOptionFunc) (*gitlab.DeployToken, *gitlab.Response, error)
- func (c *MockClient) GetProjectHook(pid interface{}, hook int, options ...gitlab.RequestOptionFunc) (*gitlab.ProjectHook, *gitlab.Response, error)
- func (c *MockClient) GetProjectMember(pid interface{}, user int, options ...gitlab.RequestOptionFunc) (*gitlab.ProjectMember, *gitlab.Response, error)
- func (c *MockClient) GetVariable(pid interface{}, key string, opt *gitlab.GetProjectVariableOptions, ...) (*gitlab.ProjectVariable, *gitlab.Response, error)
- func (c *MockClient) ListUsers(opt *gitlab.ListUsersOptions, options ...gitlab.RequestOptionFunc) ([]*gitlab.User, *gitlab.Response, error)
- func (c *MockClient) ListVariables(pid interface{}, opt *gitlab.ListProjectVariablesOptions, ...) ([]*gitlab.ProjectVariable, *gitlab.Response, error)
- func (c *MockClient) RemoveVariable(pid interface{}, key string, opt *gitlab.RemoveProjectVariableOptions, ...) (*gitlab.Response, error)
- func (c *MockClient) RevokeProjectAccessToken(pid interface{}, id int, options ...gitlab.RequestOptionFunc) (*gitlab.Response, error)
- func (c *MockClient) UpdateDeployKey(pid interface{}, deployKey int, opt *gitlab.UpdateDeployKeyOptions, ...) (*gitlab.ProjectDeployKey, *gitlab.Response, error)
- func (c *MockClient) UpdateVariable(pid interface{}, key string, opt *gitlab.UpdateProjectVariableOptions, ...) (*gitlab.ProjectVariable, *gitlab.Response, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClient ¶
type MockClient struct { projects.Client MockGetProject func(pid interface{}, opt *gitlab.GetProjectOptions, options ...gitlab.RequestOptionFunc) (*gitlab.Project, *gitlab.Response, error) MockCreateProject func(opt *gitlab.CreateProjectOptions, options ...gitlab.RequestOptionFunc) (*gitlab.Project, *gitlab.Response, error) MockEditProject func(pid interface{}, opt *gitlab.EditProjectOptions, options ...gitlab.RequestOptionFunc) (*gitlab.Project, *gitlab.Response, error) MockDeleteProject func(pid interface{}, options ...gitlab.RequestOptionFunc) (*gitlab.Response, error) MockGetHook func(pid interface{}, hook int, options ...gitlab.RequestOptionFunc) (*gitlab.ProjectHook, *gitlab.Response, error) MockAddHook func(pid interface{}, opt *gitlab.AddProjectHookOptions, options ...gitlab.RequestOptionFunc) (*gitlab.ProjectHook, *gitlab.Response, error) MockEditHook func(pid interface{}, hook int, opt *gitlab.EditProjectHookOptions, options ...gitlab.RequestOptionFunc) (*gitlab.ProjectHook, *gitlab.Response, error) MockDeleteHook func(pid interface{}, hook int, options ...gitlab.RequestOptionFunc) (*gitlab.Response, error) MockGetMember func(pid interface{}, user int, options ...gitlab.RequestOptionFunc) (*gitlab.ProjectMember, *gitlab.Response, error) MockAddMember func(pid interface{}, opt *gitlab.AddProjectMemberOptions, options ...gitlab.RequestOptionFunc) (*gitlab.ProjectMember, *gitlab.Response, error) MockEditMember func(pid interface{}, user int, opt *gitlab.EditProjectMemberOptions, options ...gitlab.RequestOptionFunc) (*gitlab.ProjectMember, *gitlab.Response, error) MockDeleteMember func(pid interface{}, user int, options ...gitlab.RequestOptionFunc) (*gitlab.Response, error) MockCreateDeployToken func(pid interface{}, opt *gitlab.CreateProjectDeployTokenOptions, options ...gitlab.RequestOptionFunc) (*gitlab.DeployToken, *gitlab.Response, error) MockDeleteDeployToken func(pid interface{}, deployToken int, options ...gitlab.RequestOptionFunc) (*gitlab.Response, error) MockGetProjectDeployToken func(pid interface{}, deployToken int, options ...gitlab.RequestOptionFunc) (*gitlab.DeployToken, *gitlab.Response, error) MockGetVariable func(pid interface{}, key string, opt *gitlab.GetProjectVariableOptions, options ...gitlab.RequestOptionFunc) (*gitlab.ProjectVariable, *gitlab.Response, error) MockCreateVariable func(pid interface{}, opt *gitlab.CreateProjectVariableOptions, options ...gitlab.RequestOptionFunc) (*gitlab.ProjectVariable, *gitlab.Response, error) MockUpdateVariable func(pid interface{}, key string, opt *gitlab.UpdateProjectVariableOptions, options ...gitlab.RequestOptionFunc) (*gitlab.ProjectVariable, *gitlab.Response, error) MockListVariables func(pid interface{}, opt *gitlab.ListProjectVariablesOptions, options ...gitlab.RequestOptionFunc) ([]*gitlab.ProjectVariable, *gitlab.Response, error) MockRemoveVariable func(pid interface{}, key string, opt *gitlab.RemoveProjectVariableOptions, options ...gitlab.RequestOptionFunc) (*gitlab.Response, error) MockGetProjectAccessToken func(pid interface{}, id int, options ...gitlab.RequestOptionFunc) (*gitlab.ProjectAccessToken, *gitlab.Response, error) MockCreateProjectAccessToken func(pid interface{}, opt *gitlab.CreateProjectAccessTokenOptions, options ...gitlab.RequestOptionFunc) (*gitlab.ProjectAccessToken, *gitlab.Response, error) MockRevokeProjectAccessToken func(pid interface{}, id int, options ...gitlab.RequestOptionFunc) (*gitlab.Response, error) MockAddDeployKey func(pid interface{}, opt *gitlab.AddDeployKeyOptions, options ...gitlab.RequestOptionFunc) (*gitlab.ProjectDeployKey, *gitlab.Response, error) MockDeleteDeployKey func(pid interface{}, deployKey int, options ...gitlab.RequestOptionFunc) (*gitlab.Response, error) MockUpdateDeployKey func(pid interface{}, deployKey int, opt *gitlab.UpdateDeployKeyOptions, options ...gitlab.RequestOptionFunc) (*gitlab.ProjectDeployKey, *gitlab.Response, error) MockGetDeployKey func(pid interface{}, deployKey int, options ...*gitlab.RequestOptionFunc) (*gitlab.ProjectDeployKey, *gitlab.Response, error) MockGetPipelineSchedule func(pid interface{}, schedule int, options ...gitlab.RequestOptionFunc) (*gitlab.PipelineSchedule, *gitlab.Response, error) MockCreatePipelineSchedule func(pid interface{}, opt *gitlab.CreatePipelineScheduleOptions, options ...gitlab.RequestOptionFunc) (*gitlab.PipelineSchedule, *gitlab.Response, error) MockEditPipelineSchedule func(pid interface{}, schedule int, opt *gitlab.EditPipelineScheduleOptions, options ...gitlab.RequestOptionFunc) (*gitlab.PipelineSchedule, *gitlab.Response, error) MockDeletePipelineSchedule func(pid interface{}, schedule int, options ...gitlab.RequestOptionFunc) (*gitlab.Response, error) MockCreatePipelineScheduleVariable func(pid interface{}, schedule int, opt *gitlab.CreatePipelineScheduleVariableOptions, options ...gitlab.RequestOptionFunc) (*gitlab.PipelineVariable, *gitlab.Response, error) MockEditPipelineScheduleVariable func(pid interface{}, schedule int, key string, opt *gitlab.EditPipelineScheduleVariableOptions, options ...gitlab.RequestOptionFunc) (*gitlab.PipelineVariable, *gitlab.Response, error) MockDeletePipelineScheduleVariable func(pid interface{}, schedule int, key string, options ...gitlab.RequestOptionFunc) (*gitlab.PipelineVariable, *gitlab.Response, error) MockListUsers func(opt *gitlab.ListUsersOptions, options ...gitlab.RequestOptionFunc) ([]*gitlab.User, *gitlab.Response, error) }
MockClient is a fake implementation of projects.Client.
func (*MockClient) AddDeployKey ¶ added in v0.4.0
func (c *MockClient) AddDeployKey(pid interface{}, opt *gitlab.AddDeployKeyOptions, options ...gitlab.RequestOptionFunc) (*gitlab.ProjectDeployKey, *gitlab.Response, error)
AddDeployKey calls the underlying MockAddDeployKey
func (*MockClient) AddProjectHook ¶
func (c *MockClient) AddProjectHook(pid interface{}, opt *gitlab.AddProjectHookOptions, options ...gitlab.RequestOptionFunc) (*gitlab.ProjectHook, *gitlab.Response, error)
AddProjectHook calls the underlying MockAddHook method. AddProjectHook calls the underlying MockAddHook method.
func (*MockClient) AddProjectMember ¶
func (c *MockClient) AddProjectMember(pid interface{}, opt *gitlab.AddProjectMemberOptions, options ...gitlab.RequestOptionFunc) (*gitlab.ProjectMember, *gitlab.Response, error)
AddProjectMember calls the underlying MockAddMember method. AddProjectMember calls the underlying MockAddMember method.
func (*MockClient) CreatePipelineSchedule ¶ added in v0.4.0
func (c *MockClient) CreatePipelineSchedule(pid interface{}, opt *gitlab.CreatePipelineScheduleOptions, options ...gitlab.RequestOptionFunc) (*gitlab.PipelineSchedule, *gitlab.Response, error)
CreatePipelineSchedule calls the underlying MockCreatePipelineSchedule method.
func (*MockClient) CreatePipelineScheduleVariable ¶ added in v0.4.0
func (c *MockClient) CreatePipelineScheduleVariable(pid interface{}, schedule int, opt *gitlab.CreatePipelineScheduleVariableOptions, options ...gitlab.RequestOptionFunc) (*gitlab.PipelineVariable, *gitlab.Response, error)
CreatePipelineScheduleVariable calls the underlying MockCreatePipelineScheduleVariable method.
func (*MockClient) CreateProject ¶
func (c *MockClient) CreateProject(opt *gitlab.CreateProjectOptions, options ...gitlab.RequestOptionFunc) (*gitlab.Project, *gitlab.Response, error)
CreateProject calls the underlying MockCreateProject method
func (*MockClient) CreateProjectAccessToken ¶ added in v0.4.0
func (c *MockClient) CreateProjectAccessToken(pid interface{}, opt *gitlab.CreateProjectAccessTokenOptions, options ...gitlab.RequestOptionFunc) (*gitlab.ProjectAccessToken, *gitlab.Response, error)
CreateProjectAccessToken calls the underlying MockCreateProjectAccessToken method.
func (*MockClient) CreateProjectDeployToken ¶
func (c *MockClient) CreateProjectDeployToken(pid interface{}, opt *gitlab.CreateProjectDeployTokenOptions, options ...gitlab.RequestOptionFunc) (*gitlab.DeployToken, *gitlab.Response, error)
CreateProjectDeployToken calls the underlying MockCreateProjectDeployToken method.
func (*MockClient) CreateVariable ¶
func (c *MockClient) CreateVariable(pid interface{}, opt *gitlab.CreateProjectVariableOptions, options ...gitlab.RequestOptionFunc) (*gitlab.ProjectVariable, *gitlab.Response, error)
CreateVariable calls the underlying MockCreateProjectVariable
func (*MockClient) DeleteDeployKey ¶ added in v0.4.0
func (c *MockClient) DeleteDeployKey(pid interface{}, deployKey int, options ...gitlab.RequestOptionFunc) (*gitlab.Response, error)
DeleteDeployKey calls the underlying MockDeleteDeployKey
func (*MockClient) DeletePipelineSchedule ¶ added in v0.4.0
func (c *MockClient) DeletePipelineSchedule(pid interface{}, schedule int, options ...gitlab.RequestOptionFunc) (*gitlab.Response, error)
DeletePipelineSchedule calls the underlying MockDeletePipelineSchedule method.
func (*MockClient) DeletePipelineScheduleVariable ¶ added in v0.4.0
func (c *MockClient) DeletePipelineScheduleVariable(pid interface{}, schedule int, key string, options ...gitlab.RequestOptionFunc) (*gitlab.PipelineVariable, *gitlab.Response, error)
DeletePipelineScheduleVariable calls the underlying MockDeletePipelineScheduleVariable method.
func (*MockClient) DeleteProject ¶
func (c *MockClient) DeleteProject(pid interface{}, options ...gitlab.RequestOptionFunc) (*gitlab.Response, error)
DeleteProject calls the underlying MockDeleteProject method
func (*MockClient) DeleteProjectDeployToken ¶
func (c *MockClient) DeleteProjectDeployToken(pid interface{}, deployToken int, options ...gitlab.RequestOptionFunc) (*gitlab.Response, error)
DeleteProjectDeployToken calls the underlying MockDeleteProjectDeployToken method.
func (*MockClient) DeleteProjectHook ¶
func (c *MockClient) DeleteProjectHook(pid interface{}, hook int, options ...gitlab.RequestOptionFunc) (*gitlab.Response, error)
DeleteProjectHook calls the underlying MockDeleteProjectHook method.
func (*MockClient) DeleteProjectMember ¶
func (c *MockClient) DeleteProjectMember(pid interface{}, user int, options ...gitlab.RequestOptionFunc) (*gitlab.Response, error)
DeleteProjectMember calls the underlying MockDeleteMember method. DeleteProjectMember calls the underlying MockDeleteMember method.
func (*MockClient) EditPipelineSchedule ¶ added in v0.4.0
func (c *MockClient) EditPipelineSchedule(pid interface{}, schedule int, opt *gitlab.EditPipelineScheduleOptions, options ...gitlab.RequestOptionFunc) (*gitlab.PipelineSchedule, *gitlab.Response, error)
EditPipelineSchedule calls the underlying MockEditPipelineSchedule method.
func (*MockClient) EditPipelineScheduleVariable ¶ added in v0.4.0
func (c *MockClient) EditPipelineScheduleVariable(pid interface{}, schedule int, key string, opt *gitlab.EditPipelineScheduleVariableOptions, options ...gitlab.RequestOptionFunc) (*gitlab.PipelineVariable, *gitlab.Response, error)
EditPipelineScheduleVariable calls the underlying MockEditPipelineScheduleVariable method.
func (*MockClient) EditProject ¶
func (c *MockClient) EditProject(pid interface{}, opt *gitlab.EditProjectOptions, options ...gitlab.RequestOptionFunc) (*gitlab.Project, *gitlab.Response, error)
EditProject calls the underlying MockEditProject method
func (*MockClient) EditProjectHook ¶
func (c *MockClient) EditProjectHook(pid interface{}, hook int, opt *gitlab.EditProjectHookOptions, options ...gitlab.RequestOptionFunc) (*gitlab.ProjectHook, *gitlab.Response, error)
EditProjectHook calls the underlying MockEditProjectHook method.
func (*MockClient) EditProjectMember ¶
func (c *MockClient) EditProjectMember(pid interface{}, user int, opt *gitlab.EditProjectMemberOptions, options ...gitlab.RequestOptionFunc) (*gitlab.ProjectMember, *gitlab.Response, error)
EditProjectMember calls the underlying MockEditMember method. EditProjectMember calls the underlying MockEditMember method.
func (*MockClient) GetDeployKey ¶ added in v0.4.0
func (c *MockClient) GetDeployKey(pid interface{}, deployKey int, options ...gitlab.RequestOptionFunc) (*gitlab.ProjectDeployKey, *gitlab.Response, error)
GetDeployKey calls the underlying MockGetDeployKey
func (*MockClient) GetPipelineSchedule ¶ added in v0.4.0
func (c *MockClient) GetPipelineSchedule(pid interface{}, schedule int, options ...gitlab.RequestOptionFunc) (*gitlab.PipelineSchedule, *gitlab.Response, error)
GetPipelineSchedule calls the underlying MockGetPipelineSchedule method.
func (*MockClient) GetProject ¶
func (c *MockClient) GetProject(pid interface{}, opt *gitlab.GetProjectOptions, options ...gitlab.RequestOptionFunc) (*gitlab.Project, *gitlab.Response, error)
GetProject calls the underlying MockGetProject method.
func (*MockClient) GetProjectAccessToken ¶ added in v0.4.0
func (c *MockClient) GetProjectAccessToken(pid interface{}, id int, options ...gitlab.RequestOptionFunc) (*gitlab.ProjectAccessToken, *gitlab.Response, error)
GetProjectAccessToken calls the underlying MockGetProjectAccessToken method.
func (*MockClient) GetProjectDeployToken ¶ added in v0.4.0
func (c *MockClient) GetProjectDeployToken(pid interface{}, deployToken int, options ...gitlab.RequestOptionFunc) (*gitlab.DeployToken, *gitlab.Response, error)
GetProjectDeployToken calls the underlying MockGetProjectDeployToken method.
func (*MockClient) GetProjectHook ¶
func (c *MockClient) GetProjectHook(pid interface{}, hook int, options ...gitlab.RequestOptionFunc) (*gitlab.ProjectHook, *gitlab.Response, error)
GetProjectHook calls the underlying MockGetProjectHook method.
func (*MockClient) GetProjectMember ¶
func (c *MockClient) GetProjectMember(pid interface{}, user int, options ...gitlab.RequestOptionFunc) (*gitlab.ProjectMember, *gitlab.Response, error)
GetProjectMember calls the underlying MockGetMember method. GetProjectMember calls the underlying MockGetMember method.
func (*MockClient) GetVariable ¶
func (c *MockClient) GetVariable(pid interface{}, key string, opt *gitlab.GetProjectVariableOptions, options ...gitlab.RequestOptionFunc) (*gitlab.ProjectVariable, *gitlab.Response, error)
GetVariable calls the underlying MockGetProjectVariable
func (*MockClient) ListUsers ¶ added in v0.5.0
func (c *MockClient) ListUsers(opt *gitlab.ListUsersOptions, options ...gitlab.RequestOptionFunc) ([]*gitlab.User, *gitlab.Response, error)
ListUsers calls the underlying MockListUsers method.
func (*MockClient) ListVariables ¶ added in v0.4.0
func (c *MockClient) ListVariables(pid interface{}, opt *gitlab.ListProjectVariablesOptions, options ...gitlab.RequestOptionFunc) ([]*gitlab.ProjectVariable, *gitlab.Response, error)
ListVariables calls the underlying MockListVariables
func (*MockClient) RemoveVariable ¶
func (c *MockClient) RemoveVariable(pid interface{}, key string, opt *gitlab.RemoveProjectVariableOptions, options ...gitlab.RequestOptionFunc) (*gitlab.Response, error)
RemoveVariable calls the underlying MockRemoveProjectVariable
func (*MockClient) RevokeProjectAccessToken ¶ added in v0.4.0
func (c *MockClient) RevokeProjectAccessToken(pid interface{}, id int, options ...gitlab.RequestOptionFunc) (*gitlab.Response, error)
RevokeProjectAccessToken calls the underlying MockRevokeProjectAccessToken method.
func (*MockClient) UpdateDeployKey ¶ added in v0.4.0
func (c *MockClient) UpdateDeployKey(pid interface{}, deployKey int, opt *gitlab.UpdateDeployKeyOptions, options ...gitlab.RequestOptionFunc) (*gitlab.ProjectDeployKey, *gitlab.Response, error)
UpdateDeployKey cals the underlying MockUpdateDeployKey
func (*MockClient) UpdateVariable ¶
func (c *MockClient) UpdateVariable(pid interface{}, key string, opt *gitlab.UpdateProjectVariableOptions, options ...gitlab.RequestOptionFunc) (*gitlab.ProjectVariable, *gitlab.Response, error)
UpdateVariable calls the underlying MockUpdateProjectVariable