converter

package
v0.0.0-...-43fc03f Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 15 Imported by: 3

Documentation

Overview

Package converter is responsible for converting the types registered with a k8s server to schemas which can be used by the UI (and other consumers) to discover the resources available and the current user's permissions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GVKToSchemaID

func GVKToSchemaID(gvk schema.GroupVersionKind) string

func GVKToVersionedSchemaID

func GVKToVersionedSchemaID(gvk schema.GroupVersionKind) string

func GVRToPluralName

func GVRToPluralName(gvr schema.GroupVersionResource) string

func GetGVKForKind

func GetGVKForKind(kind *proto.Kind) *schema.GroupVersionKind

GetGVKForKind attempts to retrieve a GVK for a given Kind. Not all kind represent top level resources, so this function may return nil if the kind did not have a gvk extension

func ToSchemas

ToSchemas creates the schemas for a K8s server, using client to discover groups/resources, and crd to potentially add additional information about new fields/resources. Mostly ties together addDiscovery and addCustomResources.

Types

This section is empty.

Jump to

Keyboard shortcuts

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