top

Package codec provides a JSON/YAML codec for Manifests.

Usage:

// Decode one manifest from a JSON file.
man, err := JSON.Decode(b).One()
// Decode all of the manifests out of this file.
manifests, err := YAML.Decode(b).All()
err := YAML.Encode(filename).One("hello")
// Encode multiple objects to one file (as separate docs).
err := YAML.Encode(filename).All("one", "two", "three")

Imports 5 package(s) ΒΆ

  1. k8s.io/kubernetes/pkg/apis/extensions/v1beta1
  2. k8s.io/kubernetes/pkg/api
  3. github.com/ghodss/yaml
  4. k8s.io/kubernetes/pkg/api/v1
  5. k8s.io/kubernetes/pkg/api/unversioned