rapidgen

package
v3.88.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttributeKindGen

func AttributeKindGen() *rapid.Generator[AttributeKind]

func PropertyNameGen

func PropertyNameGen() *rapid.Generator[string]

func ResourceBlockGen

func ResourceBlockGen(depth int) *rapid.Generator[*schema.Resource]

Generates a schema.Resource representing a block.

func ResourceProperGen

func ResourceProperGen(depth int) *rapid.Generator[*schema.Resource]

schema.Resource docs state this is an abstraction over resources proper, data sources and blocks. This generator creates values representing resources proper.

func SchemaAttrGen

func SchemaAttrGen(depth int) *rapid.Generator[*schema.Schema]

func SchemaBlockGen

func SchemaBlockGen(depth int) *rapid.Generator[*schema.Schema]

func SchemaGen

func SchemaGen(depth int) *rapid.Generator[*schema.Schema]

func SchemaMapGen

func SchemaMapGen(depth int) *rapid.Generator[map[string]*schema.Schema]

func ValueTypeGen

func ValueTypeGen() *rapid.Generator[schema.ValueType]

func ValueTypeScalarGen

func ValueTypeScalarGen() *rapid.Generator[schema.ValueType]

Types

type AttributeKind

type AttributeKind int
const (
	Required AttributeKind = iota
	Optional
	Computed
	ComputedOptional
)

func (AttributeKind) Set

func (a AttributeKind) Set(s *schema.Schema)

Jump to

Keyboard shortcuts

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