kubernetes/vendor/sigs.k8s.io/kustomize/kyaml/yaml/types.go

// CopyYNode returns a distinct copy of its argument.
// Use https://github.com/jinzhu/copier instead?
func CopyYNode(n *yaml.Node) *yaml.Node {}

// IsYNodeTaggedNull returns true if the node is explicitly tagged Null.
func IsYNodeTaggedNull(n *yaml.Node) bool {}

// IsYNodeEmptyMap is true if the Node is a non-nil empty map.
func IsYNodeEmptyMap(n *yaml.Node) bool {}

// IsYNodeEmptySeq is true if the Node is a non-nil empty sequence.
func IsYNodeEmptySeq(n *yaml.Node) bool {}

// IsYNodeNilOrEmpty is true if the Node is nil or appears empty.
func IsYNodeNilOrEmpty(n *yaml.Node) bool {}

// IsYNodeEmptyDoc is true if the node is a Document with no content.
// E.g.: "---\n---"
func IsYNodeEmptyDoc(n *yaml.Node) bool {}

func IsYNodeString(n *yaml.Node) bool {}

// IsYNodeZero is true if all the public fields in the Node are empty.
// Which means it's not initialized and should be omitted when marshal.
// The Node itself has a method IsZero but it is not released
// in yaml.v3. https://pkg.go.dev/gopkg.in/yaml.v3#Node.IsZero
func IsYNodeZero(n *yaml.Node) bool {}

type Parser

func (p Parser) Filter(_ *RNode) (*RNode, error) {}

// TODO(pwittrock): test this
func GetStyle(styles ...string) Style {}

type Filter

type FilterFunc

func (f FilterFunc) Filter(object *RNode) (*RNode, error) {}

type TypeMeta

type NameMeta

type ResourceMeta

type ObjectMeta

// GetIdentifier returns a ResourceIdentifier that includes
// the information needed to uniquely identify a resource in a cluster.
func (m *ResourceMeta) GetIdentifier() ResourceIdentifier {}

type ResourceIdentifier

type Comments

func (r *ResourceIdentifier) GetName() string {}

func (r *ResourceIdentifier) GetNamespace() string {}

func (r *ResourceIdentifier) GetAPIVersion() string {}

func (r *ResourceIdentifier) GetKind() string {}

const Trim

const Flow

// String returns a string value for a Node, applying the supplied formatting options
func String(node *yaml.Node, opts ...string) (string, error) {}

type MergeOptionsListIncreaseDirection

const MergeOptionsListAppend

const MergeOptionsListPrepend

type MergeOptions

// DeepCopyInto copies the receiver, writing into out. in must be non-nil.
func (in *ObjectMeta) DeepCopyInto(out *ObjectMeta) {}

// DeepCopy copies the receiver, creating a new ObjectMeta.
func (in *ObjectMeta) DeepCopy() *ObjectMeta {}

// DeepCopyInto copies the receiver, writing into out. in must be non-nil.
func (in *ResourceMeta) DeepCopyInto(out *ResourceMeta) {}

// DeepCopy copies the receiver, creating a new ResourceMeta.
func (in *ResourceMeta) DeepCopy() *ResourceMeta {}