render

package
v0.0.0-...-fe92f36 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ExtPrefix    = "extensions"
	CustomPrefix = "_custom"
	GenPrefix    = "_gen"
	GenExt       = ".libsonnet"
	IndexFile    = "gen" + GenExt
	MainFile     = "main" + GenExt
)

Common set of directory structure / file extensions

View Source
const (
	// LocalAPIVersion references a "private: json field containing the APIVersion
	LocalAPIVersion = "_apiVersion"
)

Variables

This section is empty.

Functions

func Index

func Index(realms map[string]*cloudformation.Realm, name, repo, dir, description string) j.ObjectType

Index creates gen.libsonnet, the index of all generated artifacts

func Main

func Main(adds []string) j.Type

Main creates main.libsonnet: - import the generated index (gen.libsonnet) - add all hand-written patches on top

func Modifier

func Modifier(name string, i interface{}) []j.Type

Modifier retrieves the correct modifier(s) for a given type

func Realm

func Realm(name string, realm *cloudformation.Realm) j.ObjectType

func Resource

func Resource(name string, resource *cloudformation.ResourceType) j.Type

func Service

func Service(name string, service *cloudformation.Service, gen string) map[string]j.Type

func SortFields

func SortFields(fields []j.Type)

SortFields sorts Jsonnet fields

Types

type Objects

type Objects map[string]j.ObjectType

Objects is a collection of Jsonnet objects, indexed by their expected path on the filesystem

func (Objects) Add

func (o Objects) Add(prefix string, set Objects)

Add appends a jsonnet object to an object

Jump to

Keyboard shortcuts

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