dev

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const DEFAULT_TIMEOUT = 1
View Source
const NO_TIMEOUT = -1
View Source
const STDIN = "0"

Variables

This section is empty.

Functions

func DevGetResources

func DevGetResources(ctx context.Context, inputFile string) (map[string]interface{}, error)

func DevValidate

func DevValidate(ctx context.Context, validationBytes []byte, resourcesBytes []byte) (lulaValidation types.LulaValidation, err error)

DevValidate reads a validation manifest and converts it to a LulaValidation struct, then validates it Returns the LulaValidation struct and any error encountered

func Include

func Include(rootCmd *cobra.Command)

Include adds the tools command to the root command.

func PrintJSON

func PrintJSON(data map[string]interface{}, filepath string)

Types

type ValidateFlags

type ValidateFlags struct {
	ExpectedResult bool   // -e --expected-result
	Timeout        int    // -t --timeout
	ResourcesFile  string // -r --resources-file
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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