cmdeval

package
v1.0.1 Latest Latest
Warning

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

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

func EvalCommand(ctx context.Context, name string) *cobra.Command

Types

type EvalFnRunner

type EvalFnRunner struct {
	Command              *cobra.Command
	Dest                 string
	OutContent           bytes.Buffer
	FromStdin            bool
	Image                string
	Tag                  string
	SaveFn               bool
	FnType               string
	Exec                 string
	FnConfigPath         string
	ResultsDir           string
	Network              bool
	Mounts               []string
	Env                  []string
	AsCurrentUser        bool
	IncludeMetaResources bool
	Ctx                  context.Context
	Selector             kptfilev1.Selector
	Exclusion            kptfilev1.Selector

	RunnerOptions runneroptions.RunnerOptions

	CelCondition string
	// contains filtered or unexported fields
}

EvalFnRunner contains the run function

func GetEvalFnRunner

func GetEvalFnRunner(ctx context.Context, parent string) *EvalFnRunner

GetEvalFnRunner returns a EvalFnRunner.

func (*EvalFnRunner) InitDefaults

func (r *EvalFnRunner) InitDefaults()

func (*EvalFnRunner) NewFunction

func (r *EvalFnRunner) NewFunction() *kptfilev1.Function

NewFunction creates a Kptfile.Function object which has the evaluated fn configurations. This object can be written to Kptfile `pipeline.mutators`.

func (*EvalFnRunner) SaveFnToKptfile

func (r *EvalFnRunner) SaveFnToKptfile()

SaveFnToKptfile adds the evaluated function and its arguments to Kptfile `pipeline.mutators` or `pipeline.validators` .

Jump to

Keyboard shortcuts

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