op

package
v2.4.0 Latest Latest
Warning

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

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

Documentation

Overview

Package op implements operation rendering using operation functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InjectWatchedResource

func InjectWatchedResource(op *opsv1alpha1.Operation, watched *unstructured.Unstructured)

InjectWatchedResource adds a RequiredResourceSelector for the watched resource to every pipeline step. This replicates what the WatchOperation controller does when creating an Operation from a WatchOperation.

func LoadOperation

func LoadOperation(fs afero.Fs, path string) (*opsv1alpha1.Operation, error)

LoadOperation loads an Operation from a YAML file. If the file contains a CronOperation or WatchOperation, the Operation template is extracted.

Types

type Cmd

type Cmd struct {
	render.EngineFlags `prefix:""`

	// Arguments.
	Operation string `` /* 192-byte string literal not displayed */
	Functions string `` /* 219-byte string literal not displayed */

	// Flags. Keep them in alphabetical order.
	ContextFiles           map[string]string `` /* 200-byte string literal not displayed */
	ContextValues          map[string]string `` /* 169-byte string literal not displayed */
	FunctionCredentials    string            `` /* 230-byte string literal not displayed */
	FunctionAnnotations    []string          `` /* 193-byte string literal not displayed */
	IncludeContext         bool              `` /* 169-byte string literal not displayed */
	IncludeFullOperation   bool              `` /* 169-byte string literal not displayed */
	IncludeFunctionResults bool              `` /* 169-byte string literal not displayed */
	RequiredResources      []string          `` /* 242-byte string literal not displayed */
	RequiredSchemas        string            `` /* 230-byte string literal not displayed */
	WatchedResource        string            `` /* 250-byte string literal not displayed */

	CacheDir       string        `env:"CROSSPLANE_XPKG_CACHE"       help:"Directory for cached xpkg package contents."          name:"cache-dir"`
	MaxConcurrency uint          `default:"8"                       help:"Maximum concurrency for building embedded functions."`
	ProjectFile    string        `` /* 154-byte string literal not displayed */
	Timeout        time.Duration `default:"1m"                      help:"How long to run before timing out."`
	// contains filtered or unexported fields
}

Cmd arguments and flags for alpha render op subcommand.

func (*Cmd) AfterApply

func (c *Cmd) AfterApply() error

AfterApply implements kong.AfterApply.

func (*Cmd) Help

func (c *Cmd) Help() string

Help prints out the help for the alpha render op command.

func (*Cmd) Run

func (c *Cmd) Run(k *kong.Context, log logging.Logger, sp terminal.SpinnerPrinter) error

Run alpha render op.

Jump to

Keyboard shortcuts

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