Documentation ¶
Index ¶
Constants ¶
View Source
const HashingBuffer = 1024 * 1024 * 10
View Source
const MaxTempFileSize = 100 * 1024 * 1024
View Source
const NotFoundError = "Status=404 Not Found"
View Source
const TempFolder = ".temp"
View Source
const UnReachableBlock = 100
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImageCleaner ¶
type ImageCleaner struct { ImageStore *storage.ImageStorage Image *models.Image LocalFolder string Logger *zap.Logger Notifier messages.Notifier }
func NewImageCleaner ¶
func (*ImageCleaner) Close ¶
func (r *ImageCleaner) Close()
type ImagePuller ¶
type ImagePuller struct { ImageStore *storage.ImageStorage Image *models.Image LocalFolder string Logger *zap.Logger Client http.Client BlockChannel chan SingleBlock Config config.ImagePuller Worker int ImageSize int Notifier messages.Notifier }
func NewImagePuller ¶
func NewImagePuller(config config.ImagePuller, imageStore *storage.ImageStorage, logger *zap.Logger, image *models.Image, localFolder string, worker int, notifier messages.Notifier) (*ImagePuller, error)
func (*ImagePuller) Close ¶
func (r *ImagePuller) Close()
func (*ImagePuller) ConstructImageFile ¶
func (r *ImagePuller) ConstructImageFile() error
type ImagePusher ¶
type ImagePusher struct { Image *models.Image LocalFolder string Logger *zap.Logger Config config.ImagePusher OBSClient *obs.ObsClient Worker int Notifier messages.Notifier // contains filtered or unexported fields }
func NewImagePusher ¶
func NewImagePusher(config config.ImagePusher, imageStore *storage.ImageStorage, image *models.Image, localFolder string, logger *zap.Logger, worker int, notifier messages.Notifier) (*ImagePusher, error)
func (*ImagePusher) Close ¶
func (r *ImagePusher) Close()
type ImageVerifier ¶
type ImageVerifier struct { ImageStore *storage.ImageStorage Image *models.Image LocalFolder string Logger *zap.Logger Worker int Notifier messages.Notifier }
func NewImageVerifier ¶
func (*ImageVerifier) Close ¶
func (r *ImageVerifier) Close()
type ImageWork ¶
type ImageWork struct { Image models.Image Type ImageWorkType }
type ImageWorkType ¶
type ImageWorkType string
const ( PullImageWork ImageWorkType = "PullImageWork" SignImageWork ImageWorkType = "SignImageWork" PushImageWork ImageWorkType = "PushImageWork" CleanImageWork ImageWorkType = "CleanImageWork" )
type SingleBlock ¶
type WorkFetcher ¶
type WorkFetcher struct { ImageStore *storage.ImageStorage Logger *zap.Logger WorkChannel chan ImageWork }
func NewWorkFetcher ¶
func NewWorkFetcher(imageStore *storage.ImageStorage, logger *zap.Logger, workCh chan ImageWork) (*WorkFetcher, error)
func (*WorkFetcher) Close ¶
func (r *WorkFetcher) Close() error
Click to show internal directories.
Click to hide internal directories.