Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dependency ¶
type Dependency struct { Name string `json:"name"` VersionRequirement string `json:"version_requirement"` }
Dependency represents an entry under the dependencies field of the Metadata type.
type Metadata ¶
type Metadata struct { Name string `json:"name"` Version string `json:"version"` Dependencies []Dependency `json:"dependencies"` }
Metadata is the top-level object contained within a Puppet module's metadata.json.
func FromRelease ¶
FromRelease takes a release object and returns an instance of Metadata containing the values found in the module's metadata.json.
An error will be returned if an issue is encountered while loading the file, but an empty Metadata object will be returned if no metadata.json was found.
Click to show internal directories.
Click to hide internal directories.