Documentation
¶
Overview ¶
Package resolver provides functionality for looking up resource metadata definitions using a resource kind or alias.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Resource ¶
type Resource struct {
APIVersion string `yaml:"apiVersion"`
Kind string `yaml:"kind"`
Aliases []string `yaml:"aliases"`
Namespaced bool `yaml:"namespaced"`
References []struct {
Kind string `yaml:"kind"`
Paths []string `yaml:"paths"`
} `yaml:"references"`
}
Resource is a metadata definition for a single kind.
func LookupAlias ¶
LookupAlias returns Resource metadata definitions that match the given alias. For example, this could resolve the string "po" to a Pod metadata definition.
This function returns a Resource list since there might be multiple kinds with overlapping aliases.
func LookupKind ¶
LookupKind returns the Resource metadata definition using the given kind. Meant to be used with a kind taken directly from an actual manifest.
Click to show internal directories.
Click to hide internal directories.