Documentation ¶
Index ¶
- type WNode
- func (wn *WNode) Copy() ifc.Kunstructured
- func (wn *WNode) GetAnnotations() map[string]string
- func (wn *WNode) GetFieldValue(path string) (interface{}, error)
- func (wn *WNode) GetGvk() resid.Gvk
- func (wn *WNode) GetKind() string
- func (wn *WNode) GetLabels() map[string]string
- func (wn *WNode) GetName() string
- func (wn *WNode) GetSlice(string) ([]interface{}, error)
- func (wn *WNode) GetString(string) (string, error)
- func (wn *WNode) Map() map[string]interface{}
- func (wn *WNode) MarshalJSON() ([]byte, error)
- func (wn *WNode) MatchesAnnotationSelector(string) (bool, error)
- func (wn *WNode) MatchesLabelSelector(string) (bool, error)
- func (wn *WNode) SetAnnotations(map[string]string)
- func (wn *WNode) SetGvk(resid.Gvk)
- func (wn *WNode) SetLabels(map[string]string)
- func (wn *WNode) SetName(string)
- func (wn *WNode) SetNamespace(string)
- func (wn *WNode) UnmarshalJSON(data []byte) error
- type WNodeFactory
- func (k *WNodeFactory) FromMap(m map[string]interface{}) ifc.Kunstructured
- func (k *WNodeFactory) Hasher() ifc.KunstructuredHasher
- func (k *WNodeFactory) MakeConfigMap(kvLdr ifc.KvLoader, args *types.ConfigMapArgs) (ifc.Kunstructured, error)
- func (k *WNodeFactory) MakeSecret(kvLdr ifc.KvLoader, args *types.SecretArgs) (ifc.Kunstructured, error)
- func (k *WNodeFactory) SliceFromBytes(bs []byte) ([]ifc.Kunstructured, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WNode ¶
type WNode struct {
// contains filtered or unexported fields
}
WNode implements ifc.Kunstructured using yaml.RNode.
It exists only to help manage a switch from kunstruct.UnstructAdapter to yaml.RNode as the core representation of KRM objects in kustomize.
It's got a silly name because we don't want it around for long, and want its use to be obvious.
func (*WNode) GetAnnotations ¶
GetAnnotations implements ifc.Kunstructured.
func (*WNode) GetFieldValue ¶
GetFieldValue implements ifc.Kunstructured.
func (*WNode) MarshalJSON ¶
MarshalJSON implements ifc.Kunstructured.
func (*WNode) MatchesAnnotationSelector ¶
MatchesAnnotationSelector implements ifc.Kunstructured.
func (*WNode) MatchesLabelSelector ¶
MatchesLabelSelector implements ifc.Kunstructured.
func (*WNode) SetAnnotations ¶
SetAnnotations implements ifc.Kunstructured.
func (*WNode) SetNamespace ¶
SetNamespace implements ifc.Kunstructured.
func (*WNode) UnmarshalJSON ¶
UnmarshalJSON implements ifc.Kunstructured.
type WNodeFactory ¶
type WNodeFactory struct { }
WNodeFactory makes instances of WNode. These instances in turn adapt
sigs.k8s.io/kustomize/kyaml/yaml.RNode
to implement ifc.Unstructured. This factory is meant to implement ifc.KunstructuredFactory.
func (*WNodeFactory) FromMap ¶
func (k *WNodeFactory) FromMap(m map[string]interface{}) ifc.Kunstructured
func (*WNodeFactory) Hasher ¶
func (k *WNodeFactory) Hasher() ifc.KunstructuredHasher
func (*WNodeFactory) MakeConfigMap ¶
func (k *WNodeFactory) MakeConfigMap( kvLdr ifc.KvLoader, args *types.ConfigMapArgs) (ifc.Kunstructured, error)
func (*WNodeFactory) MakeSecret ¶
func (k *WNodeFactory) MakeSecret( kvLdr ifc.KvLoader, args *types.SecretArgs) (ifc.Kunstructured, error)
func (*WNodeFactory) SliceFromBytes ¶
func (k *WNodeFactory) SliceFromBytes(bs []byte) ([]ifc.Kunstructured, error)