conjureircli

package
v6.61.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InputPathToIR

func InputPathToIR(inPath string) (rBytes []byte, rErr error)

func InputPathToIRWithParams added in v6.4.0

func InputPathToIRWithParams(inPath string, params ...Param) (rBytes []byte, rErr error)

func Run

func Run(inPath, outPath string) error

Run invokes the "compile" operation on the Conjure CLI with the provided inPath and outPath as arguments.

func RunWithParams added in v6.4.0

func RunWithParams(inPath, outPath string, params ...Param) error

RunWithParams invokes the "compile" operation on the Conjure CLI with the provided inPath and outPath as arguments. Any arguments or configuration supplied by the provided params are also applied.

func YAMLtoIR

func YAMLtoIR(in []byte) (rBytes []byte, rErr error)

func YAMLtoIRWithParams added in v6.4.0

func YAMLtoIRWithParams(in []byte, params ...Param) (rBytes []byte, rErr error)

Types

type Param added in v6.4.0

type Param interface {
	// contains filtered or unexported methods
}

func ExtensionsParam added in v6.4.0

func ExtensionsParam(extensionsContent map[string]interface{}) (Param, error)

ExtensionsParam returns a parameter that sets the extensions of the generated Conjure IR to be the JSON-marshalled content of the provided map if it is non-empty. Returns a no-op parameter if the provided map is nil or empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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