Documentation ¶
Index ¶
- func DryRunCreate(objBytes []byte, namespace string) ([]byte, error)
- func GetAPIResources() ([]metav1.APIResource, error)
- func GetApplyPatchBytes(manifestBytes []byte, objNamespace string) ([]byte, []byte, error)
- func GetInClusterConfig() (*rest.Config, error)
- func GetKubeConfig() (*rest.Config, error)
- func GetOutOfClusterConfig() (*rest.Config, error)
- func GetResource(apiVersion, kind, namespace, name string) (*unstructured.Unstructured, error)
- func IsInCluster() bool
- func ListResources(apiVersion, kind, namespace string) ([]*unstructured.Unstructured, error)
- func MatchLabels(obj metav1.Object, labelSelector *metav1.LabelSelector) (bool, error)
- func SetKubeConfig(conf *rest.Config)
- func StrategicMergePatch(objBytes, patchBytes []byte, namespace string) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAPIResources ¶
func GetAPIResources() ([]metav1.APIResource, error)
func GetApplyPatchBytes ¶
func GetInClusterConfig ¶
func GetKubeConfig ¶
func GetOutOfClusterConfig ¶
func GetResource ¶
func GetResource(apiVersion, kind, namespace, name string) (*unstructured.Unstructured, error)
func IsInCluster ¶
func IsInCluster() bool
func ListResources ¶
func ListResources(apiVersion, kind, namespace string) ([]*unstructured.Unstructured, error)
func MatchLabels ¶
func SetKubeConfig ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.