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 ¶
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.
Click to show internal directories.
Click to hide internal directories.