Versions in this module Expand all Collapse all v1 v1.4.1 Jun 11, 2018 v1.4.0 May 24, 2018 Changes in this version + const FileRefNs + const MicroserviceRefNs + const NamedNs + const NewMicroservice + const PidRefNs + const TerminatedMicroservice + type Microservice struct + Id string + Label string + Pid int + type MicroserviceCtx struct + type MicroserviceEvent struct + EventType string + type Namespace struct + FilePath string + Microservice string + Name string + Pid uint32 + Type int32 + func (ns *Namespace) CompareNamespaces(nsToCompare *Namespace) int + func (ns *Namespace) GenericNsToString() string + func (ns *Namespace) GenericToIfaceNs() (*intf.LinuxInterfaces_Interface_Namespace, error) + type NamespaceMgmtCtx struct + func NewNamespaceMgmtCtx() *NamespaceMgmtCtx + type NsHandler struct + Log logging.Logger + func (plugin *NsHandler) ArpNsToGeneric(ns *l3.LinuxStaticArpEntries_ArpEntry_Namespace) *Namespace + func (plugin *NsHandler) Close() error + func (plugin *NsHandler) GenericToArpNs(ns *Namespace) (*l3.LinuxStaticArpEntries_ArpEntry_Namespace, error) + func (plugin *NsHandler) GenericToRouteNs(ns *Namespace) (*l3.LinuxStaticRoutes_Route_Namespace, error) + func (plugin *NsHandler) GetConfigNamespace() *intf.LinuxInterfaces_Interface_Namespace + func (plugin *NsHandler) HandleMicroservices(ctx *MicroserviceCtx) + func (plugin *NsHandler) IfNsToGeneric(ns *intf.LinuxInterfaces_Interface_Namespace) *Namespace + func (plugin *NsHandler) IfaceNsToString(namespace *intf.LinuxInterfaces_Interface_Namespace) string + func (plugin *NsHandler) Init(msChan chan *MicroserviceCtx, ifNotif chan *MicroserviceEvent) error + func (plugin *NsHandler) IsNamespaceAvailable(ns *intf.LinuxInterfaces_Interface_Namespace) bool + func (plugin *NsHandler) RouteNsToGeneric(ns *l3.LinuxStaticRoutes_Route_Namespace) *Namespace + func (plugin *NsHandler) SetInterfaceNamespace(ctx *NamespaceMgmtCtx, ifName string, ...) error + func (plugin *NsHandler) SwitchNamespace(ns *Namespace, ctx *NamespaceMgmtCtx, log logging.Logger) (revert func(), err error) + func (plugin *NsHandler) SwitchToNamespace(nsMgmtCtx *NamespaceMgmtCtx, ns *intf.LinuxInterfaces_Interface_Namespace) (revert func(), err error)