metadata

package
v0.0.0-...-ea980e2 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2015 License: Apache-2.0 Imports: 7 Imported by: 0

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

func FromRelease(r release) (*Metadata, error)

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.

Jump to

Keyboard shortcuts

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