Documentation ¶
Index ¶
- Variables
- type Event
- type Factory
- func (f *Factory) EverouteCluster() *Tracker
- func (f *Factory) Host() *Tracker
- func (f *Factory) IsolationPolicy() *Tracker
- func (f *Factory) Label() *Tracker
- func (f *Factory) ResetAll()
- func (f *Factory) SecurityGroup() *Tracker
- func (f *Factory) SecurityPolicy() *Tracker
- func (f *Factory) Service() *Tracker
- func (f *Factory) SystemEndpoints() *Tracker
- func (f *Factory) Task() *Tracker
- func (f *Factory) TrackerFor(obj interface{}, keyFunc KeyFunc, watchSize int) *Tracker
- func (f *Factory) User() *Tracker
- func (f *Factory) VM() *Tracker
- type KeyFunc
- type Tracker
- func (w *Tracker) Create(obj interface{}) error
- func (w *Tracker) CreateOrUpdate(obj interface{})
- func (w *Tracker) Delete(key string) error
- func (w *Tracker) Get(key string) (interface{}, bool)
- func (w *Tracker) List() []interface{}
- func (w *Tracker) Reset()
- func (w *Tracker) Update(obj interface{}) error
- func (w *Tracker) Watch() (eventCh <-chan *Event, stopWatch func())
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultKeyFunc = func(obj interface{}) string { return obj.(schema.Object).GetID() } DefaultChanSize = 100 )
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct { Type schema.MutationType Object interface{} }
type Factory ¶
type Factory struct {
// contains filtered or unexported fields
}
func NewFactory ¶
func (*Factory) EverouteCluster ¶
func (*Factory) IsolationPolicy ¶
func (*Factory) SecurityGroup ¶
func (*Factory) SecurityPolicy ¶
func (*Factory) SystemEndpoints ¶
func (*Factory) TrackerFor ¶
type Tracker ¶
Tracker keeps track of objects. It's used to mock resource server.
func (*Tracker) CreateOrUpdate ¶
func (w *Tracker) CreateOrUpdate(obj interface{})
Click to show internal directories.
Click to hide internal directories.