Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MetadataFunc ¶
func MetadataFunc(discovery func() discovery.Plugins) func(string, ...interface{}) (interface{}, error)
MetadataFunc returns a template function to support metadata retrieval in templates. The function allows an additional parameter to set the value, provided the metadata plugin is not readonly (supports the metadata.Updatable spi). In the case of an update, the returned value is always an empty string, with error (can be nil). The behavior is the same as var function.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.