network

package
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

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)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL