resid

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseGroupVersion

func ParseGroupVersion(apiVersion string) (group, version string)

ParseGroupVersion parses a KRM metadata apiVersion field.

Types

type Gvk

type Gvk struct {
	Group   string `json:"group,omitempty" yaml:"group,omitempty"`
	Version string `json:"version,omitempty" yaml:"version,omitempty"`
	Kind    string `json:"kind,omitempty" yaml:"kind,omitempty"`
}

func GvkFromNode

func GvkFromNode(r *yaml.RNode) Gvk

func NewGvk

func NewGvk(g, v, k string) Gvk

func (Gvk) IsSelected

func (x Gvk) IsSelected(selector *Gvk) bool

type ResId

type ResId struct {
	Gvk      `json:",inline,omitempty" yaml:",inline,omitempty"`
	FileName string `json:"name,omitempty" yaml:"name,omitempty"`
}

func FromRNode

func FromRNode(rn *yaml.RNode) ResId

FromRNode returns the ResId for the RNode

func NewResId

func NewResId(k Gvk, f string) ResId

func (*ResId) IsSelectedBy

func (id *ResId) IsSelectedBy(selector ResId) bool

Jump to

Keyboard shortcuts

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