pkg

package
v0.0.0-...-f98a516 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GeneratePackage

func GeneratePackage(opts GenerateOpts) error

func HasTemplate

func HasTemplate(name string) bool

func ListTemplates

func ListTemplates() ([]string, error)

Types

type Config

type Config map[string]any

func LoadLocalConfig

func LoadLocalConfig(path string) (Config, error)

func (Config) WithTemplateDefaults

func (c Config) WithTemplateDefaults(templateName string) (Config, error)

type GenerateOpts

type GenerateOpts struct {
	RepositoryName string // e.g.: pulumi/pulumi-aws
	OutDir         string
	TemplateName   string // path inside templates, e.g.: bridged-provider
	Config         Config // .yaml file containing template config
}

Jump to

Keyboard shortcuts

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