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 }
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 }
Click to show internal directories.
Click to hide internal directories.