github.com/Prakhar-Agarwal-byte/moby@v0.0.0-20231027092010-a14e3e8ab87e/libnetwork/drivers/bridge/brmanager/brmanager.go (about) 1 package brmanager 2 3 import ( 4 "github.com/Prakhar-Agarwal-byte/moby/libnetwork/driverapi" 5 "github.com/Prakhar-Agarwal-byte/moby/libnetwork/scope" 6 "github.com/Prakhar-Agarwal-byte/moby/libnetwork/types" 7 ) 8 9 const networkType = "bridge" 10 11 type driver struct{} 12 13 // Register registers a new instance of the bridge manager driver with r. 14 func Register(r driverapi.Registerer) error { 15 return r.RegisterDriver(networkType, &driver{}, driverapi.Capability{ 16 DataScope: scope.Local, 17 ConnectivityScope: scope.Local, 18 }) 19 } 20 21 func (d *driver) NetworkAllocate(id string, option map[string]string, ipV4Data, ipV6Data []driverapi.IPAMData) (map[string]string, error) { 22 return nil, types.NotImplementedErrorf("not implemented") 23 } 24 25 func (d *driver) NetworkFree(id string) error { 26 return types.NotImplementedErrorf("not implemented") 27 } 28 29 func (d *driver) CreateNetwork(id string, option map[string]interface{}, nInfo driverapi.NetworkInfo, ipV4Data, ipV6Data []driverapi.IPAMData) error { 30 return types.NotImplementedErrorf("not implemented") 31 } 32 33 func (d *driver) EventNotify(etype driverapi.EventType, nid, tableName, key string, value []byte) { 34 } 35 36 func (d *driver) DecodeTableEntry(tablename string, key string, value []byte) (string, map[string]string) { 37 return "", nil 38 } 39 40 func (d *driver) DeleteNetwork(nid string) error { 41 return types.NotImplementedErrorf("not implemented") 42 } 43 44 func (d *driver) CreateEndpoint(nid, eid string, ifInfo driverapi.InterfaceInfo, epOptions map[string]interface{}) error { 45 return types.NotImplementedErrorf("not implemented") 46 } 47 48 func (d *driver) DeleteEndpoint(nid, eid string) error { 49 return types.NotImplementedErrorf("not implemented") 50 } 51 52 func (d *driver) EndpointOperInfo(nid, eid string) (map[string]interface{}, error) { 53 return nil, types.NotImplementedErrorf("not implemented") 54 } 55 56 func (d *driver) Join(nid, eid string, sboxKey string, jinfo driverapi.JoinInfo, options map[string]interface{}) error { 57 return types.NotImplementedErrorf("not implemented") 58 } 59 60 func (d *driver) Leave(nid, eid string) error { 61 return types.NotImplementedErrorf("not implemented") 62 } 63 64 func (d *driver) Type() string { 65 return networkType 66 } 67 68 func (d *driver) IsBuiltIn() bool { 69 return true 70 } 71 72 func (d *driver) ProgramExternalConnectivity(nid, eid string, options map[string]interface{}) error { 73 return types.NotImplementedErrorf("not implemented") 74 } 75 76 func (d *driver) RevokeExternalConnectivity(nid, eid string) error { 77 return types.NotImplementedErrorf("not implemented") 78 }