cmdeval

package
v1.0.0-beta.31 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2023 License: Apache-2.0 Imports: 26 Imported by: 0

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
	SaveFn               bool
	Keywords             []string
	FnType               string
	Exec                 string
	FnConfigPath         string
	ResultsDir           string
	Network              bool
	Mounts               []string
	Env                  []string
	AsCurrentUser        bool
	IncludeMetaResources bool
	Ctx                  context.Context
	Selector             kptfile.Selector
	Exclusion            kptfile.Selector

	RunnerOptions fnruntime.RunnerOptions
	// 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() *kptfile.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