Documentation ¶
Index ¶
- type ImageStorage
- func (i *ImageStorage) AddImage(m *models.Image) (err error)
- func (i *ImageStorage) DeleteImageById(id int) error
- func (i *ImageStorage) GetDownloadingImages() ([]models.Image, error)
- func (i *ImageStorage) GetImageByChecksumAndUserID(userID, checksum string) (models.Image, error)
- func (i *ImageStorage) GetImageByExternalID(externalID string) (models.Image, error)
- func (i *ImageStorage) GetImageByID(id int) (models.Image, error)
- func (i *ImageStorage) GetImageForClean(limit int) ([]models.Image, error)
- func (i *ImageStorage) GetImageForDownload(limit int) ([]models.Image, error)
- func (i *ImageStorage) GetImageForPush(limit int) ([]models.Image, error)
- func (i *ImageStorage) GetImageForVerify(limit int) ([]models.Image, error)
- func (i *ImageStorage) GetImagesByStatus(status models.ImageStatus, limit int) ([]models.Image, error)
- func (i *ImageStorage) GetImagesByUserID(userid, offset, limit int) ([]models.Image, error)
- func (i *ImageStorage) GetPushingImages() ([]models.Image, error)
- func (i *ImageStorage) SoftDeleteImage(m *models.Image) (err error)
- func (i *ImageStorage) UpdateImage(m *models.Image) (err error)
- func (i *ImageStorage) UpdateImageExternalPath(m *models.Image) (err error)
- func (i *ImageStorage) UpdateImageStatus(m *models.Image) (err error)
- func (i *ImageStorage) UpdateImageStatusAndDetail(m *models.Image) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImageStorage ¶
type ImageStorage struct {
// contains filtered or unexported fields
}
func NewImageStorage ¶
func NewImageStorage(db *gorm.DB, ctx context.Context) *ImageStorage
func (*ImageStorage) DeleteImageById ¶
func (i *ImageStorage) DeleteImageById(id int) error
func (*ImageStorage) GetDownloadingImages ¶
func (i *ImageStorage) GetDownloadingImages() ([]models.Image, error)
func (*ImageStorage) GetImageByChecksumAndUserID ¶
func (i *ImageStorage) GetImageByChecksumAndUserID(userID, checksum string) (models.Image, error)
func (*ImageStorage) GetImageByExternalID ¶
func (i *ImageStorage) GetImageByExternalID(externalID string) (models.Image, error)
func (*ImageStorage) GetImageByID ¶
func (i *ImageStorage) GetImageByID(id int) (models.Image, error)
func (*ImageStorage) GetImageForClean ¶
func (i *ImageStorage) GetImageForClean(limit int) ([]models.Image, error)
func (*ImageStorage) GetImageForDownload ¶
func (i *ImageStorage) GetImageForDownload(limit int) ([]models.Image, error)
func (*ImageStorage) GetImageForPush ¶
func (i *ImageStorage) GetImageForPush(limit int) ([]models.Image, error)
func (*ImageStorage) GetImageForVerify ¶
func (i *ImageStorage) GetImageForVerify(limit int) ([]models.Image, error)
func (*ImageStorage) GetImagesByStatus ¶
func (i *ImageStorage) GetImagesByStatus(status models.ImageStatus, limit int) ([]models.Image, error)
func (*ImageStorage) GetImagesByUserID ¶
func (i *ImageStorage) GetImagesByUserID(userid, offset, limit int) ([]models.Image, error)
func (*ImageStorage) GetPushingImages ¶
func (i *ImageStorage) GetPushingImages() ([]models.Image, error)
func (*ImageStorage) SoftDeleteImage ¶
func (i *ImageStorage) SoftDeleteImage(m *models.Image) (err error)
func (*ImageStorage) UpdateImage ¶
func (i *ImageStorage) UpdateImage(m *models.Image) (err error)
func (*ImageStorage) UpdateImageExternalPath ¶
func (i *ImageStorage) UpdateImageExternalPath(m *models.Image) (err error)
func (*ImageStorage) UpdateImageStatus ¶
func (i *ImageStorage) UpdateImageStatus(m *models.Image) (err error)
func (*ImageStorage) UpdateImageStatusAndDetail ¶
func (i *ImageStorage) UpdateImageStatusAndDetail(m *models.Image) error
Click to show internal directories.
Click to hide internal directories.