Documentation ¶
Index ¶
- type List
- type Manifest
- func (m Manifest) APIVersion() string
- func (m Manifest) Kind() string
- func (m Manifest) Metadata() Metadata
- func (m Manifest) String() string
- func (m *Manifest) UnmarshalJSON(data []byte) error
- func (m *Manifest) UnmarshalYAML(unmarshal func(interface{}) error) error
- func (m Manifest) Verify() error
- type Metadata
- type SchemaError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manifest ¶
type Manifest map[string]interface{}
Manifest represents a Kubernetes API object. The fields `apiVersion` and `kind` are required, `metadata.name` should be present as well
func NewFromObj ¶
NewFromObj creates a new Manifest from an objx.Map
func (Manifest) APIVersion ¶
APIVersion returns the version of the API this object uses
func (*Manifest) UnmarshalJSON ¶
UnmarshalJSON validates the Manifest during json parsing
func (*Manifest) UnmarshalYAML ¶
UnmarshalYAML validates the Manifest during yaml parsing
type Metadata ¶
type Metadata map[string]interface{}
Metadata is the metadata object from the Manifest
func (Metadata) Annotations ¶
Annotations of the manifest
func (Metadata) HasAnnotations ¶
HasAnnotations returns whether the manifest has annotations
func (Metadata) HasNamespace ¶
HasNamespace returns whether the manifest has a namespace set
type SchemaError ¶
type SchemaError struct {
// contains filtered or unexported fields
}
SchemaError means that some expected fields were missing
func (*SchemaError) Error ¶
func (s *SchemaError) Error() string
Error returns the fields the manifest at the path is missing
func (*SchemaError) Missing ¶
func (s *SchemaError) Missing(field string) bool
Missing returns whether a field is missing
func (*SchemaError) WithName ¶
func (s *SchemaError) WithName(name string) *SchemaError
WithName inserts a path into the error message