storage

package
v0.0.0-...-6ed6c48 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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) AddImage

func (i *ImageStorage) AddImage(m *models.Image) (err error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL