Documentation ¶
Index ¶
- Constants
- type BuildMock
- type HookMock
- func (s *HookMock) Delete(user, id string) *e.Err
- func (s *HookMock) GetByToken(token string) (*model.Hook, *e.Err)
- func (s *HookMock) Insert(hook *model.Hook) (*model.Hook, *e.Err)
- func (s *HookMock) ListByImage(user, id string) (*model.HookList, *e.Err)
- func (s *HookMock) ListByService(user, id string) (*model.HookList, *e.Err)
- func (s *HookMock) ListByUser(id string) (*model.HookList, *e.Err)
- type ImageMock
- func (i *ImageMock) GetByID(user, id string) (*model.Image, *e.Err)
- func (i *ImageMock) Insert(image *model.Image) (*model.Image, *e.Err)
- func (i *ImageMock) ListByProject(user, id string) (*model.ImageList, *e.Err)
- func (i *ImageMock) ListByService(user, id string) (*model.ImageList, *e.Err)
- func (i *ImageMock) ListByUser(id string) (*model.ImageList, *e.Err)
- func (i *ImageMock) Update(image *model.Image) (*model.Image, *e.Err)
- type Mock
- type ProjectMock
- func (s *ProjectMock) GetByID(user, id string) (*model.Project, *e.Err)
- func (s *ProjectMock) GetByNameOrID(user, nameOrID string) (*model.Project, *e.Err)
- func (s *ProjectMock) Insert(project *model.Project) (*model.Project, *e.Err)
- func (s *ProjectMock) ListByUser(user string) (*model.ProjectList, *e.Err)
- func (s *ProjectMock) Remove(user, id string) *e.Err
- func (s *ProjectMock) Update(project *model.Project) (*model.Project, *e.Err)
- type ServiceMock
- func (s *ServiceMock) GetByID(user, project, id string) (*model.Service, *e.Err)
- func (s *ServiceMock) GetByNameOrID(user, project, nameOrID string) (*model.Service, *e.Err)
- func (s *ServiceMock) Insert(service *model.Service) (*model.Service, *e.Err)
- func (s *ServiceMock) ListByProject(user, project string) (*model.ServiceList, *e.Err)
- func (s *ServiceMock) Remove(user, project, id string) *e.Err
- func (s *ServiceMock) RemoveByProject(user, project string) *e.Err
- func (s *ServiceMock) Update(service *model.Service) (*model.Service, *e.Err)
- type UserMock
- type VolumeMock
Constants ¶
View Source
const BuildTable string = "builds"
View Source
const HookTable string = "hooks"
View Source
const ImageTable string = "images"
View Source
const ProjectTable string = "projects"
View Source
const ServiceTable string = "services"
View Source
const VolumeTable string = "volumes"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildMock ¶
Service Build type for interface in interfaces folder
func (*BuildMock) ListByImage ¶
Get builds by image
type HookMock ¶
Service Build type for interface in interfaces folder
func (*HookMock) GetByToken ¶
Get hooks by image
func (*HookMock) ListByImage ¶
Get hooks by image
func (*HookMock) ListByService ¶
Get hooks by service
type ImageMock ¶
Project Service type for interface in interfaces folder
func (*ImageMock) ListByProject ¶
func (*ImageMock) ListByService ¶
type Mock ¶
type Mock struct { *UserMock *ProjectMock *ServiceMock *ImageMock *BuildMock *HookMock *VolumeMock }
type ProjectMock ¶
Project Service type for interface in interfaces folder
func (*ProjectMock) GetByNameOrID ¶
func (*ProjectMock) ListByUser ¶
func (s *ProjectMock) ListByUser(user string) (*model.ProjectList, *e.Err)
type ServiceMock ¶
Service Service type for interface in interfaces folder
func (*ServiceMock) GetByNameOrID ¶
func (*ServiceMock) ListByProject ¶
func (s *ServiceMock) ListByProject(user, project string) (*model.ServiceList, *e.Err)
func (*ServiceMock) Remove ¶
func (s *ServiceMock) Remove(user, project, id string) *e.Err
Remove service model
func (*ServiceMock) RemoveByProject ¶
func (s *ServiceMock) RemoveByProject(user, project string) *e.Err
Remove service model
type VolumeMock ¶
Volume Service type for interface in interfaces folder
func (*VolumeMock) ListByProject ¶
func (s *VolumeMock) ListByProject(id string) (*model.VolumeList, *e.Err)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.