Documentation ¶
Index ¶
- Constants
- func DeleteEmpty(s []string) []string
- func FindGVR(gvk *schema.GroupVersionKind, dc discovery.DiscoveryInterface) (*meta.RESTMapping, error)
- func IsNodeReady(n corev1.Node) bool
- func PathToOSFile(relativePath string) (*os.File, error)
- type K8sUnstructuredResource
- func GetMultipleResourcesFromYaml(path string, dc discovery.DiscoveryInterface, args interface{}) ([]K8sUnstructuredResource, error)
- func GetResourceFromString(resourceString string, dc discovery.DiscoveryInterface, args interface{}) (K8sUnstructuredResource, error)
- func GetResourceFromYaml(path string, dc discovery.DiscoveryInterface, args interface{}) (K8sUnstructuredResource, error)
Constants ¶
View Source
const TrimTokens = "\n "
View Source
const YamlSeparator = "\n---"
Variables ¶
This section is empty.
Functions ¶
func DeleteEmpty ¶
func FindGVR ¶
func FindGVR(gvk *schema.GroupVersionKind, dc discovery.DiscoveryInterface) (*meta.RESTMapping, error)
find the corresponding GVR (available in *meta.RESTMapping) for gvk
func IsNodeReady ¶
Types ¶
type K8sUnstructuredResource ¶ added in v0.2.0
type K8sUnstructuredResource struct { GVR *meta.RESTMapping Resource *unstructured.Unstructured }
func GetMultipleResourcesFromYaml ¶ added in v0.2.0
func GetMultipleResourcesFromYaml(path string, dc discovery.DiscoveryInterface, args interface{}) ([]K8sUnstructuredResource, error)
func GetResourceFromString ¶ added in v0.2.0
func GetResourceFromString(resourceString string, dc discovery.DiscoveryInterface, args interface{}) (K8sUnstructuredResource, error)
func GetResourceFromYaml ¶
func GetResourceFromYaml(path string, dc discovery.DiscoveryInterface, args interface{}) (K8sUnstructuredResource, error)
Click to show internal directories.
Click to hide internal directories.