task

package
v1.6.4-pre.3 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: Apache-2.0 Imports: 38 Imported by: 1 module, 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 PatchKptfile

func PatchKptfile(
	ctx context.Context,
	oldPackage repository.PackageRevision,
	newObj *porchapiv1alpha1.PackageRevision,
) (string, bool, error)

Types

type NodeToMapWriter

type NodeToMapWriter struct {
	Resources map[string]string
}

type RenderError

type RenderError struct {
	Err error
}

RenderError indicates that the kpt render step itself failed. The draft may still contain valid (unrendered or partially-rendered) resources.

func (*RenderError) Error

func (e *RenderError) Error() string

type RenderPersistError

type RenderPersistError struct {
	RenderErr  error
	PersistErr error
}

RenderPersistError indicates that rendering failed and the subsequent attempt to persist the (partially-rendered) resources to the draft also failed. Callers should NOT push the draft to the remote when this error is returned, because the draft contents are stale.

func (*RenderPersistError) Error

func (e *RenderPersistError) Error() string

type TaskHandler

type TaskHandler interface {
	GetRuntime() fn.FunctionRuntime

	SetRunnerOptionsResolver(func(namespace string) runneroptions.RunnerOptions)
	SetRuntime(fn.FunctionRuntime)
	SetRepoOpener(repository.RepositoryOpener)
	SetCredentialResolver(repository.CredentialResolver)
	SetReferenceResolver(repository.ReferenceResolver)
	SetRepoOperationRetryAttempts(int)

	ApplyTask(ctx context.Context, draft repository.PackageRevisionDraft, obj *porchapi.PackageRevision) error
	DoPRMutations(ctx context.Context, repoPR repository.PackageRevision, oldObj *porchapi.PackageRevision, newObj *porchapi.PackageRevision, draft repository.PackageRevisionDraft) error
	DoPRResourceMutations(ctx context.Context, pr2Update repository.PackageRevision, draft repository.PackageRevisionDraft, oldRes, newRes *porchapi.PackageRevisionResources) (*porchapi.RenderStatus, error)
}

func GetDefaultTaskHandler

func GetDefaultTaskHandler() TaskHandler

Jump to

Keyboard shortcuts

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