Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SwitchPool ¶
type SwitchPool struct {
// contains filtered or unexported fields
}
SwitchPool contain all vSwitches
func NewSwitchPool ¶
func NewSwitchPool(aliyun *aliyun.OpenAPI) (*SwitchPool, error)
NewSwitchPool create pool and set vSwitches to pool
func (*SwitchPool) GetByID ¶
func (s *SwitchPool) GetByID(id string) (*Switch, error)
GetByID will get vSwitch info from local store
func (*SwitchPool) GetOne ¶
GetOne get one vSwitch by zone, if ids is set will limit vSwitch in this ids
func (*SwitchPool) NeedLeaderElection ¶
func (s *SwitchPool) NeedLeaderElection() bool
NeedLeaderElection need election
func (*SwitchPool) Start ¶
func (s *SwitchPool) Start(ctx context.Context) error
Start the controller
func (*SwitchPool) SyncSwitch ¶
func (s *SwitchPool) SyncSwitch() error
SyncSwitch will sync all cached vSwitch info with openAPI
Click to show internal directories.
Click to hide internal directories.