packagerepositoryoperation

package
v1.77.10 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: Apache-2.0 Imports: 25 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterController

func RegisterController(runtimeManager manager.Manager, dc dependency.Container, logger *log.Logger) error

Types

type DiscoverResult added in v1.75.0

type DiscoverResult struct {
	Packages        []packageInfo
	RepositoryPhase string
	SyncTime        time.Time
}

type OperationService added in v1.75.0

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

func NewOperationService added in v1.75.0

func (*OperationService) DiscoverPackage added in v1.75.0

func (s *OperationService) DiscoverPackage(ctx context.Context) (*DiscoverResult, error)

func (*OperationService) EnsureApplicationPackage added in v1.75.0

func (s *OperationService) EnsureApplicationPackage(ctx context.Context, packageName string) error

func (*OperationService) EnsureModulePackage added in v1.76.0

func (s *OperationService) EnsureModulePackage(ctx context.Context, packageName string) error

func (*OperationService) ProcessPackageVersions added in v1.75.0

func (s *OperationService) ProcessPackageVersions(ctx context.Context, packageName string, operation *v1alpha1.PackageRepositoryOperation) (*PackageProcessResult, error)

ProcessPackageVersions processes a single package: lists version tags from <package>/version, detects type (Application/Module) via detectPackageType, creates APV/MPV resources. Delegates to handleMissingVersionPath when /version path doesn't exist (NAME_UNKNOWN) or has no semver tags on a full scan.

func (*OperationService) UpdateRepositoryStatus added in v1.75.0

func (s *OperationService) UpdateRepositoryStatus(ctx context.Context, packages []v1alpha1.PackageRepositoryOperationStatusPackage) error

UpdateRepositoryStatus updates the PackageRepository status with the processed packages.

type PackageProcessResult added in v1.75.0

type PackageProcessResult struct {
	PackageType   packageType
	Done          []*semver.Version
	Failed        []failedVersion
	FoundVersions int
	// NewVersions counts package versions that were either created for the
	// first time during this operation, or (for ApplicationPackageVersion)
	// transitioned from the "not in registry" state because their image was
	// rediscovered in the registry.
	NewVersions int
}

Jump to

Keyboard shortcuts

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