Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GVKTranslator ¶
type GVKTranslator struct {
// contains filtered or unexported fields
}
GVKTranslator translates a given GroupVersionKind into a GroupVersionResource, using a RESTMapper.
func NewGVKTranslator ¶
func NewGVKTranslator(cfg *rest.Config) *GVKTranslator
NewGVKTranslator returns a GVKTranslator that can translate a given GroupVersionKind into the corresponding GroupVersionResource, using a RESTMapper.
func (*GVKTranslator) Get ¶
func (t *GVKTranslator) Get(gvk *schema.GroupVersionKind) (*schema.GroupVersionResource, error)
Get returns the corresponding GroupVersionResource for the given GroupVersionKind.
Click to show internal directories.
Click to hide internal directories.