Documentation ¶
Index ¶
- Variables
- func InitDB() error
- type JobParticipantRepo
- func (r *JobParticipantRepo) Create(instance interface{}) error
- func (r *JobParticipantRepo) GetByJobAndSiteUUID(jobUUID, siteUUID string) (interface{}, error)
- func (r *JobParticipantRepo) GetListByJobUUID(jobUUID string) (interface{}, error)
- func (r *JobParticipantRepo) GetStatusByUUID(instance interface{}) interface{}
- func (r *JobParticipantRepo) InitTable()
- func (r *JobParticipantRepo) UpdateStatusByUUID(instance interface{}) error
- type JobRepo
- func (r *JobRepo) CheckNameConflict(name string) error
- func (r *JobRepo) Create(instance interface{}) error
- func (r *JobRepo) DeleteByProjectUUID(projectUUID string) error
- func (r *JobRepo) GetAll() (interface{}, error)
- func (r *JobRepo) GetByUUID(uuid string) (interface{}, error)
- func (r *JobRepo) GetListByProjectUUID(projectUUID string) (interface{}, error)
- func (r *JobRepo) InitTable()
- func (r *JobRepo) UpdateFATEJobInfoByUUID(instance interface{}) error
- func (r *JobRepo) UpdateFATEJobStatusByUUID(instance interface{}) error
- func (r *JobRepo) UpdateFinishTimeByUUID(instance interface{}) error
- func (r *JobRepo) UpdateStatusByUUID(instance interface{}) error
- func (r *JobRepo) UpdateStatusMessageByUUID(instance interface{}) error
- type ProjectDataRepo
- func (r *ProjectDataRepo) Create(instance interface{}) error
- func (r *ProjectDataRepo) DeleteByProjectUUID(projectUUID string) error
- func (r *ProjectDataRepo) DeleteByUUID(uuid string) error
- func (r *ProjectDataRepo) GetByProjectAndDataUUID(projectUUID string, dataUUID string) (interface{}, error)
- func (r *ProjectDataRepo) GetListByProjectAndSiteUUID(projectUUID string, siteUUID string) (interface{}, error)
- func (r *ProjectDataRepo) GetListByProjectUUID(projectUUID string) (interface{}, error)
- func (r *ProjectDataRepo) InitTable()
- func (r *ProjectDataRepo) UpdateSiteInfoBySiteUUID(instance interface{}) error
- func (r *ProjectDataRepo) UpdateStatusByUUID(instance interface{}) error
- type ProjectInvitationRepo
- func (r *ProjectInvitationRepo) Create(instance interface{}) error
- func (r *ProjectInvitationRepo) GetByProjectUUID(uuid string) (interface{}, error)
- func (r *ProjectInvitationRepo) GetByUUID(uuid string) (interface{}, error)
- func (r *ProjectInvitationRepo) InitTable()
- func (r *ProjectInvitationRepo) UpdateStatusByUUID(instance interface{}) error
- type ProjectParticipantRepo
- func (r *ProjectParticipantRepo) Create(instance interface{}) error
- func (r *ProjectParticipantRepo) GetByProjectAndSiteUUID(projectUUID, siteUUID string) (interface{}, error)
- func (r *ProjectParticipantRepo) GetByProjectUUID(uuid string) (interface{}, error)
- func (r *ProjectParticipantRepo) GetBySiteUUID(siteUUID string) (interface{}, error)
- func (r *ProjectParticipantRepo) InitTable()
- func (r *ProjectParticipantRepo) UpdateParticipantInfoBySiteUUID(instance interface{}) error
- func (r *ProjectParticipantRepo) UpdateStatusByUUID(instance interface{}) error
- type ProjectRepo
- func (r *ProjectRepo) Create(instance interface{}) error
- func (r *ProjectRepo) GetAll() (interface{}, error)
- func (r *ProjectRepo) GetByUUID(uuid string) (interface{}, error)
- func (r *ProjectRepo) InitTable()
- func (r *ProjectRepo) UpdateManagingSiteInfoBySiteUUID(instance interface{}) error
- func (r *ProjectRepo) UpdateStatusByUUID(instance interface{}) error
- type SiteRepo
- func (r *SiteRepo) DeleteByUUID(uuid string) error
- func (r *SiteRepo) ExistByUUID(uuid string) (bool, error)
- func (r *SiteRepo) GetByUUID(uuid string) (interface{}, error)
- func (r *SiteRepo) GetSiteList() (interface{}, error)
- func (r *SiteRepo) InitTable()
- func (r *SiteRepo) Save(instance interface{}) (interface{}, error)
- func (r *SiteRepo) UpdateByUUID(instance interface{}) error
Constants ¶
This section is empty.
Variables ¶
var ErrJobNameConflict = errors.New("job name conflicts")
Functions ¶
Types ¶
type JobParticipantRepo ¶
type JobParticipantRepo struct{}
JobParticipantRepo implements repo.JobParticipantRepository using gorm and PostgreSQL
func (*JobParticipantRepo) Create ¶
func (r *JobParticipantRepo) Create(instance interface{}) error
func (*JobParticipantRepo) GetByJobAndSiteUUID ¶
func (r *JobParticipantRepo) GetByJobAndSiteUUID(jobUUID, siteUUID string) (interface{}, error)
func (*JobParticipantRepo) GetListByJobUUID ¶
func (r *JobParticipantRepo) GetListByJobUUID(jobUUID string) (interface{}, error)
func (*JobParticipantRepo) GetStatusByUUID ¶
func (r *JobParticipantRepo) GetStatusByUUID(instance interface{}) interface{}
func (*JobParticipantRepo) InitTable ¶
func (r *JobParticipantRepo) InitTable()
InitTable make sure the table is created in the db
func (*JobParticipantRepo) UpdateStatusByUUID ¶
func (r *JobParticipantRepo) UpdateStatusByUUID(instance interface{}) error
type JobRepo ¶
type JobRepo struct{}
JobRepo implements repo.JobRepository using gorm and PostgreSQL
func (*JobRepo) CheckNameConflict ¶
func (*JobRepo) DeleteByProjectUUID ¶
func (*JobRepo) GetListByProjectUUID ¶
func (*JobRepo) InitTable ¶
func (r *JobRepo) InitTable()
InitTable make sure the table is created in the db
func (*JobRepo) UpdateFATEJobInfoByUUID ¶
func (*JobRepo) UpdateFATEJobStatusByUUID ¶
func (*JobRepo) UpdateFinishTimeByUUID ¶
func (*JobRepo) UpdateStatusByUUID ¶
func (*JobRepo) UpdateStatusMessageByUUID ¶
type ProjectDataRepo ¶
type ProjectDataRepo struct{}
ProjectDataRepo implements repo.ProjectDataRepository
func (*ProjectDataRepo) Create ¶
func (r *ProjectDataRepo) Create(instance interface{}) error
func (*ProjectDataRepo) DeleteByProjectUUID ¶
func (r *ProjectDataRepo) DeleteByProjectUUID(projectUUID string) error
func (*ProjectDataRepo) DeleteByUUID ¶
func (r *ProjectDataRepo) DeleteByUUID(uuid string) error
func (*ProjectDataRepo) GetByProjectAndDataUUID ¶
func (r *ProjectDataRepo) GetByProjectAndDataUUID(projectUUID string, dataUUID string) (interface{}, error)
func (*ProjectDataRepo) GetListByProjectAndSiteUUID ¶
func (r *ProjectDataRepo) GetListByProjectAndSiteUUID(projectUUID string, siteUUID string) (interface{}, error)
func (*ProjectDataRepo) GetListByProjectUUID ¶
func (r *ProjectDataRepo) GetListByProjectUUID(projectUUID string) (interface{}, error)
func (*ProjectDataRepo) InitTable ¶
func (r *ProjectDataRepo) InitTable()
InitTable make sure the table is created in the db
func (*ProjectDataRepo) UpdateSiteInfoBySiteUUID ¶
func (r *ProjectDataRepo) UpdateSiteInfoBySiteUUID(instance interface{}) error
func (*ProjectDataRepo) UpdateStatusByUUID ¶
func (r *ProjectDataRepo) UpdateStatusByUUID(instance interface{}) error
type ProjectInvitationRepo ¶
type ProjectInvitationRepo struct{}
ProjectInvitationRepo implements repo.ProjectInvitationRepository
func (*ProjectInvitationRepo) Create ¶
func (r *ProjectInvitationRepo) Create(instance interface{}) error
func (*ProjectInvitationRepo) GetByProjectUUID ¶
func (r *ProjectInvitationRepo) GetByProjectUUID(uuid string) (interface{}, error)
func (*ProjectInvitationRepo) GetByUUID ¶
func (r *ProjectInvitationRepo) GetByUUID(uuid string) (interface{}, error)
func (*ProjectInvitationRepo) InitTable ¶
func (r *ProjectInvitationRepo) InitTable()
InitTable make sure the table is created in the db
func (*ProjectInvitationRepo) UpdateStatusByUUID ¶
func (r *ProjectInvitationRepo) UpdateStatusByUUID(instance interface{}) error
type ProjectParticipantRepo ¶
type ProjectParticipantRepo struct{}
ProjectParticipantRepo implements repo.ProjectParticipantRepository
func (*ProjectParticipantRepo) Create ¶
func (r *ProjectParticipantRepo) Create(instance interface{}) error
func (*ProjectParticipantRepo) GetByProjectAndSiteUUID ¶
func (r *ProjectParticipantRepo) GetByProjectAndSiteUUID(projectUUID, siteUUID string) (interface{}, error)
func (*ProjectParticipantRepo) GetByProjectUUID ¶
func (r *ProjectParticipantRepo) GetByProjectUUID(uuid string) (interface{}, error)
func (*ProjectParticipantRepo) GetBySiteUUID ¶
func (r *ProjectParticipantRepo) GetBySiteUUID(siteUUID string) (interface{}, error)
func (*ProjectParticipantRepo) InitTable ¶
func (r *ProjectParticipantRepo) InitTable()
InitTable make sure the table is created in the db
func (*ProjectParticipantRepo) UpdateParticipantInfoBySiteUUID ¶
func (r *ProjectParticipantRepo) UpdateParticipantInfoBySiteUUID(instance interface{}) error
func (*ProjectParticipantRepo) UpdateStatusByUUID ¶
func (r *ProjectParticipantRepo) UpdateStatusByUUID(instance interface{}) error
type ProjectRepo ¶
type ProjectRepo struct{}
ProjectRepo implements repo.ProjectRepository
func (*ProjectRepo) Create ¶
func (r *ProjectRepo) Create(instance interface{}) error
func (*ProjectRepo) GetAll ¶
func (r *ProjectRepo) GetAll() (interface{}, error)
func (*ProjectRepo) GetByUUID ¶
func (r *ProjectRepo) GetByUUID(uuid string) (interface{}, error)
func (*ProjectRepo) InitTable ¶
func (r *ProjectRepo) InitTable()
InitTable make sure the table is created in the db
func (*ProjectRepo) UpdateManagingSiteInfoBySiteUUID ¶
func (r *ProjectRepo) UpdateManagingSiteInfoBySiteUUID(instance interface{}) error
func (*ProjectRepo) UpdateStatusByUUID ¶
func (r *ProjectRepo) UpdateStatusByUUID(instance interface{}) error
type SiteRepo ¶
type SiteRepo struct{}
SiteRepo is the implementation of the domain's repo interface
func (*SiteRepo) DeleteByUUID ¶
DeleteByUUID deletes records using the specified uuid
func (*SiteRepo) ExistByUUID ¶
ExistByUUID returns whether the site with the uuid exists
func (*SiteRepo) GetSiteList ¶
GetSiteList returns all the saved sites
func (*SiteRepo) InitTable ¶
func (r *SiteRepo) InitTable()
InitTable make sure the table is created in the db
func (*SiteRepo) UpdateByUUID ¶
UpdateByUUID updates the site info indexed by the uuid