metadata

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2015 License: Apache-2.0 Imports: 5 Imported by: 3

Documentation

Overview

Package metadata parses Chef cookbook metadata. It can currently retrieve the cookbook's name and version.

Index

Constants

View Source
const Filename = "metadata.rb"

Filename is the name of the cookbook file that stores metadata.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metadata

type Metadata struct {
	Name    string
	Version string
}

Metadata stores metadata about a cookbook.

func Parse

func Parse(r io.Reader) (*Metadata, error)

Parse parses cookbook metadata from an io.Reader. It returns Metadata.

func ParseFile

func ParseFile(name string) (*Metadata, error)

ParseFile parses a cookbook metadata file. It returns Metadata.

Jump to

Keyboard shortcuts

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