kubernetes/vendor/sigs.k8s.io/kustomize/kyaml/resid/gvk.go

type Gvk

func NewGvk(g, v, k string) Gvk {}

func GvkFromNode(r *yaml.RNode) Gvk {}

// FromKind makes a Gvk with only the kind specified.
func FromKind(k string) Gvk {}

// ParseGroupVersion parses a KRM metadata apiVersion field.
func ParseGroupVersion(apiVersion string) (group, version string) {}

// GvkFromString makes a Gvk from the output of Gvk.String().
func GvkFromString(s string) Gvk {}

const noGroup

const noVersion

const noKind

const fieldSep

// String returns a string representation of the GVK.
func (x Gvk) String() string {}

// stableSortString returns a GVK representation that ensures determinism and
// backwards-compatibility in testing, logging, ...
func (x Gvk) stableSortString() string {}

// ApiVersion returns the combination of Group and Version
func (x Gvk) ApiVersion() string {}

// StringWoEmptyField returns a string representation of the GVK. Non-exist
// fields will be omitted. This is called when generating a filename for the
// resource.
func (x Gvk) StringWoEmptyField() string {}

// Equals returns true if the Gvk's have equal fields.
func (x Gvk) Equals(o Gvk) bool {}

var orderFirst

var orderLast

var typeOrders

// IsLessThan returns true if self is less than the argument.
func (x Gvk) IsLessThan(o Gvk) bool {}

// IsSelected returns true if `selector` selects `x`; otherwise, false.
// If `selector` and `x` are the same, return true.
// If `selector` is nil, it is considered a wildcard match, returning true.
// If selector fields are empty, they are considered wildcards matching
// anything in the corresponding fields, e.g.
//
// this item:
//       <Group: "extensions", Version: "v1beta1", Kind: "Deployment">
//
// is selected by
//       <Group: "",           Version: "",        Kind: "Deployment">
//
// but rejected by
//       <Group: "apps",       Version: "",        Kind: "Deployment">
//
func (x Gvk) IsSelected(selector *Gvk) bool {}

// AsTypeMeta returns a yaml.TypeMeta from x's information.
func (x Gvk) AsTypeMeta() yaml.TypeMeta {}

// IsClusterScoped returns true if the Gvk is certainly cluster scoped
// with respect to the available openapi data.
func (x Gvk) IsClusterScoped() bool {}