typechecker

package
v3.98.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Failure

type Failure struct {
	// The Reason for the type failure
	Reason string

	// The path to the property that failed
	ResourcePath string
}

type TypeChecker

type TypeChecker struct {
	// contains filtered or unexported fields
}

func New

func New(schema pschema.PackageSpec, validateUnknownTypes bool) *TypeChecker

New creates a new type checker for a given resource and package schema

func (*TypeChecker) ValidateConfig

func (v *TypeChecker) ValidateConfig(inputs resource.PropertyMap) []Failure

ValidateConfig will validate the provider config against the pulumi schema. It will return a list of type failures if any are found

func (*TypeChecker) ValidateInputs

func (v *TypeChecker) ValidateInputs(resourceToken tokens.Type, inputs resource.PropertyMap) []Failure

ValidateInputs will validate a set of inputs against the pulumi schema. It will return a list of type failures if any are found

Jump to

Keyboard shortcuts

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