packagerepositoryoperation

package
v1.75.2 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: Apache-2.0 Imports: 24 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

Overview

nolint: unused

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) ProcessPackageVersions added in v1.75.0

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

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 string
	Done        []*semver.Version
	Failed      []failedVersion
}

Jump to

Keyboard shortcuts

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