Documentation ¶
Index ¶
- func RenderDockerfiles(ctx solution.Solution) ([]kio.File, error)
- func VariablesFromGraph(g construct.Graph) (variables, error)
- type Arg
- type ListMarshaller
- type MapMarshaller
- type PackageJsonFile
- type Plugin
- type PropertyTemplateData
- type PulumiConfig
- type ResourceTemplate
- type TemplatesCompiler
- func (tc *TemplatesCompiler) AddExtraResources(r construct.ResourceId) error
- func (tc TemplatesCompiler) GetPackageJSON(v construct.ResourceId) (*PackageJsonFile, error)
- func (tc TemplatesCompiler) NewAppliedOutput(ref construct.PropertyRef, name string) appliedOutput
- func (tc TemplatesCompiler) PackageJSON() (*PackageJsonFile, error)
- func (tc *TemplatesCompiler) ParseTemplate(name string, r io.Reader) (*ResourceTemplate, error)
- func (tc *TemplatesCompiler) PropertyRefValue(ref construct.PropertyRef) (any, error)
- func (tc *TemplatesCompiler) RenderImports(out io.Writer) error
- func (tc *TemplatesCompiler) RenderResource(out io.Writer, rid construct.ResourceId) error
- func (tc *TemplatesCompiler) ResourceTemplate(id construct.ResourceId) (*ResourceTemplate, error)
- type TsList
- type TsMap
- type WrapperType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderDockerfiles ¶
RenderDockerfiles is a temporary workaround for rendering trivial Dockerfiles for resources. Ideally this isn't explicit but instead handled by a template in some fashion.
func VariablesFromGraph ¶
Types ¶
type Arg ¶
type Arg struct { Name string Type string Wrapper WrapperType }
type ListMarshaller ¶
type MapMarshaller ¶
type PackageJsonFile ¶
type PackageJsonFile struct { Dependencies map[string]string DevDependencies map[string]string OtherFields map[string]json.RawMessage }
func (*PackageJsonFile) Clone ¶
func (f *PackageJsonFile) Clone() kio.File
func (*PackageJsonFile) Merge ¶
func (f *PackageJsonFile) Merge(other *PackageJsonFile)
func (*PackageJsonFile) Path ¶
func (f *PackageJsonFile) Path() string
func (*PackageJsonFile) UnmarshalJSON ¶
func (f *PackageJsonFile) UnmarshalJSON(b []byte) error
type Plugin ¶
type Plugin struct { Config *PulumiConfig KB knowledgebase.TemplateKB }
type PropertyTemplateData ¶
type PropertyTemplateData struct { Resource construct.ResourceId Object string Input templateInputArgs }
type PulumiConfig ¶
type PulumiConfig struct {
AppName string
}
type ResourceTemplate ¶
type TemplatesCompiler ¶
type TemplatesCompiler struct {
// contains filtered or unexported fields
}
func (*TemplatesCompiler) AddExtraResources ¶
func (tc *TemplatesCompiler) AddExtraResources(r construct.ResourceId) error
func (TemplatesCompiler) GetPackageJSON ¶
func (tc TemplatesCompiler) GetPackageJSON(v construct.ResourceId) (*PackageJsonFile, error)
func (TemplatesCompiler) NewAppliedOutput ¶
func (tc TemplatesCompiler) NewAppliedOutput(ref construct.PropertyRef, name string) appliedOutput
func (TemplatesCompiler) PackageJSON ¶
func (tc TemplatesCompiler) PackageJSON() (*PackageJsonFile, error)
func (*TemplatesCompiler) ParseTemplate ¶
func (tc *TemplatesCompiler) ParseTemplate(name string, r io.Reader) (*ResourceTemplate, error)
func (*TemplatesCompiler) PropertyRefValue ¶
func (tc *TemplatesCompiler) PropertyRefValue(ref construct.PropertyRef) (any, error)
func (*TemplatesCompiler) RenderImports ¶
func (tc *TemplatesCompiler) RenderImports(out io.Writer) error
func (*TemplatesCompiler) RenderResource ¶
func (tc *TemplatesCompiler) RenderResource(out io.Writer, rid construct.ResourceId) error
func (*TemplatesCompiler) ResourceTemplate ¶
func (tc *TemplatesCompiler) ResourceTemplate(id construct.ResourceId) (*ResourceTemplate, error)
type WrapperType ¶
type WrapperType string
const ( TemplateWrapper WrapperType = "TemplateWrapper" CamelCaseWrapper WrapperType = "CamelCaseWrapper" LowerCamelCaseWrapper WrapperType = "LowerCamelCaseWrapper" ModelCaseWrapper WrapperType = "ModelCaseWrapper" )
Click to show internal directories.
Click to hide internal directories.