wrappy

package
v0.6.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 19, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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 FromRNode

func FromRNode(node *yaml.RNode) *WNode

func NewWNode

func NewWNode() *WNode

func (*WNode) Copy

func (wn *WNode) Copy() ifc.Kunstructured

Copy implements ifc.Kunstructured.

func (*WNode) GetAnnotations

func (wn *WNode) GetAnnotations() map[string]string

GetAnnotations implements ifc.Kunstructured.

func (*WNode) GetFieldValue

func (wn *WNode) GetFieldValue(path string) (interface{}, error)

GetFieldValue implements ifc.Kunstructured.

func (*WNode) GetGvk

func (wn *WNode) GetGvk() resid.Gvk

GetGvk implements ifc.Kunstructured.

func (*WNode) GetKind

func (wn *WNode) GetKind() string

GetKind implements ifc.Kunstructured.

func (*WNode) GetLabels

func (wn *WNode) GetLabels() map[string]string

GetLabels implements ifc.Kunstructured.

func (*WNode) GetName

func (wn *WNode) GetName() string

GetName implements ifc.Kunstructured.

func (*WNode) GetSlice

func (wn *WNode) GetSlice(string) ([]interface{}, error)

GetSlice implements ifc.Kunstructured.

func (*WNode) GetString

func (wn *WNode) GetString(string) (string, error)

GetSlice implements ifc.Kunstructured.

func (*WNode) Map

func (wn *WNode) Map() map[string]interface{}

Map implements ifc.Kunstructured.

func (*WNode) MarshalJSON

func (wn *WNode) MarshalJSON() ([]byte, error)

MarshalJSON implements ifc.Kunstructured.

func (*WNode) MatchesAnnotationSelector

func (wn *WNode) MatchesAnnotationSelector(string) (bool, error)

MatchesAnnotationSelector implements ifc.Kunstructured.

func (*WNode) MatchesLabelSelector

func (wn *WNode) MatchesLabelSelector(string) (bool, error)

MatchesLabelSelector implements ifc.Kunstructured.

func (*WNode) SetAnnotations

func (wn *WNode) SetAnnotations(map[string]string)

SetAnnotations implements ifc.Kunstructured.

func (*WNode) SetGvk

func (wn *WNode) SetGvk(resid.Gvk)

SetGvk implements ifc.Kunstructured.

func (*WNode) SetLabels

func (wn *WNode) SetLabels(map[string]string)

SetLabels implements ifc.Kunstructured.

func (*WNode) SetName

func (wn *WNode) SetName(string)

SetName implements ifc.Kunstructured.

func (*WNode) SetNamespace

func (wn *WNode) SetNamespace(string)

SetNamespace implements ifc.Kunstructured.

func (*WNode) UnmarshalJSON

func (wn *WNode) UnmarshalJSON(data []byte) error

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL