packages

package
v0.2.19 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPackageClient added in v0.2.12

func NewPackageClient(client client.Client) *packageClient

Types

type Client added in v0.2.12

type Client interface {
	// CreatePackage creates a package
	CreatePackage(ctx context.Context, pkg *api.Package) (err error)

	// GetPackageList retrieves the list of packages resources.
	GetPackageList(ctx context.Context, namespace string) (packages api.PackageList, err error)
}

type Manager

type Manager interface {
	// Process package events returns true if status update
	Process(mc *ManagerContext) bool
}

func NewManager

func NewManager() Manager

type ManagerContext

type ManagerContext struct {
	Ctx           context.Context
	Package       api.Package
	PackageDriver driver.PackageDriver
	Source        api.PackageOCISource
	PBC           api.PackageBundleController
	Version       api.SourceVersion
	RequeueAfter  time.Duration
	Log           logr.Logger
	Bundle        *api.PackageBundle
	PackageClient Client
}

func NewManagerContext added in v0.2.9

func NewManagerContext(ctx context.Context, log logr.Logger, packageDriver driver.PackageDriver) *ManagerContext

func (*ManagerContext) SetUninstalling

func (mc *ManagerContext) SetUninstalling(namespace string, name string)

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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