Documentation ¶
Index ¶
- Constants
- type BuildStorage
- type HookStorage
- func (s *HookStorage) Delete(user, id string) *e.Err
- func (s *HookStorage) GetByImage(user, id string) (*model.HookList, *e.Err)
- func (s *HookStorage) GetByService(user, id string) (*model.HookList, *e.Err)
- func (s *HookStorage) GetByToken(token string) (*model.Hook, *e.Err)
- func (s *HookStorage) GetByUser(id string) (*model.HookList, *e.Err)
- func (s *HookStorage) Insert(hook *model.Hook) (*model.Hook, *e.Err)
- type ImageStorage
- func (i *ImageStorage) GetByID(user, id string) (*model.Image, *e.Err)
- func (i *ImageStorage) GetByProject(user, id string) (*model.ImageList, *e.Err)
- func (i *ImageStorage) GetByService(user, id string) (*model.ImageList, *e.Err)
- func (i *ImageStorage) GetByUser(id string) (*model.ImageList, *e.Err)
- func (i *ImageStorage) Insert(image *model.Image) (*model.Image, *e.Err)
- func (i *ImageStorage) Update(image *model.Image) (*model.Image, *e.Err)
- type ProjectStorage
- func (s *ProjectStorage) ExistByName(userID, name string) (bool, error)
- func (s *ProjectStorage) GetByID(user, id string) (*model.Project, *e.Err)
- func (s *ProjectStorage) GetByName(user, name string) (*model.Project, *e.Err)
- func (s *ProjectStorage) GetByUser(id string) (*model.ProjectList, *e.Err)
- func (s *ProjectStorage) Insert(project *model.Project) (*model.Project, *e.Err)
- func (s *ProjectStorage) Remove(id string) *e.Err
- func (s *ProjectStorage) Update(project *model.Project) (*model.Project, *e.Err)
- type ServiceStorage
- func (s *ServiceStorage) CheckExistsByName(userID, projectID, name string) (bool, error)
- func (s *ServiceStorage) GetByID(user, id string) (*model.Service, *e.Err)
- func (s *ServiceStorage) GetByName(user, name string) (*model.Service, *e.Err)
- func (s *ServiceStorage) GetByUser(id string) (*model.ServiceList, *e.Err)
- func (s *ServiceStorage) Insert(service *model.Service) (*model.Service, *e.Err)
- func (s *ServiceStorage) Remove(id string) *e.Err
- func (s *ServiceStorage) RemoveByProject(id string) *e.Err
- func (s *ServiceStorage) Update(service *model.Service) (*model.Service, *e.Err)
- type Storage
- type UserStorage
- type VolumeStorage
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 UserTable = "users"
View Source
const VolumeTable string = "volumes"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildStorage ¶
Service Build type for interface in interfaces folder
func (*BuildStorage) GetByImage ¶
Get builds by image
type HookStorage ¶
Service Build type for interface in interfaces folder
func (*HookStorage) Delete ¶
func (s *HookStorage) Delete(user, id string) *e.Err
Insert new hook into storage
func (*HookStorage) GetByImage ¶
Get hooks by image
func (*HookStorage) GetByService ¶
Get hooks by service
func (*HookStorage) GetByToken ¶
Get hooks by image
type ImageStorage ¶
Project Service type for interface in interfaces folder
func (*ImageStorage) GetByProject ¶
func (*ImageStorage) GetByService ¶
type ProjectStorage ¶
Project Service type for interface in interfaces folder
func (*ProjectStorage) ExistByName ¶
func (s *ProjectStorage) ExistByName(userID, name string) (bool, error)
func (*ProjectStorage) GetByUser ¶
func (s *ProjectStorage) GetByUser(id string) (*model.ProjectList, *e.Err)
type ServiceStorage ¶
Service Service type for interface in interfaces folder
func (*ServiceStorage) CheckExistsByName ¶
func (s *ServiceStorage) CheckExistsByName(userID, projectID, name string) (bool, error)
func (*ServiceStorage) GetByUser ¶
func (s *ServiceStorage) GetByUser(id string) (*model.ServiceList, *e.Err)
func (*ServiceStorage) Remove ¶
func (s *ServiceStorage) Remove(id string) *e.Err
Remove build model
func (*ServiceStorage) RemoveByProject ¶
func (s *ServiceStorage) RemoveByProject(id string) *e.Err
Remove build model
type Storage ¶
type Storage struct { *UserStorage *ProjectStorage *ServiceStorage *ImageStorage *BuildStorage *HookStorage *VolumeStorage }
type UserStorage ¶
Service User type for interface in interfaces folder
func (*UserStorage) GetByEmail ¶
func (*UserStorage) GetByUsername ¶
type VolumeStorage ¶
Volume Service type for interface in interfaces folder
func (*VolumeStorage) GetByProject ¶
func (s *VolumeStorage) GetByProject(id string) (*model.VolumeList, *e.Err)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.