Versions in this module Expand all Collapse all v0 v0.2.21 Aug 13, 2021 v0.2.20 Aug 10, 2021 v0.2.19 Jul 28, 2021 v0.2.18 Jul 20, 2021 v0.2.17 Jul 16, 2021 v0.2.16 Jul 9, 2021 v0.2.15 Jul 2, 2021 v0.2.14 Jun 28, 2021 v0.2.13 Jun 22, 2021 v0.2.12 Jun 1, 2021 v0.2.11 May 24, 2021 v0.2.10 May 23, 2021 v0.2.9 May 5, 2021 v0.2.8 Apr 23, 2021 v0.2.7 Apr 12, 2021 v0.2.6 Apr 7, 2021 Changes in this version + const ScanObjectType_APP + const ScanObjectType_CHART + const ScanObjectType_POD + type CvePolicy struct + Action PolicyAction + AppId int + CVEStoreId string + ClusterId int + CveStore *CveStore + Deleted bool + EnvironmentId int + Global bool + Id int + Severity *Severity + func (policy *CvePolicy) PolicyLevel() PolicyLevel + type CvePolicyRepository interface + GetAppEnvPolicies func(clusterId int, environmentId int, appId int) (policies []*CvePolicy, err error) + GetBlockedCVEList func(cves []*CveStore, clusterId, envId, appId int, isAppstore bool) ([]*CveStore, error) + GetById func(id int) (*CvePolicy, error) + GetClusterPolicies func(clusterId int) (policies []*CvePolicy, err error) + GetEnvPolicies func(clusterId int, environmentId int) (policies []*CvePolicy, err error) + GetGlobalPolicies func() (policies []*CvePolicy, err error) + SavePolicy func(policy *CvePolicy) (*CvePolicy, error) + UpdatePolicy func(policy *CvePolicy) (*CvePolicy, error) + type CvePolicyRepositoryImpl struct + func NewPolicyRepositoryImpl(dbConnection *pg.DB) *CvePolicyRepositoryImpl + func (impl *CvePolicyRepositoryImpl) GetAppEnvPolicies(clusterId int, environmentId int, appId int) (policies []*CvePolicy, err error) + func (impl *CvePolicyRepositoryImpl) GetBlockedCVEList(cves []*CveStore, clusterId, envId, appId int, isAppstore bool) ([]*CveStore, error) + func (impl *CvePolicyRepositoryImpl) GetById(id int) (*CvePolicy, error) + func (impl *CvePolicyRepositoryImpl) GetClusterPolicies(clusterId int) (policies []*CvePolicy, err error) + func (impl *CvePolicyRepositoryImpl) GetEnvPolicies(clusterId int, environmentId int) (policies []*CvePolicy, err error) + func (impl *CvePolicyRepositoryImpl) GetGlobalPolicies() (policies []*CvePolicy, err error) + func (impl *CvePolicyRepositoryImpl) SavePolicy(policy *CvePolicy) (*CvePolicy, error) + func (impl *CvePolicyRepositoryImpl) UpdatePolicy(policy *CvePolicy) (*CvePolicy, error) + type CveStore struct + FixedVersion string + Name string + Package string + Severity Severity + Version string + type CveStoreRepository interface + FindAll func() ([]*CveStore, error) + FindByCveNames func(names []string) ([]*CveStore, error) + FindByName func(name string) (*CveStore, error) + Save func(model *CveStore) error + Update func(model *CveStore) error + VulnerabilityExposure func(request *VulnerabilityRequest) ([]*VulnerabilityExposure, error) + type CveStoreRepositoryImpl struct + func NewCveStoreRepositoryImpl(dbConnection *pg.DB, logger *zap.SugaredLogger) *CveStoreRepositoryImpl + func (impl CveStoreRepositoryImpl) FindAll() ([]*CveStore, error) + func (impl CveStoreRepositoryImpl) FindByCveNames(names []string) ([]*CveStore, error) + func (impl CveStoreRepositoryImpl) FindByName(name string) (*CveStore, error) + func (impl CveStoreRepositoryImpl) Save(model *CveStore) error + func (impl CveStoreRepositoryImpl) Update(team *CveStore) error + func (impl CveStoreRepositoryImpl) VulnerabilityExposure(request *VulnerabilityRequest) ([]*VulnerabilityExposure, error) + type ImageScanDeployInfo struct + ClusterId int + EnvId int + Id int + ImageScanExecutionHistoryId []int + ObjectType string + ScanObjectMetaId int + type ImageScanDeployInfoRepository interface + FetchByAppIdAndEnvId func(appId int, envId int, objectType []string) (*ImageScanDeployInfo, error) + FetchListingGroupByObject func(size int, offset int) ([]*ImageScanDeployInfo, error) + FindAll func() ([]*ImageScanDeployInfo, error) + FindByIds func(ids []int) ([]*ImageScanDeployInfo, error) + FindByTypeMetaAndTypeId func(scanObjectMetaId int, objectType string) (*ImageScanDeployInfo, error) + FindOne func(id int) (*ImageScanDeployInfo, error) + Save func(model *ImageScanDeployInfo) error + ScanListingWithFilter func(request *ImageScanFilter, size int, offset int, deployInfoIds []int) ([]*ImageScanListingResponse, error) + Update func(model *ImageScanDeployInfo) error + type ImageScanDeployInfoRepositoryImpl struct + func NewImageScanDeployInfoRepositoryImpl(dbConnection *pg.DB, logger *zap.SugaredLogger) *ImageScanDeployInfoRepositoryImpl + func (impl ImageScanDeployInfoRepositoryImpl) FetchByAppIdAndEnvId(appId int, envId int, objectType []string) (*ImageScanDeployInfo, error) + func (impl ImageScanDeployInfoRepositoryImpl) FetchListingGroupByObject(size int, offset int) ([]*ImageScanDeployInfo, error) + func (impl ImageScanDeployInfoRepositoryImpl) FindAll() ([]*ImageScanDeployInfo, error) + func (impl ImageScanDeployInfoRepositoryImpl) FindByIds(ids []int) ([]*ImageScanDeployInfo, error) + func (impl ImageScanDeployInfoRepositoryImpl) FindByTypeMetaAndTypeId(scanObjectMetaId int, objectType string) (*ImageScanDeployInfo, error) + func (impl ImageScanDeployInfoRepositoryImpl) FindOne(id int) (*ImageScanDeployInfo, error) + func (impl ImageScanDeployInfoRepositoryImpl) Save(model *ImageScanDeployInfo) error + func (impl ImageScanDeployInfoRepositoryImpl) ScanListingWithFilter(request *ImageScanFilter, size int, offset int, deployInfoIds []int) ([]*ImageScanListingResponse, error) + func (impl ImageScanDeployInfoRepositoryImpl) Update(team *ImageScanDeployInfo) error + type ImageScanExecutionHistory struct + ExecutedBy int + ExecutionTime time.Time + Id int + Image string + ImageHash string + type ImageScanExecutionResult struct + CveStore CveStore + CveStoreName string + Id int + ImageScanExecutionHistory ImageScanExecutionHistory + ImageScanExecutionHistoryId int + type ImageScanFilter struct + AppName string + CVEName string + ClusterIds []int + EnvironmentIds []int + ObjectName string + Offset int + Severity []int + Size int + type ImageScanHistoryRepository interface + FindAll func() ([]*ImageScanExecutionHistory, error) + FindByImage func(image string) (*ImageScanExecutionHistory, error) + FindByImageDigest func(image string) (*ImageScanExecutionHistory, error) + FindByImageDigests func(digest []string) ([]*ImageScanExecutionHistory, error) + FindOne func(id int) (*ImageScanExecutionHistory, error) + Save func(model *ImageScanExecutionHistory) error + Update func(model *ImageScanExecutionHistory) error + type ImageScanHistoryRepositoryImpl struct + func NewImageScanHistoryRepositoryImpl(dbConnection *pg.DB, logger *zap.SugaredLogger) *ImageScanHistoryRepositoryImpl + func (impl ImageScanHistoryRepositoryImpl) FindAll() ([]*ImageScanExecutionHistory, error) + func (impl ImageScanHistoryRepositoryImpl) FindByImage(image string) (*ImageScanExecutionHistory, error) + func (impl ImageScanHistoryRepositoryImpl) FindByImageDigest(image string) (*ImageScanExecutionHistory, error) + func (impl ImageScanHistoryRepositoryImpl) FindByImageDigests(digest []string) ([]*ImageScanExecutionHistory, error) + func (impl ImageScanHistoryRepositoryImpl) FindOne(id int) (*ImageScanExecutionHistory, error) + func (impl ImageScanHistoryRepositoryImpl) Save(model *ImageScanExecutionHistory) error + func (impl ImageScanHistoryRepositoryImpl) Update(team *ImageScanExecutionHistory) error + type ImageScanListingResponse struct + EnvironmentName string + Id int + LastChecked time.Time + ObjectName string + ObjectType string + ScanObjectMetaId int + SecurityScan string + type ImageScanObjectMeta struct + Active bool + Id int + Image string + Name string + type ImageScanObjectMetaRepository interface + FindAll func() ([]*ImageScanObjectMeta, error) + FindByNameAndType func(name string, types string) ([]*ImageScanObjectMeta, error) + FindOne func(id int) (*ImageScanObjectMeta, error) + Save func(model *ImageScanObjectMeta) error + Update func(model *ImageScanObjectMeta) error + type ImageScanObjectMetaRepositoryImpl struct + func NewImageScanObjectMetaRepositoryImpl(dbConnection *pg.DB, logger *zap.SugaredLogger) *ImageScanObjectMetaRepositoryImpl + func (impl ImageScanObjectMetaRepositoryImpl) FindAll() ([]*ImageScanObjectMeta, error) + func (impl ImageScanObjectMetaRepositoryImpl) FindByNameAndType(name string, types string) ([]*ImageScanObjectMeta, error) + func (impl ImageScanObjectMetaRepositoryImpl) FindOne(id int) (*ImageScanObjectMeta, error) + func (impl ImageScanObjectMetaRepositoryImpl) Save(model *ImageScanObjectMeta) error + func (impl ImageScanObjectMetaRepositoryImpl) Update(team *ImageScanObjectMeta) error + type ImageScanResultRepository interface + FetchByScanExecutionId func(id int) ([]*ImageScanExecutionResult, error) + FetchByScanExecutionIds func(ids []int) ([]*ImageScanExecutionResult, error) + FindAll func() ([]*ImageScanExecutionResult, error) + FindByCveName func(name string) ([]*ImageScanExecutionResult, error) + FindByImage func(image string) ([]*ImageScanExecutionResult, error) + FindByImageDigest func(imageDigest string) ([]*ImageScanExecutionResult, error) + FindByImageDigests func(digest []string) ([]*ImageScanExecutionResult, error) + FindOne func(id int) (*ImageScanExecutionResult, error) + Save func(model *ImageScanExecutionResult) error + Update func(model *ImageScanExecutionResult) error + type ImageScanResultRepositoryImpl struct + func NewImageScanResultRepositoryImpl(dbConnection *pg.DB, logger *zap.SugaredLogger) *ImageScanResultRepositoryImpl + func (impl ImageScanResultRepositoryImpl) FetchByScanExecutionId(scanExecutionId int) ([]*ImageScanExecutionResult, error) + func (impl ImageScanResultRepositoryImpl) FetchByScanExecutionIds(ids []int) ([]*ImageScanExecutionResult, error) + func (impl ImageScanResultRepositoryImpl) FindAll() ([]*ImageScanExecutionResult, error) + func (impl ImageScanResultRepositoryImpl) FindByCveName(name string) ([]*ImageScanExecutionResult, error) + func (impl ImageScanResultRepositoryImpl) FindByImage(image string) ([]*ImageScanExecutionResult, error) + func (impl ImageScanResultRepositoryImpl) FindByImageDigest(imageDigest string) ([]*ImageScanExecutionResult, error) + func (impl ImageScanResultRepositoryImpl) FindByImageDigests(digest []string) ([]*ImageScanExecutionResult, error) + func (impl ImageScanResultRepositoryImpl) FindOne(id int) (*ImageScanExecutionResult, error) + func (impl ImageScanResultRepositoryImpl) Save(model *ImageScanExecutionResult) error + func (impl ImageScanResultRepositoryImpl) Update(team *ImageScanExecutionResult) error + type PolicyAction int + const Allow + const Block + const Inherit + func (d PolicyAction) String() string + type PolicyLevel int + const Application + const Cluster + const Environment + const Global + func (d PolicyLevel) String() string + type Severity int + const Critical + const Low + const Moderate + func (d Severity) String() string + func (d Severity) ValuesOf(severity string) Severity + type SortBy string + type SortOrder string + const Asc + const Desc + type VulnerabilityExposure struct + AppId int + AppName string + AppStore bool + Blocked bool + ChartEnvId int + EnvId int + EnvName string + PipelineEnvId int + type VulnerabilityExposureListingResponse struct + Offset int + Size int + Total int + VulnerabilityExposure []*VulnerabilityExposure + type VulnerabilityRequest struct + AppName string + ClusterIds []int + CveName string + EnvIds []int + Offset int + Size int