examples

package
v0.0.0-...-a438c6f Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	reference.Injector
	// contains filtered or unexported fields
}

Generator represents a pipeline for generating example manifests. Generates example manifests for Terraform resources under examples-generated.

func NewGenerator

func NewGenerator(rootDir, modulePath, shortName string, configResources map[string]*config.Resource) *Generator

NewGenerator returns a configured Generator

func (*Generator) Generate

func (eg *Generator) Generate(group, version string, r *config.Resource) error

Generate generates an example manifest for the specified Terraform resource.

func (*Generator) StoreExamples

func (eg *Generator) StoreExamples() error

StoreExamples stores the generated example manifests under examples-generated in their respective API groups.

Jump to

Keyboard shortcuts

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