Documentation ¶
Index ¶
- Constants
- func DryRunCreate(objBytes []byte, namespace string) ([]byte, error)
- func GetAPIResources() ([]metav1.APIResource, error)
- func GetAllPodsFromObject(obj *unstructured.Unstructured) ([]*corev1.Pod, error)
- func GetApplyPatchBytes(manifestBytes []byte, objNamespace string) ([]byte, []byte, error)
- func GetInClusterConfig() (*rest.Config, error)
- func GetKubeConfig() (*rest.Config, error)
- func GetNamespaces() ([]*corev1.Namespace, error)
- func GetOutOfClusterConfig() (*rest.Config, error)
- func GetResource(apiVersion, kind, namespace, name string) (*unstructured.Unstructured, error)
- func GetSecret(namespace, name string) (*corev1.Secret, error)
- func IsInCluster() bool
- func ListResources(apiVersion, kind, namespace string) ([]*unstructured.Unstructured, error)
- func MatchLabels(obj metav1.Object, labelSelector *metav1.LabelSelector) (bool, error)
- func ParseObjectRefInCluster(objRef string) (string, string, error)
- func ParseObjectRefInClusterWithKind(objRef string) (string, string, string, error)
- func SetKubeConfig(conf *rest.Config)
- func StrategicMergePatch(objBytes, patchBytes []byte, namespace string) ([]byte, error)
- type ImageObject
Constants ¶
View Source
const InClusterObjectPrefix = "k8s://"
Variables ¶
This section is empty.
Functions ¶
func GetAPIResources ¶
func GetAPIResources() ([]metav1.APIResource, error)
func GetAllPodsFromObject ¶
func GetAllPodsFromObject(obj *unstructured.Unstructured) ([]*corev1.Pod, error)
func GetApplyPatchBytes ¶
func GetInClusterConfig ¶
func GetKubeConfig ¶
func GetNamespaces ¶
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 ParseObjectRefInCluster ¶ added in v0.3.0
func ParseObjectRefInClusterWithKind ¶ added in v0.3.0
func SetKubeConfig ¶
Types ¶
type ImageObject ¶
type ImageObject struct { PodName string ContainerName string ImageID string ResourceBundleRef string Digest string }
func GetAllImagesFromObject ¶
func GetAllImagesFromObject(obj *unstructured.Unstructured) ([]ImageObject, error)
Click to show internal directories.
Click to hide internal directories.