code

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrTooManyValues = errors.New("only one value struct is allowed")

Functions

func Generate

func Generate(resourceYaml []byte, varName string, values ...interface{}) (string, error)

Generate generates unstructured go types for resources defined in yaml manifests.

func GenerateCode added in v0.2.0

func GenerateCode(files *manifests.Manifests, options *options.RBACOptions, values map[string]interface{}) (string, error)

GenerateCode will return the stdout form of unstructured go code, given a set of input manifests, in go struct format.

func GenerateForManifests

func GenerateForManifests(manifests *manifests.Manifests, options *options.RBACOptions) (string, error)

GenerateForManifests generates code for a set of manifest objects.

func GenerateYAML added in v0.2.0

func GenerateYAML(files *manifests.Manifests) (string, error)

GenerateYAML will return the stdout form of unstructured objects in YAML format given a set of input manifest.

Types

This section is empty.

Jump to

Keyboard shortcuts

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