names

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Alias = PulumiCore.Dot("Alias")
View Source
var Archive = PulumiAsset.Dot("Archive")
View Source
var AssetOrArchive = PulumiAsset.Dot("AssetOrArchive")
View Source
var Boolean = JavaLang.Dot("Boolean")
View Source
var Codegen = PulumiInternal.Dot("Codegen")
View Source
var CompletableFuture = JavaUtil.Dot("concurrent").Dot("CompletableFuture")
View Source
var CustomType = PulumiAnnotations.Dot("CustomType")
View Source
var Deployment = PulumiDeployment.Dot("Deployment")
View Source
var Double = JavaLang.Dot("Double")
View Source
var Either = PulumiCore.Dot("Either")
View Source
var EnumType = PulumiAnnotations.Dot("EnumType")
View Source
var Export = PulumiAnnotations.Dot("Export")
View Source
var GSON = Ident("com").FQN().Dot("google").Dot("gson")
View Source
var Import = PulumiAnnotations.Dot("Import")
View Source
var Integer = JavaLang.Dot("Integer")
View Source
var InvokeArgs = Pulumi.Dot("resources").Dot("InvokeArgs")
View Source
var InvokeOptions = PulumiDeployment.Dot("InvokeOptions")
View Source
var JSONElement = GSON.Dot("JsonElement")
View Source
var JavaLang = Ident("java").FQN().Dot("lang")
View Source
var JavaUtil = Ident("java").FQN().Dot("util")
View Source
var List = JavaUtil.Dot("List")
View Source
var Map = JavaUtil.Dot("Map")
View Source
var Nullable = Ident("javax").FQN().Dot("annotation").Dot("Nullable")
View Source
var Object = JavaLang.Dot("Object")
View Source
var Objects = JavaUtil.Dot("Objects")
View Source
var Optional = JavaUtil.Dot("Optional")
View Source
var Optionals = PulumiInternal.Dot("Optionals")
View Source
var Output = PulumiCore.Dot("Output")
View Source
var Pulumi = Ident("com").FQN().Dot("pulumi")
View Source
var PulumiAnnotations = PulumiCore.Dot("annotations")
View Source
var PulumiAsset = Pulumi.Dot("asset")
View Source
var PulumiCore = Pulumi.Dot("core")
View Source
var PulumiDeployment = Pulumi.Dot("deployment")
View Source
var PulumiInternal = PulumiCore.Dot("internal")
View Source
var ResourceType = PulumiAnnotations.Dot("ResourceType")
View Source
var String = JavaLang.Dot("String")
View Source
var StringJoiner = JavaUtil.Dot("StringJoiner")
View Source
var TypeShape = PulumiCore.Dot("TypeShape")
View Source
var Void = JavaLang.Dot("Void")

Functions

func LowerCamelCase

func LowerCamelCase(s string) string

LowerCamelCase sets the first character to lowercase LowerCamelCase("LowerCamelCase") -> "lowerCamelCase"

func MakeSafeEnumName

func MakeSafeEnumName(name, typeName string) (string, error)

func MakeValidIdentifier

func MakeValidIdentifier(name string) string

MakeValidIdentifier replaces characters that are not allowed in Java identifiers with underscores. A reserved word is prefixed with _. No attempt is made to ensure that the result is unique.

func Title

func Title(s string) string

Title converts the input string to a title cased string. If `s` has upper case letters, they are kept.

Types

type FQN

type FQN struct {
	// contains filtered or unexported fields
}

FQN represents a fully qualified names (1+ identifiers with dots in the middle). For example, `javax.annotation.Nullable`:

Ident("javax").FQN().Dot("annotation").Dot("Nullable")

func (FQN) BaseIdent

func (fqn FQN) BaseIdent() Ident

The base name. For example if the current FQN represents java.lang.Boolean, BaseIdent is Boolean.

func (FQN) Dot

func (fqn FQN) Dot(id Ident) FQN

Appends a segment to the FQN. For example:

var JavaLang = Ident("java").FQN().Dot("lang") // java.lang

JavaLang.Dot("Boolean") // java.lang.Boolean

func (FQN) Equal

func (fqn FQN) Equal(other FQN) bool

func (FQN) String

func (fqn FQN) String() string

type Ident

type Ident string

Ident is a valid Java identifier

func (Ident) AsProperty

func (id Ident) AsProperty() Property

func (Ident) FQN

func (id Ident) FQN() FQN

func (Ident) String

func (id Ident) String() string

type Imports

type Imports struct {
	// contains filtered or unexported fields
}

func NewImports

func NewImports(pkg FQN, pubClass Ident) *Imports

func (*Imports) ImportCode

func (i *Imports) ImportCode() string

func (*Imports) PackageCode

func (i *Imports) PackageCode() string

func (*Imports) Ref

func (i *Imports) Ref(name FQN) string

func (*Imports) Resolve

func (i *Imports) Resolve(name Ident) FQN

type Property

type Property Ident

Property is a valid Java identifier for a property

func (Property) Field

func (id Property) Field() string

Field returns a name of a valid Java field for this property.

func (Property) Getter

func (id Property) Getter() string

Getter returns a name of a Java getter for this property.

func (Property) ResourceGetter added in v0.5.4

func (id Property) ResourceGetter() string

ResourceGetter returns a name of a Java Pulumi Resource getter for this property.

func (Property) Setter

func (id Property) Setter() string

Setter returns a name of a Java setter for this property.

Jump to

Keyboard shortcuts

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