manifest

package
v0.0.0-...-b6911f9 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2015 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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