Documentation ¶
Index ¶
- func GetAllTopControllersSummary(ctx context.Context, dynamicClient dynamic.Interface, ...) ([]unstructured.Unstructured, error)
- func GetPodSpec(yaml map[string]interface{}) interface{}
- func GetTopController(ctx context.Context, dynamicClient dynamic.Interface, ...) (unstructured.Unstructured, error)
- type Workload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAllTopControllersSummary ¶
func GetAllTopControllersSummary(ctx context.Context, dynamicClient dynamic.Interface, restMapper meta.RESTMapper, namespace string) ([]unstructured.Unstructured, error)
GetAllTopControllersSummary returns the highest level owning object of all pods and all of the pods. If a namespace is provided than this is limited to that namespace.
func GetPodSpec ¶
func GetPodSpec(yaml map[string]interface{}) interface{}
GetPodSpec looks inside arbitrary YAML for a PodSpec
func GetTopController ¶
func GetTopController(ctx context.Context, dynamicClient dynamic.Interface, restMapper meta.RESTMapper, unstructuredObject unstructured.Unstructured, objectCache map[string]unstructured.Unstructured) (unstructured.Unstructured, error)
GetTopController finds the highest level owner of whatever object is passed in.
Types ¶
type Workload ¶
type Workload struct { TopController unstructured.Unstructured Pods []unstructured.Unstructured }
Workload represents a workload in the cluster. It contains the top level object and all of the pods.
func GetAllTopControllers ¶
func GetAllTopControllers(ctx context.Context, dynamicClient dynamic.Interface, restMapper meta.RESTMapper, namespace string) ([]Workload, error)
GetAllTopControllers returns the highest level owning object of all pods. If a namespace is provided than this is limited to that namespace.
Click to show internal directories.
Click to hide internal directories.