Documentation ¶
Index ¶
- Constants
- Variables
- func DevGetResources(ctx context.Context, validationBytes []byte, spinner *message.Spinner) (types.DomainResources, error)
- func DevValidate(ctx context.Context, validationBytes []byte, resourcesBytes []byte, ...) (lulaValidation types.LulaValidation, err error)
- func Include(rootCmd *cobra.Command)
- func ReadValidation(cmd *cobra.Command, spinner *message.Spinner, path string, timeout int) ([]byte, error)
- func RunSingleValidation(validationBytes []byte, opts ...types.LulaValidationOption) (lulaValidation types.LulaValidation, err error)
- type ValidateFlags
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 DevGetResources ¶
func DevValidate ¶
func DevValidate(ctx context.Context, validationBytes []byte, resourcesBytes []byte, 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 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(validationBytes []byte, opts ...types.LulaValidationOption) (lulaValidation types.LulaValidation, err error)
RunSingleValidation runs a single validation
Types ¶
type ValidateFlags ¶
Click to show internal directories.
Click to hide internal directories.