Documentation ¶
Index ¶
- type UNP
- func (u *UNP) Init(c *config.Config, etcdClient etcdv3.Client, ctx context.Context) error
- func (u *UNP) K8sToNimbess(unpConfig *unpv1.UnifiedNetworkPolicy) (*model.KVPair, error)
- func (u *UNP) ObjectCreated(obj interface{})
- func (u *UNP) ObjectDeleted(name string)
- func (u *UNP) ObjectUpdated(oldObj, newObj interface{})
- func (u *UNP) TestHandler()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UNP ¶
type UNP struct {
// contains filtered or unexported fields
}
Handler is implemented by any handler. The Handle method is used to process event
func (*UNP) K8sToNimbess ¶
K8stoNimbess translates a K8S UNP Config into a Nimbess Key/Value Pair to be written into ETCD
func (*UNP) ObjectCreated ¶
func (u *UNP) ObjectCreated(obj interface{})
ObjectCreated creates entry in Nimbess DB with translated object
func (*UNP) ObjectDeleted ¶
ObjectDeleted deletes entry in Nimbess DB with translated object
func (*UNP) ObjectUpdated ¶
func (u *UNP) ObjectUpdated(oldObj, newObj interface{})
ObjectUpdated updates entry in Nimbess DB with translated object
func (*UNP) TestHandler ¶
func (u *UNP) TestHandler()
TestHandler tests the handler configuration writing tests objects into DB
Click to show internal directories.
Click to hide internal directories.