Documentation ¶
Index ¶
- Variables
- func AppendProtecodeImagesLayers(componentDescriptor *compdesc.ComponentDescriptor, ...) error
- func AppendSecurityLabelsToSources(securityScanConfig contentprovider.SecurityScanConfig, ...) error
- func CreateCredMatchLabels(registryCredSelector string) ([]byte, error)
- func GetImageNameAndTag(imageURL string) (string, string, error)
- func InitializeComponentDescriptor(moduleName string, moduleVersion string) (*compdesc.ComponentDescriptor, error)
- type FileReader
- type GitService
- type GitSourcesService
- type Resource
- type SecurityConfigService
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrSecurityConfigFileDoesNotExist = errors.New("security config file does not exist")
Functions ¶
func AppendProtecodeImagesLayers ¶
func AppendProtecodeImagesLayers(componentDescriptor *compdesc.ComponentDescriptor, securityScanConfig contentprovider.SecurityScanConfig, ) error
func AppendSecurityLabelsToSources ¶
func AppendSecurityLabelsToSources(securityScanConfig contentprovider.SecurityScanConfig, sources compdesc.Sources, ) error
func CreateCredMatchLabels ¶
func InitializeComponentDescriptor ¶
func InitializeComponentDescriptor(moduleName string, moduleVersion string) (*compdesc.ComponentDescriptor, error)
Types ¶
type FileReader ¶
type GitService ¶
type GitSourcesService ¶
type GitSourcesService struct {
// contains filtered or unexported fields
}
func NewGitSourcesService ¶
func NewGitSourcesService(gitService GitService) (*GitSourcesService, error)
func (*GitSourcesService) AddGitSources ¶
func (s *GitSourcesService) AddGitSources(componentDescriptor *compdesc.ComponentDescriptor, gitRepoURL, moduleVersion string, ) error
type Resource ¶
func GenerateModuleResources ¶
type SecurityConfigService ¶
type SecurityConfigService struct {
// contains filtered or unexported fields
}
func NewSecurityConfigService ¶
func NewSecurityConfigService(fileReader FileReader) (*SecurityConfigService, error)
func (*SecurityConfigService) AppendSecurityScanConfig ¶
func (s *SecurityConfigService) AppendSecurityScanConfig(descriptor *compdesc.ComponentDescriptor, securityConfig contentprovider.SecurityScanConfig, ) error
func (*SecurityConfigService) ParseSecurityConfigData ¶
func (s *SecurityConfigService) ParseSecurityConfigData(securityConfigFile string) ( *contentprovider.SecurityScanConfig, error, )
Click to show internal directories.
Click to hide internal directories.