packagerepositoryoperation

package
v1.75.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: Apache-2.0 Imports: 24 Imported by: 0

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