Documentation
¶
Index ¶
- func ObjID(clusterID, ns, name string, uid types.UID) string
- type Event
- type EventType
- type ObjectType
- type RemoteCluster
- func (rc *RemoteCluster) Delete(np *v1net.NetworkPolicy) error
- func (rc *RemoteCluster) Distribute(np *v1net.NetworkPolicy) error
- func (rc *RemoteCluster) GetNetworkPolicies() []interface{}
- func (rc *RemoteCluster) GetPods() []interface{}
- func (rc *RemoteCluster) HasSynced() bool
- func (rc *RemoteCluster) NewAddEvent(objInterface interface{}) *Event
- func (rc *RemoteCluster) NewDeleteEvent(objInterface interface{}) *Event
- func (rc *RemoteCluster) NewUpdateEvent(objInterface, newObjInterface interface{}) *Event
- func (rc *RemoteCluster) OnAdd(obj interface{}, _ bool)
- func (rc *RemoteCluster) OnDelete(obj interface{})
- func (rc *RemoteCluster) OnUpdate(oldObj, newObj interface{})
- func (rc *RemoteCluster) Run(onSyncDoneFunc func(resourceWatcher *RemoteCluster))
- func (rc *RemoteCluster) SetEventChannel(eventChan chan *Event)
- func (rc *RemoteCluster) Stop()
- func (rc *RemoteCluster) Stopped() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Event ¶
type Event struct { Cluster *RemoteCluster Type EventType ObjType ObjectType Objs []interface{} ObjID string }
func (*Event) ToUpdatedFrom ¶
type ObjectType ¶
type ObjectType string
const ( NetworkPolicy ObjectType = "np" Pod ObjectType = "pod" )
type RemoteCluster ¶
type RemoteCluster struct { ClusterID string ClientSet kubernetes.Interface // contains filtered or unexported fields }
func New ¶
func New(clusterID string, clientSet kubernetes.Interface) *RemoteCluster
func (*RemoteCluster) Delete ¶
func (rc *RemoteCluster) Delete(np *v1net.NetworkPolicy) error
func (*RemoteCluster) Distribute ¶
func (rc *RemoteCluster) Distribute(np *v1net.NetworkPolicy) error
func (*RemoteCluster) GetNetworkPolicies ¶
func (rc *RemoteCluster) GetNetworkPolicies() []interface{}
func (*RemoteCluster) GetPods ¶
func (rc *RemoteCluster) GetPods() []interface{}
func (*RemoteCluster) HasSynced ¶
func (rc *RemoteCluster) HasSynced() bool
func (*RemoteCluster) NewAddEvent ¶
func (rc *RemoteCluster) NewAddEvent(objInterface interface{}) *Event
func (*RemoteCluster) NewDeleteEvent ¶
func (rc *RemoteCluster) NewDeleteEvent(objInterface interface{}) *Event
func (*RemoteCluster) NewUpdateEvent ¶
func (rc *RemoteCluster) NewUpdateEvent(objInterface, newObjInterface interface{}) *Event
func (*RemoteCluster) OnAdd ¶
func (rc *RemoteCluster) OnAdd(obj interface{}, _ bool)
func (*RemoteCluster) OnDelete ¶
func (rc *RemoteCluster) OnDelete(obj interface{})
func (*RemoteCluster) OnUpdate ¶
func (rc *RemoteCluster) OnUpdate(oldObj, newObj interface{})
func (*RemoteCluster) Run ¶
func (rc *RemoteCluster) Run(onSyncDoneFunc func(resourceWatcher *RemoteCluster))
func (*RemoteCluster) SetEventChannel ¶
func (rc *RemoteCluster) SetEventChannel(eventChan chan *Event)
func (*RemoteCluster) Stopped ¶
func (rc *RemoteCluster) Stopped() bool
Click to show internal directories.
Click to hide internal directories.