system

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

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

Jump to

Keyboard shortcuts

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