Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KlarConfig ¶
type KlarConfig struct { //LayerCount int `env:"CLUSTER_ID" envDefault:"0"` ClairAddr string `env:"CLAIR_ADDR" envDefault:"http://localhost:6060"` //CLAIR_OUTPUT string `env:"CLAIR_OUTPUT" envDefault:"localhost:High"` //CLAIR_THRESHOLD string `env:"CLAIR_THRESHOLD" envDefault:"localhost:10"` ClairTimeout int `env:"CLAIR_TIMEOUT" envDefault:"30"` //DOCKER_TIMEOUT string `env:"DOCKER_TIMEOUT" envDefault:"5"` JSONOutput bool `env:"JSON_OUTPUT" envDefault:"true"` }
func GetKlarConfig ¶
func GetKlarConfig() (*KlarConfig, error)
type KlarService ¶
type KlarService interface {
Process(scanEvent *common.ImageScanEvent, executionHistory *repository.ImageScanExecutionHistory) (*common.ScanEventResponse, error)
}
type KlarServiceImpl ¶
type KlarServiceImpl struct {
// contains filtered or unexported fields
}
func NewKlarServiceImpl ¶
func NewKlarServiceImpl(logger *zap.SugaredLogger, klarConfig *KlarConfig, grafeasService grafeasService.GrafeasService, userRepository repository.UserRepository, imageScanService security.ImageScanService, dockerArtifactStoreRepository repository.DockerArtifactStoreRepository, scanToolMetadataRepository repository.ScanToolMetadataRepository) *KlarServiceImpl
func (*KlarServiceImpl) Process ¶
func (impl *KlarServiceImpl) Process(scanEvent *common.ImageScanEvent, executionHistory *repository.ImageScanExecutionHistory) (*common.ScanEventResponse, error)
Click to show internal directories.
Click to hide internal directories.