Documentation ¶
Index ¶
- func QualifierMappingDao(qualifierId, identifierKey, IdentifierValueInt int, identifierValueName string, ...) *resourceQualifiers.QualifierMapping
- type DigestPolicyConfigurationRequest
- type DigestPolicyConfigurationResponse
- type ImageDigestPolicyService
- type ImageDigestPolicyServiceImpl
- func (impl ImageDigestPolicyServiceImpl) CreatePolicyForPipeline(tx *pg.Tx, pipelineId int, pipelineName string, UserId int32) (int, error)
- func (impl ImageDigestPolicyServiceImpl) CreatePolicyForPipelineIfNotExist(tx *pg.Tx, pipelineId int, pipelineName string, UserId int32) (int, error)
- func (impl ImageDigestPolicyServiceImpl) DeletePolicyForPipeline(tx *pg.Tx, pipelineId int, userId int32) (int, error)
- func (impl ImageDigestPolicyServiceImpl) GetDigestPolicyConfigurations(digestConfigurationRequest DigestPolicyConfigurationRequest) (digestPolicyConfiguration DigestPolicyConfigurationResponse, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func QualifierMappingDao ¶
func QualifierMappingDao(qualifierId, identifierKey, IdentifierValueInt int, identifierValueName string, userId int32) *resourceQualifiers.QualifierMapping
Types ¶
type DigestPolicyConfigurationResponse ¶
type DigestPolicyConfigurationResponse struct { DigestConfiguredForPipeline bool DigestConfiguredForEnvOrCluster bool }
func (DigestPolicyConfigurationResponse) UseDigestForTrigger ¶
func (config DigestPolicyConfigurationResponse) UseDigestForTrigger() bool
type ImageDigestPolicyService ¶
type ImageDigestPolicyService interface { //CreatePolicyForPipeline creates image digest policy for pipeline CreatePolicyForPipeline(tx *pg.Tx, pipelineId int, pipelineName string, UserId int32) (int, error) //CreatePolicyForPipelineIfNotExist creates image digest policy for pipeline if not already created CreatePolicyForPipelineIfNotExist(tx *pg.Tx, pipelineId int, pipelineName string, UserId int32) (int, error) //GetDigestPolicyConfigurations returns true if pipeline or env or cluster has image digest policy enabled GetDigestPolicyConfigurations(digestConfigurationRequest DigestPolicyConfigurationRequest) (digestPolicyConfiguration DigestPolicyConfigurationResponse, err error) //DeletePolicyForPipeline deletes image digest policy for a pipeline DeletePolicyForPipeline(tx *pg.Tx, pipelineId int, userId int32) (int, error) }
type ImageDigestPolicyServiceImpl ¶
type ImageDigestPolicyServiceImpl struct {
// contains filtered or unexported fields
}
func NewImageDigestPolicyServiceImpl ¶
func NewImageDigestPolicyServiceImpl( logger *zap.SugaredLogger, qualifierMappingService resourceQualifiers.QualifierMappingService, devtronResourceSearchableKey devtronResource.DevtronResourceSearchableKeyService, ) *ImageDigestPolicyServiceImpl
func (ImageDigestPolicyServiceImpl) CreatePolicyForPipeline ¶
func (ImageDigestPolicyServiceImpl) CreatePolicyForPipelineIfNotExist ¶
func (ImageDigestPolicyServiceImpl) DeletePolicyForPipeline ¶
func (ImageDigestPolicyServiceImpl) GetDigestPolicyConfigurations ¶
func (impl ImageDigestPolicyServiceImpl) GetDigestPolicyConfigurations(digestConfigurationRequest DigestPolicyConfigurationRequest) (digestPolicyConfiguration DigestPolicyConfigurationResponse, err error)
Click to show internal directories.
Click to hide internal directories.