dev

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

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

Variables

View Source
var RunInteractively bool = true // default to run dev command interactively

Functions

func DevCommand added in v0.12.0

func DevCommand() *cobra.Command

func DevGetResources

func DevGetResources(ctx context.Context, validationBytes []byte, confirmExecution bool, spinner *message.Spinner) (types.DomainResources, error)

func DevGetResourcesCommand added in v0.12.0

func DevGetResourcesCommand() *cobra.Command

func DevLint added in v0.12.0

func DevLint(inputFiles []string, setOpts []string) []oscalValidation.ValidationResult

func DevLintCommand added in v0.4.3

func DevLintCommand() *cobra.Command

func DevTemplate added in v0.12.0

func DevTemplate(validationBytes []byte, setOpts []string) ([]byte, error)

Provides basic templating wrapper for "all" render type

func DevValidate

func DevValidate(ctx context.Context, validationBytes []byte, resourcesBytes []byte, confirmExecution bool, spinner *message.Spinner) (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 DevValidateCommand added in v0.12.0

func DevValidateCommand() *cobra.Command

func ReadValidation added in v0.4.0

func ReadValidation(cmd *cobra.Command, spinner *message.Spinner, path string, timeout int) ([]byte, error)

ReadValidation reads the validation yaml file and returns the validation bytes

func RunSingleValidation added in v0.4.0

func RunSingleValidation(ctx context.Context, validationBytes []byte, opts ...types.LulaValidationOption) (lulaValidation types.LulaValidation, err error)

RunSingleValidation runs a single validation

Types

This section is empty.

Jump to

Keyboard shortcuts

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