k8sclient

package
v0.0.0-...-9577e5e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	ListPods(namespace string, labelSelector string) ([]v1.Pod, error)
	GetPodLogs(namespace string, container string, pod v1.Pod, sinceTime time.Time) (*rest.Request, error)
}

type KClient

type KClient struct {
	ClientSet kubernetes.Interface
	Ctx       context.Context
}

func New

func New(ctx context.Context, kubeConfig string) (*KClient, error)

func (KClient) GetPodLogs

func (c KClient) GetPodLogs(namespace string, container string, pod v1.Pod, sinceTime time.Time) (*rest.Request, error)

func (KClient) ListPods

func (c KClient) ListPods(namespace string, labelSelector string) ([]v1.Pod, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL