2015-05-26 13:46:21 -04:00
|
|
|
package windows
|
|
|
|
|
2015-07-02 01:00:48 -04:00
|
|
|
import "github.com/docker/libnetwork/driverapi"
|
2015-05-26 13:46:21 -04:00
|
|
|
|
|
|
|
const networkType = "windows"
|
|
|
|
|
|
|
|
// TODO Windows. This is a placeholder for now
|
|
|
|
|
|
|
|
type driver struct{}
|
|
|
|
|
|
|
|
// Init registers a new instance of null driver
|
|
|
|
func Init(dc driverapi.DriverCallback) error {
|
2015-06-06 13:21:51 -04:00
|
|
|
c := driverapi.Capability{
|
|
|
|
Scope: driverapi.LocalScope,
|
|
|
|
}
|
|
|
|
return dc.RegisterDriver(networkType, &driver{}, c)
|
2015-05-26 13:46:21 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
func (d *driver) Config(option map[string]interface{}) error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2015-07-02 01:00:48 -04:00
|
|
|
func (d *driver) CreateNetwork(id string, option map[string]interface{}) error {
|
2015-05-26 13:46:21 -04:00
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2015-07-02 01:00:48 -04:00
|
|
|
func (d *driver) DeleteNetwork(nid string) error {
|
2015-05-26 13:46:21 -04:00
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2015-07-02 01:00:48 -04:00
|
|
|
func (d *driver) CreateEndpoint(nid, eid string, epInfo driverapi.EndpointInfo, epOptions map[string]interface{}) error {
|
2015-05-26 13:46:21 -04:00
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2015-07-02 01:00:48 -04:00
|
|
|
func (d *driver) DeleteEndpoint(nid, eid string) error {
|
2015-05-26 13:46:21 -04:00
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2015-07-02 01:00:48 -04:00
|
|
|
func (d *driver) EndpointOperInfo(nid, eid string) (map[string]interface{}, error) {
|
2015-05-26 13:46:21 -04:00
|
|
|
return make(map[string]interface{}, 0), nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// Join method is invoked when a Sandbox is attached to an endpoint.
|
2015-07-02 01:00:48 -04:00
|
|
|
func (d *driver) Join(nid, eid string, sboxKey string, jinfo driverapi.JoinInfo, options map[string]interface{}) error {
|
2015-05-26 13:46:21 -04:00
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// Leave method is invoked when a Sandbox detaches from an endpoint.
|
2015-07-02 01:00:48 -04:00
|
|
|
func (d *driver) Leave(nid, eid string) error {
|
2015-05-26 13:46:21 -04:00
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (d *driver) Type() string {
|
|
|
|
return networkType
|
|
|
|
}
|