Documentation ¶
Index ¶
- Constants
- type BuildMock
- type HookMock
- func (s *HookMock) Delete(user, id string) *e.Err
- func (s *HookMock) GetByImage(user, id string) (*model.HookList, *e.Err)
- func (s *HookMock) GetByService(user, id string) (*model.HookList, *e.Err)
- func (s *HookMock) GetByToken(token string) (*model.Hook, *e.Err)
- func (s *HookMock) GetByUser(id string) (*model.HookList, *e.Err)
- func (s *HookMock) Insert(hook *model.Hook) (*model.Hook, *e.Err)
- type ImageMock
- func (i *ImageMock) GetByID(user, id string) (*model.Image, *e.Err)
- func (i *ImageMock) GetByProject(user, id string) (*model.ImageList, *e.Err)
- func (i *ImageMock) GetByService(user, id string) (*model.ImageList, *e.Err)
- func (i *ImageMock) GetByUser(id string) (*model.ImageList, *e.Err)
- func (i *ImageMock) Insert(image *model.Image) (*model.Image, *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) GetByUser(id string) (*model.ProjectList, *e.Err)
- func (s *ProjectMock) Insert(project *model.Project) (*model.Project, *e.Err)
- func (s *ProjectMock) Remove(id string) *e.Err
- func (s *ProjectMock) Update(project *model.Project) (*model.Project, *e.Err)
- type ServiceMock
- func (s *ServiceMock) GetByID(user, id string) (*model.Service, *e.Err)
- func (s *ServiceMock) GetByUser(id string) (*model.ServiceList, *e.Err)
- func (s *ServiceMock) Insert(service *model.Service) (*model.Service, *e.Err)
- func (s *ServiceMock) Remove(id string) *e.Err
- func (s *ServiceMock) RemoveByProject(id 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) GetByImage ¶
Get builds by image
type HookMock ¶
Service Build type for interface in interfaces folder
func (*HookMock) GetByImage ¶
Get hooks by image
func (*HookMock) GetByService ¶
Get hooks by service
func (*HookMock) GetByToken ¶
Get hooks by image
type ImageMock ¶
Project Service type for interface in interfaces folder
func (*ImageMock) GetByProject ¶
func (*ImageMock) GetByService ¶
type Mock ¶
type Mock struct { *UserMock *ProjectMock *ServiceMock *ImageMock *BuildMock *HookMock *VolumeMock }
type ProjectMock ¶
Project Service type for interface in interfaces folder
func (*ProjectMock) GetByUser ¶
func (s *ProjectMock) GetByUser(id string) (*model.ProjectList, *e.Err)
type ServiceMock ¶
Service Service type for interface in interfaces folder
func (*ServiceMock) GetByUser ¶
func (s *ServiceMock) GetByUser(id string) (*model.ServiceList, *e.Err)
func (*ServiceMock) RemoveByProject ¶
func (s *ServiceMock) RemoveByProject(id string) *e.Err
Remove service model
type VolumeMock ¶
Volume Service type for interface in interfaces folder
func (*VolumeMock) GetByProject ¶
func (s *VolumeMock) GetByProject(id string) (*model.VolumeList, *e.Err)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.