Documentation ¶
Index ¶
- func ConvertToLiasonScheme(obj runtime.Object) (newobj runtime.Object, err error)
- func ConvertToPodSpec(podspec *corev1.PodSpec) core.PodSpec
- func ConvertToPreferredVersion(obj runtime.Object, clusterSpec collecttypes.ClusterMetadataSpec) (newobj runtime.Object, err error)
- func ConvertToSupportedVersion(obj runtime.Object, clusterSpec collecttypes.ClusterMetadataSpec) (runtime.Object, error)
- func ConvertToV1PodSpec(podSpec *core.PodSpec) corev1.PodSpec
- func ConvertToVersion(obj runtime.Object, dgv schema.GroupVersion) (newobj runtime.Object, err error)
- func GetInfoFromK8sResource(k8sResource K8sResourceT) (kind string, apiVersion string, name string, err error)
- func GetK8sResourcesWithPaths(k8sResourcesPath string) (map[string][]K8sResourceT, error)
- func GetKubernetesObjsInDir(dir string) []runtime.Object
- func GetSchema() *runtime.Scheme
- func Intersection(objs1 []runtime.Object, objs2 []runtime.Object) []runtime.Object
- type K8sResourceT
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToLiasonScheme ¶
ConvertToLiasonScheme converts objects to liason type
func ConvertToPodSpec ¶
ConvertToPodSpec podspec to core pod spec
func ConvertToPreferredVersion ¶
func ConvertToPreferredVersion(obj runtime.Object, clusterSpec collecttypes.ClusterMetadataSpec) (newobj runtime.Object, err error)
ConvertToPreferredVersion converts obj to a preferred Version
func ConvertToSupportedVersion ¶
func ConvertToSupportedVersion(obj runtime.Object, clusterSpec collecttypes.ClusterMetadataSpec) (runtime.Object, error)
ConvertToSupportedVersion converts obj to a supported Version
func ConvertToV1PodSpec ¶
ConvertToV1PodSpec podspec to v1 pod spec
func ConvertToVersion ¶
func ConvertToVersion(obj runtime.Object, dgv schema.GroupVersion) (newobj runtime.Object, err error)
ConvertToVersion converts objects to a version
func GetInfoFromK8sResource ¶
func GetInfoFromK8sResource(k8sResource K8sResourceT) (kind string, apiVersion string, name string, err error)
GetInfoFromK8sResource returns some useful information given a k8s resource
func GetK8sResourcesWithPaths ¶
func GetK8sResourcesWithPaths(k8sResourcesPath string) (map[string][]K8sResourceT, error)
GetK8sResourcesWithPaths gets the k8s resources from a folder along with the relaive paths where they were found. Mutiple resources maybe specified in the same yaml file.
func GetKubernetesObjsInDir ¶
GetKubernetesObjsInDir returns returns all kubernetes objects in a dir
Types ¶
type K8sResourceT ¶
type K8sResourceT = map[string]interface{}
K8sResourceT represents type used to process K8s objects. Not using type alias breaks parameterizer currently.