Driver represent the interface a driver must fulfill.
| 31 | |
| 32 | // Driver represent the interface a driver must fulfill. |
| 33 | type Driver interface { |
| 34 | GetCapabilities() (*CapabilitiesResponse, error) |
| 35 | CreateNetwork(*CreateNetworkRequest) error |
| 36 | AllocateNetwork(*AllocateNetworkRequest) (*AllocateNetworkResponse, error) |
| 37 | DeleteNetwork(*DeleteNetworkRequest) error |
| 38 | FreeNetwork(*FreeNetworkRequest) error |
| 39 | CreateEndpoint(*CreateEndpointRequest) (*CreateEndpointResponse, error) |
| 40 | DeleteEndpoint(*DeleteEndpointRequest) error |
| 41 | EndpointInfo(*InfoRequest) (*InfoResponse, error) |
| 42 | Join(*JoinRequest) (*JoinResponse, error) |
| 43 | Leave(*LeaveRequest) error |
| 44 | DiscoverNew(*DiscoveryNotification) error |
| 45 | DiscoverDelete(*DiscoveryNotification) error |
| 46 | ProgramExternalConnectivity(*ProgramExternalConnectivityRequest) error |
| 47 | RevokeExternalConnectivity(*RevokeExternalConnectivityRequest) error |
| 48 | } |
| 49 | |
| 50 | // CapabilitiesResponse returns whether or not this network is global or local |
| 51 | type CapabilitiesResponse struct { |
no outgoing calls
no test coverage detected
searching dependent graphs…