contoller

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Overview

Package controller coordinates all the other components in the `Lama2` project. The high level overview of command execution is easily understood from this package

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteProcessorBlock added in v1.3.0

func ExecuteProcessorBlock(block *gabs.Container, vm *goja.Runtime)

func ExecuteRequestorBlock added in v1.3.0

func ExecuteRequestorBlock(block *gabs.Container, vm *goja.Runtime, opts *lama2cmd.Opts, dir string) httpie.ExResponse

func GetParsedAPIBlocks added in v1.3.0

func GetParsedAPIBlocks(parsedAPI *gabs.Container) []*gabs.Container

func HandleParsedFile added in v1.3.0

func HandleParsedFile(parsedAPI *gabs.Container, o *lama2cmd.Opts, dir string)

func Process

func Process(version string)

Process initiates the following tasks in the given order: 1. Parse command line arguments 2. Read API file contents 3. Expand environment variables in API file 4. Parse the API contents 5. Generate API request command 6. Execute command & retrieve results 7. Optionally, post-process and write results to a JSON file

Types

This section is empty.

Jump to

Keyboard shortcuts

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