Documentation ¶
Index ¶
- func DumpLog(ctx context.Context, client kubernetes.Interface, pod *corev1.Pod, ...) (string, error)
- func Print(ctx context.Context, cmd *cobra.Command, client kubernetes.Interface, ...) error
- func PrintUsingSelector(ctx context.Context, cmd *cobra.Command, client kubernetes.Interface, ...) error
- type PodScraper
- type SelectorScraper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DumpLog ¶
func DumpLog(ctx context.Context, client kubernetes.Interface, pod *corev1.Pod, podLogOpts corev1.PodLogOptions) (string, error)
DumpLog extract the full log from a Pod. Recommended when the quantity of log expected is minimum.
Types ¶
type PodScraper ¶
PodScraper scrapes logs of a specific pod.
func NewPodScraper ¶
func NewPodScraper(c kubernetes.Interface, namespace string, podName string, defaultContainerName string, tailLines *int64) *PodScraper
NewPodScraper creates a new pod scraper.
type SelectorScraper ¶
SelectorScraper scrapes all pods with a given selector.
func NewSelectorScraper ¶
func NewSelectorScraper(client kubernetes.Interface, namespace string, defaultContainerName string, labelSelector string, tailLines *int64) *SelectorScraper
NewSelectorScraper creates a new SelectorScraper.
Click to show internal directories.
Click to hide internal directories.