Documentation ¶
Index ¶
- func GetConfigMap(ns, name string, cl client.Client) (*corev1.ConfigMap, bool, error)
- func GetDeployment(ns, name string, cl client.Client) (*appsv1.Deployment, bool, error)
- func GetIngress(ns, name string, cl client.Client) (*extensionsv1beta1.Ingress, bool, error)
- func GetJob(ns, name string, cl client.Client) (*batchv1.Job, bool, error)
- func GetNamespace(ns string, cl client.Client) (*corev1.Namespace, bool, error)
- func GetPod(ns, name string, cl client.Client) (*corev1.Pod, bool, error)
- func GetResourceInCache(ns, name string, obj client.Object, cl client.Reader) (bool, error)
- func GetResourceJSONInCache(ns, name string, gvk schema.GroupVersionKind, cl client.Reader) ([]byte, bool, error)
- func GetResourceYamlInCache(ns, name string, gvk schema.GroupVersionKind, cl client.Reader) ([]byte, bool, error)
- func GetRole(ns, name string, cl client.Client) (*rbacv1beta1.Role, bool, error)
- func GetRoleBinding(ns, name string, cl client.Client) (*rbacv1beta1.RoleBinding, bool, error)
- func GetSecret(ns, name string, cl client.Client) (*corev1.Secret, bool, error)
- func GetService(ns, name string, cl client.Client) (*corev1.Service, bool, error)
- func GetServiceAccount(ns, name string, cl client.Client) (*corev1.ServiceAccount, bool, error)
- func GetStatefulSet(ns, name string, cl client.Client) (*appsv1.StatefulSet, bool, error)
- func ListConfigMaps(ns string, selector labels.Selector, cl client.Client) ([]*corev1.ConfigMap, error)
- func ListConfigMapsYaml(ns string, selector labels.Selector, cl client.Client) ([][]byte, error)
- func ListDeployments(ns string, selector labels.Selector, cl client.Client) ([]*appsv1.Deployment, error)
- func ListDeploymentsYaml(ns string, selector labels.Selector, cl client.Client) ([][]byte, error)
- func ListEvents(ns string, selector fields.Selector, cl client.Reader) ([]*corev1.Event, error)
- func ListIngresses(ns string, selector labels.Selector, cl client.Client) ([]*extensionsv1beta1.Ingress, error)
- func ListIngressesYaml(ns string, selector labels.Selector, cl client.Client) ([][]byte, error)
- func ListJobs(ns string, selector labels.Selector, cl client.Client) ([]*batchv1.Job, error)
- func ListNamespaces(cl client.Reader) ([]*corev1.Namespace, error)
- func ListNodes(cl client.Client) ([]*corev1.Node, error)
- func ListPods(ns string, selector labels.Selector, cl client.Client) ([]*corev1.Pod, error)
- func ListResourceInCache(ns string, selector labels.Selector, fieldSelector fields.Selector, ...) error
- func ListResourceJSONInCache(ns string, selector labels.Selector, fieldSelector fields.Selector, ...) ([][]byte, error)
- func ListResourceYamlInCache(ns string, selector labels.Selector, fieldSelector fields.Selector, ...) ([][]byte, error)
- func ListServices(ns string, selector labels.Selector, cl client.Client) ([]*corev1.Service, error)
- func ListServicesYaml(ns string, selector labels.Selector, cl client.Client) ([][]byte, error)
- func ListStatefulSets(ns string, selector labels.Selector, cl client.Client) ([]*appsv1.StatefulSet, error)
- func ListStatefulSetsYaml(ns string, selector labels.Selector, cl client.Client) ([][]byte, error)
- func ListUnstructuredResourceInCache(ns string, selector labels.Selector, fieldSelector fields.Selector, ...) ([]*unstructured.Unstructured, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConfigMap ¶
func GetDeployment ¶
func GetIngress ¶
func GetResourceInCache ¶
GetResourceInCache gets a specific Kubernetes object in local cache, object can be any types which are registered by "scheme.AddToScheme()". Return true if object is found, false if not, or an error if something bad happened.
func GetResourceJSONInCache ¶
func GetResourceJSONInCache(ns, name string, gvk schema.GroupVersionKind, cl client.Reader) ([]byte, bool, error)
GetResourceJSONInCache gets a specific Kubernetes object in local cache, and return a representation in json format. Return true if object is found, false if not, or an error if something bad happened.
func GetResourceYamlInCache ¶
func GetResourceYamlInCache(ns, name string, gvk schema.GroupVersionKind, cl client.Reader) ([]byte, bool, error)
GetResourceYamlInCache gets a specific Kubernetes object in local cache, and return a representation in yaml format. Return true if object is found, false if not, or an error if something bad happened.
func GetRoleBinding ¶
func GetRoleBinding(ns, name string, cl client.Client) (*rbacv1beta1.RoleBinding, bool, error)
func GetServiceAccount ¶
func GetStatefulSet ¶
func ListConfigMaps ¶
func ListConfigMapsYaml ¶
func ListDeployments ¶
func ListDeploymentsYaml ¶
func ListEvents ¶
func ListIngresses ¶
func ListIngressesYaml ¶
func ListResourceInCache ¶
func ListResourceInCache(ns string, selector labels.Selector, fieldSelector fields.Selector, obj client.ObjectList, cl client.Reader) error
ListResourceInCache gets a set of specific Kubernetes object in local cache, object can be any types which are registered by "scheme.AddToScheme()". Important: fieldSelector must be nil or contain just one kv pair, otherwise, controller-runtime will return error.
func ListResourceJSONInCache ¶
func ListResourceJSONInCache(ns string, selector labels.Selector, fieldSelector fields.Selector, gvk schema.GroupVersionKind, cl client.Reader) ([][]byte, error)
ListResourceJSONInCache gets a set of specific Kubernetes object in local cache, and return a representation in json format.
func ListResourceYamlInCache ¶
func ListResourceYamlInCache(ns string, selector labels.Selector, fieldSelector fields.Selector, gvk schema.GroupVersionKind, cl client.Reader) ([][]byte, error)
ListResourceYamlInCache gets a set of specific Kubernetes object in local cache, and return a representation in yaml format.
func ListServices ¶
func ListServicesYaml ¶
func ListStatefulSets ¶
func ListStatefulSetsYaml ¶
func ListUnstructuredResourceInCache ¶
func ListUnstructuredResourceInCache(ns string, selector labels.Selector, fieldSelector fields.Selector, gvk schema.GroupVersionKind, cl client.Reader) ([]*unstructured.Unstructured, error)
ListUnstructuredResourceInCache gets a set of specific Kubernetes object in local cache, and return a representation in yaml format.
Types ¶
This section is empty.