image_usecase

package
v0.0.0-...-3439342 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrDigestAlreadyExist = errors.New("digest is already exist, potential race condition. please retry")
View Source
var ErrImageAlreadyExist = errors.New("image is already exist")
View Source
var ErrImageNotFound = errors.New("Image not found")
View Source
var ErrInvalidImageFormat = errors.New("invalid image format. valid format: <repo_name>@<digest>. Example: gcr.io/repo@sha256:xxxx")
View Source
var ErrUnexpected = errors.New("Unexpected internal error")

Functions

This section is empty.

Types

type UseCase

type UseCase interface {
	Get(project, repository string, page, size int) ([]entity.Image, error)
	Add(project, repository, fullImage, description string, createdBy int) error
	Remove(digest string) error
	GetByDigest(digest string) (*entity.Image, error)
}

func New

Jump to

Keyboard shortcuts

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