ngvk

package
v1.17.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 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 NGVK

type NGVK struct {
	// contains filtered or unexported fields
}

NGVK is a Key object type that represent a uniq object key based on GroupVersion Kind and Name

func New

func New(obj client.Object) (*NGVK, error)

New Creates a new NGVK type and return its pointer

func (NGVK) Equal

func (ngvk NGVK) Equal(cmp NGVK) bool

Equal compares to NGVK types

func (NGVK) IsFor

func (ngvk NGVK) IsFor(obj client.Object) bool

IsFor Tells if the object has the same NGVK

func (NGVK) KN

func (ngvk NGVK) KN() string

KN return the string composition of Kind/Name for the resource

func (NGVK) NamespacedName

func (ngvk NGVK) NamespacedName() types.NamespacedName

NamespacedName Returns the Name part ("N") of the NGVK type

func (NGVK) String

func (ngvk NGVK) String() string

String builds an key string based on GroupVersion Kind and Name (NGVK)

Jump to

Keyboard shortcuts

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