manifest

package
v0.0.0-...-916e759 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package manifest provides tools for working with Kubernetes manifests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Files

func Files(chartDir string) ([]string, error)

Files gets a list of all manifest files inside of a chart.

chartDir should contain the path to a chart (the directory which holds a Chart.yaml file).

This returns an error if it can't access the directory.

Types

type Manifest

type Manifest struct {
	Version, Kind, Name string
	// Filename of source, "" if no file
	Source          string
	VersionedObject *codec.Object
}

Manifest represents a Kubernetes manifest object.

func Parse

func Parse(filename string) ([]*Manifest, error)

Parse takes a filename, loads the file, and parses it into one or more *Manifest objects.

func ParseDir

func ParseDir(chartDir string) ([]*Manifest, error)

ParseDir parses all of the manifests inside of a chart directory.

The directory should be the Chart directory (contains Chart.yaml and manifests/)

This will return an error if the directory does not exist, or if there is an error parsing or decoding any yaml files.

Jump to

Keyboard shortcuts

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