tree

package
v1.5.14-0...-e6cd0ce Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Common

type Common struct {
	Kind string `json:"kind" yaml:"kind"`
	// Don't access X_Version, it is only exported for (de-)serialization. Use Version and OverwriteVersion methods instead.
	X_Version string `json:"version,omitempty" yaml:"version,omitempty"`
	// Don't access X_ApiVersion, it is only exported for (de-)serialization. Use Version and OverwriteVersion methods instead.
	X_ApiVersion string `json:"apiVersion,omitempty" yaml:"apiVersion,omitempty"`
}

func NewCommon

func NewCommon(kind, version string, isKubernetesResource bool) *Common

func (*Common) OverwriteVersion

func (c *Common) OverwriteVersion(v string)

func (*Common) Version

func (c *Common) Version() string

type Tree

type Tree struct {
	Common   *Common `yaml:",inline"`
	Original *yaml.Node
	Parsed   interface{} `yaml:",inline"`
}

func (*Tree) MarshalYAML

func (c *Tree) MarshalYAML() (interface{}, error)

func (*Tree) UnmarshalYAML

func (c *Tree) UnmarshalYAML(node *yaml.Node) error

Jump to

Keyboard shortcuts

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