MCPcopy Create free account
hub / github.com/docker/go-plugins-helpers / Driver

Interface Driver

network/api.go:33–48  ·  view source on GitHub ↗

Driver represent the interface a driver must fulfill.

Source from the content-addressed store, hash-verified

31
32// Driver represent the interface a driver must fulfill.
33type 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
51type CapabilitiesResponse struct {

Callers 18

initMuxMethod · 0.65
initMuxMethod · 0.65
initMuxMethod · 0.80
initMuxMethod · 0.65
initMuxMethod · 0.80
initMuxMethod · 0.65
initMuxMethod · 0.65
initMuxMethod · 0.80
initMuxMethod · 0.65
fullSocketAddressFunction · 0.65
PluginSpecDirFunction · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…