Documentation ¶
Overview ¶
Package system contains functions and structures related to system level APIs
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterHandlers ¶
func RegisterHandlers( r types.VersionedRouter, service Service, conf *config.Config, ncVersionSvc backend.NerdctlSystemSvc, logger flog.Logger, )
RegisterHandlers sets up the handlers and assigns the handlers to the router. Both r and versionedR are used as `GET /version` is called by the docker python client without the API version number.
Types ¶
type Service ¶
type Service interface { Auth(ctx context.Context, username, password, serverAddr string) (string, error) SubscribeEvents(ctx context.Context, filters map[string][]string) (<-chan *eventtype.Event, <-chan error) GetInfo(ctx context.Context, config *config.Config) (*dockercompat.Info, error) GetVersion(ctx context.Context) (*types.VersionInfo, error) }
Service defines the interface for functions that provide supplementary information to the handlers
Click to show internal directories.
Click to hide internal directories.