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 parameterizertypes.K8sResourceT) (kind string, apiVersion string, name string, err error)
- func GetK8sResourcesWithPaths(k8sResourcesPath string) (map[string][]parameterizertypes.K8sResourceT, error)
- func GetSchema() *runtime.Scheme
- func Intersection(objs1 []runtime.Object, objs2 []runtime.Object) []runtime.Object
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 parameterizertypes.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][]parameterizertypes.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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.