codegen

package
v1.14.1 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SortedKeys added in v1.14.1

func SortedKeys(m interface{}) []string

SortedKeys returns a sorted list of keys for the given map. The map's key type must be of kind string.

func StripNonRelevantExamples

func StripNonRelevantExamples(description string, lang string) string

StripNonRelevantExamples strips the non-relevant language snippets from a resource's description.

Types

type DocLanguageHelper

type DocLanguageHelper interface {
	GetPropertyName(p *schema.Property) (string, error)
	GetDocLinkForResourceType(packageName, moduleName, typeName string) string
	GetDocLinkForResourceInputOrOutputType(packageName, moduleName, typeName string, input bool) string
	GetDocLinkForFunctionInputOrOutputType(packageName, moduleName, typeName string, input bool) string
	GetLanguageTypeString(pkg *schema.Package, moduleName string, t schema.Type, input, optional bool) string
	// GetResourceFunctionResultName returns the name of the result type when a static resource function is used to lookup
	// an existing resource.
	GetResourceFunctionResultName(resourceName string) string
}

DocLanguageHelper is an interface for extracting language-specific information from a Pulumi schema. See the implementation for this interface under each of the language code generators.

type Set added in v1.14.1

type Set map[interface{}]struct{}

func (Set) Add added in v1.14.1

func (s Set) Add(v interface{})

func (Set) Has added in v1.14.1

func (s Set) Has(v interface{}) bool

type StringSet added in v1.14.1

type StringSet map[string]struct{}

func NewStringSet added in v1.14.1

func NewStringSet(values ...string) StringSet

func (StringSet) Add added in v1.14.1

func (ss StringSet) Add(s string)

func (StringSet) Has added in v1.14.1

func (ss StringSet) Has(s string) bool

func (StringSet) SortedValues added in v1.14.1

func (ss StringSet) SortedValues() []string

Directories

Path Synopsis
Pulling out some of the repeated strings tokens into constants would harm readability, so we just ignore the goconst linter's warning.
Pulling out some of the repeated strings tokens into constants would harm readability, so we just ignore the goconst linter's warning.
nolint: lll
nolint: lll
Pulling out some of the repeated strings tokens into constants would harm readability, so we just ignore the goconst linter's warning.
Pulling out some of the repeated strings tokens into constants would harm readability, so we just ignore the goconst linter's warning.
nolint: goconst
nolint: goconst
internal
Pulling out some of the repeated strings tokens into constants would harm readability, so we just ignore the goconst linter's warning.
Pulling out some of the repeated strings tokens into constants would harm readability, so we just ignore the goconst linter's warning.
Pulling out some of the repeated strings tokens into constants would harm readability, so we just ignore the goconst linter's warning.
Pulling out some of the repeated strings tokens into constants would harm readability, so we just ignore the goconst linter's warning.

Jump to

Keyboard shortcuts

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