componentdescriptor

package
v0.0.0-...-e882e3a Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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 CreateCredMatchLabels(registryCredSelector string) ([]byte, error)

func GetImageNameAndTag

func GetImageNameAndTag(imageURL string) (string, string, error)

func InitializeComponentDescriptor

func InitializeComponentDescriptor(moduleName string, moduleVersion string) (*compdesc.ComponentDescriptor, error)

Types

type GitService

type GitService interface {
	GetLatestCommit(repoURL string) (string, error)
	GetRemoteGitFileContent(repoURL, commit, filePath string) (string, error)
}

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

type Resource struct {
	compdesc.Resource
	Path string
}

func GenerateModuleResources

func GenerateModuleResources(moduleVersion, manifestPath, defaultCRPath, registryCredSelector string) ([]Resource,
	error,
)

type SecurityConfigService

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

func NewSecurityConfigService

func NewSecurityConfigService(gitService GitService) (*SecurityConfigService, error)

func (*SecurityConfigService) AppendSecurityScanConfig

func (s *SecurityConfigService) AppendSecurityScanConfig(descriptor *compdesc.ComponentDescriptor,
	securityConfig contentprovider.SecurityScanConfig,
) error

func (*SecurityConfigService) ParseSecurityConfigData

func (s *SecurityConfigService) ParseSecurityConfigData(gitRepoURL, securityConfigFile string) (
	*contentprovider.SecurityScanConfig,
	error,
)

Jump to

Keyboard shortcuts

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