read

package
v1.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageTaggingReadService

type ImageTaggingReadService interface {
	// GetImageTaggingServiceConfig returns the ImageTaggingServiceConfig
	GetImageTaggingServiceConfig() *ImageTaggingServiceConfig
	// GetTagNamesByArtifactId gets all the tag names for the given artifactId
	GetTagNamesByArtifactId(artifactId int) ([]string, error)
	// GetUniqueTagsByAppId gets all the unique tag names for the given appId
	GetUniqueTagsByAppId(appId int) ([]string, error)
}

type ImageTaggingReadServiceImpl

type ImageTaggingReadServiceImpl struct {
	// contains filtered or unexported fields
}

func NewImageTaggingReadServiceImpl

func NewImageTaggingReadServiceImpl(
	imageTaggingRepo repository.ImageTaggingRepository,
	logger *zap.SugaredLogger) (*ImageTaggingReadServiceImpl, error)

func (*ImageTaggingReadServiceImpl) GetImageTaggingServiceConfig

func (impl *ImageTaggingReadServiceImpl) GetImageTaggingServiceConfig() *ImageTaggingServiceConfig

func (*ImageTaggingReadServiceImpl) GetTagNamesByArtifactId

func (impl *ImageTaggingReadServiceImpl) GetTagNamesByArtifactId(artifactId int) ([]string, error)

func (*ImageTaggingReadServiceImpl) GetUniqueTagsByAppId

func (impl *ImageTaggingReadServiceImpl) GetUniqueTagsByAppId(appId int) ([]string, error)

type ImageTaggingServiceConfig

type ImageTaggingServiceConfig struct {
	// HideImageTaggingHardDelete is a flag to hide the hard delete option in the image tagging service
	HideImageTaggingHardDelete bool `env:"HIDE_IMAGE_TAGGING_HARD_DELETE" envDefault:"false"`
}

ImageTaggingServiceConfig holds the configuration for the image tagging service

func (*ImageTaggingServiceConfig) IsHardDeleteHidden

func (c *ImageTaggingServiceConfig) IsHardDeleteHidden() bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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