k8s

package
Version: v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2020 License: MIT Imports: 9 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 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 added in v1.2.0

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)
}

Source Files

Directories

Path Synopsis
Package mock_k8s is a generated GoMock package.
Package mock_k8s is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL