Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SmartPathFactories map[px.PathType]SmartPathFactory = map[px.PathType]SmartPathFactory{ px.PuppetDataTypePath: newPuppetTypePath, }
View Source
var StaticLoader = &basicLoader{namedEntries: make(map[string]px.LoaderEntry, 64)}
Functions ¶
func InstantiatePuppetType ¶
func InstantiatePuppetType(ctx px.Context, loader ContentProvidingLoader, tn px.TypedName, sources []string)
InstantiatePuppetType reads the contents a puppet manifest file and parses it using the types.Parse() function.
Types ¶
type ContentProvidingLoader ¶
type Instantiator ¶
type SmartPath ¶
type SmartPath interface { Loader() px.Loader GenericPath() string EffectivePath(name px.TypedName) string Extension() string RelativePath() string Namespaces() []px.Namespace IsMatchMany() bool PreferredOrigin(i []string) string TypedNames(nameAuthority px.URI, relativePath string) []px.TypedName Instantiator() Instantiator Indexed() bool SetIndexed() }
func NewSmartPath ¶
func NewSmartPath(relativePath, extension string, loader px.ModuleLoader, namespaces []px.Namespace, moduleNameRelative, matchMany bool, instantiator Instantiator) SmartPath
type SmartPathFactory ¶
type SmartPathFactory func(loader px.ModuleLoader, moduleNameRelative bool) SmartPath
Click to show internal directories.
Click to hide internal directories.