Documentation ¶
Index ¶
- Variables
- func BuildGVKGVRMap(config *rest.Config) map[schema.GroupVersionKind]schema.GroupVersionResource
- func ConvertLabel(labelSelector *metav1.LabelSelector) (labels.Selector, error)
- func GetAPIVersion(mapping *meta.RESTMapping) string
- func RebuildGVKGVRMap(config *rest.Config) map[schema.GroupVersionKind]schema.GroupVersionResource
- func StripVersion(gv string) string
- func TruncateString(str string, num int) string
Constants ¶
This section is empty.
Variables ¶
View Source
var (
GVKGVRMap map[schema.GroupVersionKind]schema.GroupVersionResource
)
Functions ¶
func BuildGVKGVRMap ¶
func BuildGVKGVRMap(config *rest.Config) map[schema.GroupVersionKind]schema.GroupVersionResource
BuildGVKGVRMap builds or returns a cached GVK to GVR map
func ConvertLabel ¶
func ConvertLabel(labelSelector *metav1.LabelSelector) (labels.Selector, error)
ConvertLabel converts a LabelSelector struct into a Selector interface
func GetAPIVersion ¶
func GetAPIVersion(mapping *meta.RESTMapping) string
GetAPIVersion returns the APIVersion from a RESTMapping
func RebuildGVKGVRMap ¶
func RebuildGVKGVRMap(config *rest.Config) map[schema.GroupVersionKind]schema.GroupVersionResource
RebuildGVKGVRMap builds a GVK to GVR map from scratch
func StripVersion ¶
StripVersion removes the version part of a GV
func TruncateString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.