Documentation ¶
Index ¶
- Variables
- func ExtractMapFromRawExtension(data *runtime.RawExtension) (map[string]interface{}, error)
- func GetApplicationByLabels(clientset *GenericClientset, namespace string, labels map[string]string) (*v1beta1.Application, error)
- func GetDeploymentsByLabels(clientset *kubernetes.Clientset, namespace string, labels map[string]string) ([]k8sV1.Deployment, error)
- func GetServicesByLabels(clientset *GenericClientset, namespace string, labels map[string]string) ([]corev1.Service, error)
- func GetStatefulSetByLabels(clientset *kubernetes.Clientset, namespace string, labels map[string]string) ([]k8sV1.StatefulSet, error)
- type GenericClientset
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrApplicationNotFound = errors.New("application not found") ErrServiceNotFound = errors.New("service not found") )
Functions ¶
func ExtractMapFromRawExtension ¶
func ExtractMapFromRawExtension(data *runtime.RawExtension) (map[string]interface{}, error)
func GetApplicationByLabels ¶
func GetApplicationByLabels(clientset *GenericClientset, namespace string, labels map[string]string) (*v1beta1.Application, error)
func GetDeploymentsByLabels ¶
func GetDeploymentsByLabels(clientset *kubernetes.Clientset, namespace string, labels map[string]string) ([]k8sV1.Deployment, error)
func GetServicesByLabels ¶
func GetStatefulSetByLabels ¶
func GetStatefulSetByLabels(clientset *kubernetes.Clientset, namespace string, labels map[string]string) ([]k8sV1.StatefulSet, error)
Types ¶
type GenericClientset ¶
type GenericClientset struct { Conure *oam_conure.Clientset K8s *kubernetes.Clientset Vela *coreOAMDevClientset.Clientset Dynamic *dynamic.DynamicClient Config *rest.Config }
func GetClientset ¶
func GetClientset() (*GenericClientset, error)
Click to show internal directories.
Click to hide internal directories.