Documentation ¶
Index ¶
- type NoFieldError
- type WNode
- func (wn *WNode) AsRNode() *yaml.RNode
- func (wn *WNode) Copy() ifc.Kunstructured
- func (wn *WNode) GetAnnotations() map[string]string
- func (wn *WNode) GetBinaryDataMap() map[string]string
- func (wn *WNode) GetDataMap() 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(path string) ([]interface{}, error)
- func (wn *WNode) GetString(path string) (string, error)
- func (wn *WNode) Map() (map[string]interface{}, error)
- func (wn *WNode) MarshalJSON() ([]byte, error)
- func (wn *WNode) MatchesAnnotationSelector(selector string) (bool, error)
- func (wn *WNode) MatchesLabelSelector(selector string) (bool, error)
- func (wn *WNode) SetAnnotations(annotations map[string]string)
- func (wn *WNode) SetBinaryDataMap(m map[string]string)
- func (wn *WNode) SetDataMap(m map[string]string)
- func (wn *WNode) SetGvk(gvk resid.Gvk)
- func (wn *WNode) SetLabels(labels map[string]string)
- func (wn *WNode) SetName(name string)
- func (wn *WNode) SetNamespace(ns 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(ldr ifc.KvLoader, args *types.ConfigMapArgs) (ifc.Kunstructured, error)
- func (k *WNodeFactory) MakeSecret(ldr 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 NoFieldError ¶ added in v0.6.5
type NoFieldError struct {
Field string
}
func (NoFieldError) Error ¶ added in v0.6.5
func (e NoFieldError) Error() string
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) GetBinaryDataMap ¶ added in v0.8.1
GetBinaryDataMap implements ifc.Kunstructured.
func (*WNode) GetDataMap ¶ added in v0.6.8
GetDataMap 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) SetBinaryDataMap ¶ added in v0.8.1
SetBinaryDataMap implements ifc.Kunstructured.
func (*WNode) SetDataMap ¶ added in v0.6.8
SetDataMap 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.
This implementation should be thin, as both WNode and WNodeFactory must be factored away (deleted) along with ifc.Kunstructured in favor of direct use of RNode methods upon completion of https://github.com/kubernetes-sigs/kustomize/issues/2506.
See also api/krusty/internal/provider/depprovider.go
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( ldr ifc.KvLoader, args *types.ConfigMapArgs) (ifc.Kunstructured, error)
MakeConfigMap makes a wrapped configmap.
func (*WNodeFactory) MakeSecret ¶
func (k *WNodeFactory) MakeSecret( ldr ifc.KvLoader, args *types.SecretArgs) (ifc.Kunstructured, error)
MakeSecret makes a wrapped secret.
func (*WNodeFactory) SliceFromBytes ¶
func (k *WNodeFactory) SliceFromBytes(bs []byte) ([]ifc.Kunstructured, error)