Documentation ¶
Index ¶
- func NewReflectorBuilder(client *client.Client) informer.NewReflectorFunc
- func NewTaskMonitor(towerFactory SharedInformerFactory) client.TaskMonitor
- func ReconcileWorker(name string, queue workqueue.RateLimitingInterface, ...) func()
- func TowerObjectKey(obj interface{}) (string, error)
- type EventUnmarshalable
- type KeyLister
- type Lister
- type Queryable
- type SharedInformerFactory
- type SliceUnmarshalable
- type Subscribable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewReflectorBuilder ¶
func NewReflectorBuilder(client *client.Client) informer.NewReflectorFunc
NewReflectorBuilder return a NewReflectorFunc with giving client
func NewTaskMonitor ¶
func NewTaskMonitor(towerFactory SharedInformerFactory) client.TaskMonitor
func ReconcileWorker ¶
func ReconcileWorker(name string, queue workqueue.RateLimitingInterface, processFunc func(string) error) func()
func TowerObjectKey ¶
Types ¶
type EventUnmarshalable ¶
type EventUnmarshalable interface {
UnmarshalEvent(raw json.RawMessage, event *schema.MutationEvent) error
}
EventUnmarshalable allow to mutate the default json decoder
type KeyLister ¶
type KeyLister interface { // ListKeys returns the storage keys of the stored objects ListKeys() []string // IndexKeys returns the storage keys of the stored objects whose // set of indexed values for the named index includes the given // indexed value IndexKeys(indexName, indexedValue string) ([]string, error) }
KeyLister know how to list keys from store.
type Lister ¶
type Lister interface { KeyLister // List returns a list of all the currently non-empty accumulators List() []interface{} // GetByKey returns the accumulator associated with the given key GetByKey(key string) (interface{}, bool, error) // ByIndex returns the stored objects whose set of indexed values // for the named index includes the given indexed value ByIndex(indexName, indexedValue string) ([]interface{}, error) }
Lister know how to list and get object from store.
type SharedInformerFactory ¶
type SharedInformerFactory interface { reflect.Type]bool InformerFor(obj schema.Object) cache.SharedIndexInformer VM() cache.SharedIndexInformer Label() cache.SharedIndexInformer SecurityPolicy() cache.SharedIndexInformer IsolationPolicy() cache.SharedIndexInformer Host() cache.SharedIndexInformer EverouteCluster() cache.SharedIndexInformer SystemEndpoints() cache.SharedIndexInformer Task() cache.SharedIndexInformer SecurityGroup() cache.SharedIndexInformer Service() cache.SharedIndexInformer }Start(stopCh <-chan struct{}) WaitForCacheSync(stopCh <-chan struct{}) map[
SharedInformerFactory provides shared informers for all resources
func NewSharedInformerFactory ¶
func NewSharedInformerFactory(client *client.Client, defaultResync time.Duration) SharedInformerFactory
NewSharedInformerFactory constructs a new instance of sharedInformerFactory for all resources
type SliceUnmarshalable ¶
type SliceUnmarshalable interface {
UnmarshalSlice(raw json.RawMessage, slice interface{}) error
}
SliceUnmarshalable allow to mutate the default json decoder
type Subscribable ¶
Subscribable allow to mutate the default subscription request
Click to show internal directories.
Click to hide internal directories.