Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterHandlers ¶
func RegisterHandlers(r types.VersionedRouter, service Service, conf *config.Config, logger flog.Logger)
RegisterHandlers register all the supported endpoints related to the network APIs.
Types ¶
type Service ¶
type Service interface { Create(ctx context.Context, request types.NetworkCreateRequest) (types.NetworkCreateResponse, error) Connect(ctx context.Context, networkId, containerId string) error Inspect(ctx context.Context, networkId string) (*types.NetworkInspectResponse, error) Remove(ctx context.Context, networkId string) error List(ctx context.Context) ([]*types.NetworkInspectResponse, error) }
Click to show internal directories.
Click to hide internal directories.