# Functions
CobraImpl returns cobra command implementation for an action command.
ConvertInputToTplVars creates a map with input variables suitable for template engine.
CreateFromYaml creates an action file definition from yaml configuration.
CreateFromYamlTpl creates an action file definition from yaml configuration as [CreateFromYaml] but considers that it has unescaped template values.
ForwardAllSignals forwards signals to the container
The channel you pass in must already be setup to receive any signals you want to forward.
NewAction creates a new action.
NewContainerEnvironment creates a new action container run environment.
NewDiscovery creates an instance of action discovery.
NewDiscoveryFS creates a [DiscoveryFS] given fs - a filesystem to discover and wd - working directory for an action, leave empty for current path.
NewDockerEnvironment creates a new action Docker environment.
NewFuncProcessor creates a new instance of [FuncProcessor] with the specified formats and callback.
NewImageBuildCacheResolver creates [ImageBuildCacheResolver] from global configuration.
NewManager constructs a new action manager.
NewPipeProcessor creates a new processor containing several processors that handles input consequentially.
NewYamlDiscovery is an implementation of discovery for searching yaml files.
WithContainerRunEnvironmentConfig configures a [ContainerRunEnvironment].
WithDefaultRunEnvironment adds a default [RunEnvironment] for an action.
WithValueProcessors sets processors for action from manager.
# Constants
ConfigImagesKey is a field name in launchr config file.
# Structs
Action is an action definition with a contextual id (name), working directory path and a runtime context such as input arguments and options.
Argument stores command arguments declaration.
ContainerNameProvider provides an ability to generate a random container name.
DefAction holds action configuration.
DefaultIDProvider is a default action id provider.
Definition is a representation of an action file.
Discovery defines a common functionality for discovering action files.
DiscoveryFS is a file system to discover actions.
FuncProcessor represents a processor that applies a callback function to values based on certain applicable formats.
ImageBuildCacheResolver is responsible for checking image build hash sums to rebuild images.
Input is a container for action input arguments and options.
LaunchrConfigImageBuildResolver is a resolver of image build in launchr config file.
LoadContext stores relevant and isolated data needed for processors.
Option stores command options declaration.
RunInfo stores information about a running action.
RunStatusError is an execution error also containing command exit code.
ValueProcessDef stores information about processor and options that should be applied to processor.
YamlDiscoveryStrategy is a yaml discovery strategy.
# Interfaces
AlterActionsPlugin is a launchr plugin to alter registered actions.
ContainerRunEnvironment is an interface for container run environments.
DiscoveryPlugin is a launchr plugin to discover actions.
DiscoveryStrategy is a way files will be discovered and loaded.
IDProvider provides an ID for an action.
ImageBuildResolver is an interface to resolve image build info from its source.
Loader is an interface for loading an action file.
LoadProcessor is an interface for processing input on load.
Manager handles actions and its execution.
ManagerUnsafe is an extension of the [Manager] interface that provides unsafe access to actions.
RunEnvironment is a common interface for all action run environments.
RunEnvironmentFlags is an interface to define environment specific runtime configuration.
ValueProcessor defines an interface for processing a value based on its type and some options.
# Type aliases
ArgumentsList is used for custom yaml parsing of arguments list.
ChainImageBuildResolver is a image build resolver that takes first available image in the chain.
ConfigImages is a container to parse launchr config in yaml format.
DecorateWithFn is a type alias for functions accepted in a [Manager.Decorate] interface method.
EnvSlice is an array of env vars or key-value.
FileLoadFn is a type for loading a file.
OptionsList is used for custom yaml parsing of options list.
StrSlice is an array of strings for command execution.
StrSliceOrStr is an array of strings for command execution.
No description provided by the author
No description provided by the author
ValueProcessorFn is a function signature used as a callback in processors.