Documentation ¶
Overview ¶
Package lastditch provides fallback redefinitions of parts of schemas provided by schema package.
Almost no validation of schemas is done (besides checking if data really is `JSON`-encoded and kind is either `ImageManifest` or `PodManifest`. This is to get as much data as possible from an invalid manifest. The main aim of the package is to be used for the better error reporting. The another aim might be to force some operation (like removing a pod), which would otherwise fail because of an invalid manifest.
To avoid validation during deserialization, types provided by this package use plain strings.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppList ¶
type AppList []RuntimeApp
type ImageManifest ¶
type ImageManifest struct { ACVersion string `json:"acVersion"` ACKind string `json:"acKind"` Name string `json:"name"` Labels Labels `json:"labels,omitempty"` }
func (*ImageManifest) UnmarshalJSON ¶
func (im *ImageManifest) UnmarshalJSON(data []byte) error
type PodManifest ¶
type PodManifest struct { ACVersion string `json:"acVersion"` ACKind string `json:"acKind"` Apps AppList `json:"apps"` }
func (*PodManifest) UnmarshalJSON ¶
func (pm *PodManifest) UnmarshalJSON(data []byte) error
type RuntimeApp ¶
type RuntimeApp struct { Name string `json:"name"` Image RuntimeImage `json:"image"` }
type RuntimeImage ¶
Click to show internal directories.
Click to hide internal directories.