Documentation ¶
Index ¶
- func NamespaceDecoratorFactory(logger lager.Logger, ns namespace.Namespace) dns.DecorateWriter
- type AddressManager
- type Command
- type Condition
- type Context
- type DNSFactory
- type DNSServerFactory
- type Executor
- type LinkFactory
- type ListenUDPFunc
- type ListenerFactory
- type NamespaceWriter
- type RouteManager
- type SandboxRepository
- type WriterDecoratorFactoryFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddressManager ¶
type Context ¶
type Context interface { Logger() lager.Logger AddressManager() AddressManager LinkFactory() LinkFactory RouteManager() RouteManager SandboxNamespaceRepository() namespace.Repository SandboxRepository() SandboxRepository ListenerFactory() ListenerFactory DNSServerFactory() DNSServerFactory }
type DNSFactory ¶
type DNSFactory struct { Logger lager.Logger ExternalServer string DucatiAPI string Suffix string DecoratorFactory writerDecoratorFactory }
func (*DNSFactory) New ¶
func (f *DNSFactory) New(listener net.PacketConn, sandboxNS namespace.Namespace) ifrit.Runner
type DNSServerFactory ¶
type Executor ¶
func New ¶
func New( logger lager.Logger, addressManager AddressManager, routeManager RouteManager, linkFactory LinkFactory, sandboxNamespaceRepository namespace.Repository, sandboxRepository SandboxRepository, listenerFactory ListenerFactory, dnsServerFactory DNSServerFactory, ) Executor
type LinkFactory ¶
type LinkFactory interface { CreateBridge(name string) error CreateDummy(name string) error CreateVeth(name, peerName string, mtu int) error CreateVxlan(name string, vni int) error DeleteLinkByName(name string) error Exists(name string) bool HardwareAddress(linkName string) (net.HardwareAddr, error) SetMaster(slave, master string) error SetNamespace(intefaceName string, fd uintptr) error SetUp(name string) error VethDeviceCount() (int, error) }
type ListenUDPFunc ¶
type ListenerFactory ¶
type NamespaceWriter ¶
type RouteManager ¶
type SandboxRepository ¶
type WriterDecoratorFactoryFunc ¶
type WriterDecoratorFactoryFunc func(logger lager.Logger, ns namespace.Namespace) dns.DecorateWriter
func (WriterDecoratorFactoryFunc) Decorate ¶
func (wdf WriterDecoratorFactoryFunc) Decorate(logger lager.Logger, ns namespace.Namespace) dns.DecorateWriter
Click to show internal directories.
Click to hide internal directories.