k8s

package
v0.2.17 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CreateAction   EventActionType = "create"
	UpdateAction   EventActionType = "update"
	DeleteAction   EventActionType = "delete"
	MaxNumRequeues int             = 4
)

Variables

This section is empty.

Functions

func GetGVRFromResource

func GetGVRFromResource(discoveryMapper *restmapper.DeferredDiscoveryRESTMapper, resource string) (schema.GroupVersionResource, error)

func NewKubeConfig added in v0.1.13

func NewKubeConfig() clientcmd.ClientConfig

Types

type Client

type Client struct {
	DiscoveryClient *discovery.DiscoveryClient
	DynamicClient   dynamic.Interface
	DiscoveryMapper *restmapper.DeferredDiscoveryRESTMapper
}

func NewClient

func NewClient(config *rest.Config) (*Client, error)

type Controller

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

func NewController

func NewController(resource port.AggregatedResource, portClient *cli.PortClient, informer informers.GenericInformer) *Controller

func (*Controller) GetEntitiesSet added in v0.1.6

func (c *Controller) GetEntitiesSet() (map[string]interface{}, error)

func (*Controller) Run

func (c *Controller) Run(workers int, stopCh <-chan struct{})

func (*Controller) Shutdown

func (c *Controller) Shutdown()

func (*Controller) WaitForCacheSync added in v0.1.11

func (c *Controller) WaitForCacheSync(stopCh <-chan struct{}) error

type EventActionType added in v0.1.6

type EventActionType string

type EventItem

type EventItem struct {
	Key        string
	ActionType EventActionType
}

Jump to

Keyboard shortcuts

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