Documentation
¶
Index ¶
- type Object
- func (o *Object) AddLabels(labels map[string]string)
- func (o *Object) GroupKind() schema.GroupKind
- func (o *Object) GroupVersionKind() schema.GroupVersionKind
- func (o *Object) JSON() ([]byte, error)
- func (o *Object) MutateContainers(fn func(map[string]interface{}) error) error
- func (o *Object) MutateInitContainers(fn func(map[string]interface{}) error) error
- func (o *Object) MutatePodSpec(fn func(map[string]interface{}) error) error
- func (o *Object) NestedStringMap(fields ...string) (map[string]string, bool, error)
- func (o *Object) SetNestedField(value interface{}, fields ...string) error
- func (o *Object) SetNestedFieldNoCopy(value interface{}, fields ...string) error
- func (o *Object) SetNestedSlice(value []interface{}, fields ...string) error
- func (o *Object) SetNestedStringMap(value map[string]string, fields ...string) error
- func (o *Object) UnstructuredObject() *unstructured.Unstructured
- type Objects
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Object ¶
type Object struct { Group string Kind string Name string // contains filtered or unexported fields }
func NewObject ¶
func NewObject(u *unstructured.Unstructured) (*Object, error)
func ParseJSONToObject ¶
func (*Object) GroupVersionKind ¶
func (o *Object) GroupVersionKind() schema.GroupVersionKind
func (*Object) MutateContainers ¶
func (*Object) MutateInitContainers ¶
func (*Object) MutatePodSpec ¶
func (*Object) NestedStringMap ¶
func (*Object) SetNestedField ¶
func (*Object) SetNestedFieldNoCopy ¶
func (*Object) SetNestedSlice ¶
func (*Object) SetNestedStringMap ¶
func (*Object) UnstructuredObject ¶
func (o *Object) UnstructuredObject() *unstructured.Unstructured
UnstructuredContent exposes the raw object, primarily for testing
type Objects ¶
type Objects struct {
Items []*Object
}
Objects holds a collection of objects, so that we can filter / sequence them
func (*Objects) JSONManifest ¶
func (*Objects) Patch ¶
func (objects *Objects) Patch(patches []*unstructured.Unstructured) error
Click to show internal directories.
Click to hide internal directories.