Back to godoc.org

Package k8s

v1.2.2
Latest Go to latest

The latest major version is .

Published: Mar 31, 2020 | License: MIT | Module: github.com/aksgithub/kube_remediator

Index

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(logger *zap.Logger) (*Client, error)

func (*Client) DeletePod

func (c *Client) DeletePod(pod *apiv1.Pod) error

func (*Client) GetPods

func (c *Client) GetPods(namespace string, options metav1.ListOptions) (*apiv1.PodList, error)

func (*Client) NewSharedInformerFactory

func (c *Client) NewSharedInformerFactory(ns string) (informers.SharedInformerFactory, error)

type ClientInterface

type ClientInterface interface {
	GetPods(namespace string, options metav1.ListOptions) (*apiv1.PodList, error)
	DeletePod(pod *apiv1.Pod) error
	NewSharedInformerFactory(ns string) (informers.SharedInformerFactory, error)
}

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier