Documentation
¶
Index ¶
Constants ¶
View Source
const ( // ManifestVersionKey is the string indicating a manifest's version. ManifestVersionKey = "version" // ManifestKindKey is the string indicating a manifest's kind. ManifestKindKey = "kind" // ManifestSpecKey is represents a manifest's spec. ManifestSpecKey = "spec" // ManifestDeprecatedKey is represents the deprected v1alpha1 manifest. ManifestDeprecatedKey = "machine" )
Variables ¶
View Source
var ( // ErrMissingVersion indicates that the manifest is missing a version. ErrMissingVersion = errors.New("missing version") // ErrMissingKind indicates that the manifest is missing a kind. ErrMissingKind = errors.New("missing kind") // ErrMissingSpec indicates that the manifest is missing a spec. ErrMissingSpec = errors.New("missing spec") // ErrMissingSpecConent indicates that the manifest spec is empty. ErrMissingSpecConent = errors.New("missing spec content") )
Functions ¶
This section is empty.
Types ¶
type Decoder ¶
type Decoder struct {
// contains filtered or unexported fields
}
Decoder represents a multi-doc YAML decoder.
func NewDecoder ¶
NewDecoder initializes and returns a `Decoder`.
Click to show internal directories.
Click to hide internal directories.