funcs

package
v0.19.5 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeHomogenousSnapshotFuncs added in v0.7.17

func MakeHomogenousSnapshotFuncs(
	snapshotName, outputFile string,
	selectFromGroups map[string][]model.Group,
	resourcesToSelect map[schema.GroupVersion][]string,
) template.FuncMap

make funcs for "Top Level" templates, i.e.: templates which combine resources from multiple (including externally defined) codegen Groups.

selectFromGroups = a map of Go modules to (a superset of) the imported codegen Groups. only required if the codegen group is defined in a different go module than the types (i.e. it is using a CustomTypesImportPath) resourcesToSelect = the GVKs of the resources which we want to select from the provided groups

func MakeHybridSnapshotFuncs added in v0.7.17

func MakeHybridSnapshotFuncs(
	snapshotName, outputFile string,
	selectFromGroups map[string][]model.Group,
	localResourcesToSelect, remoteResourcesToSelect map[schema.GroupVersion][]string,
) template.FuncMap

make funcs for "Top Level" templates, i.e.: templates which combine resources from multiple (including externally defined) codegen Groups.

selectFromGroups = a map of Go modules to (a superset of) the imported codegen Groups. only required if the codegen group is defined in a different go module than the types (i.e. it is using a CustomTypesImportPath) resourcesToSelect = the GVKs of the resources which we want to select from the provided groups

Types

This section is empty.

Jump to

Keyboard shortcuts

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