server

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2019 License: Apache-2.0 Imports: 37 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTopLevelDirectories added in v1.3.0

func CreateTopLevelDirectories(config *srvconfig.Config) error

CreateTopLevelDirectories creates the top-level root and state directories.

func LoadPlugins

func LoadPlugins(ctx context.Context, config *srvconfig.Config) ([]*plugin.Registration, error)

LoadPlugins loads all plugins into containerd and generates an ordered graph of all plugins.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server is the containerd main daemon

func New

func New(ctx context.Context, config *srvconfig.Config) (*Server, error)

New creates and initializes a new containerd server

func (*Server) ServeDebug

func (s *Server) ServeDebug(l net.Listener) error

ServeDebug provides a debug endpoint

func (*Server) ServeGRPC

func (s *Server) ServeGRPC(l net.Listener) error

ServeGRPC provides the containerd grpc APIs on the provided listener

func (*Server) ServeMetrics

func (s *Server) ServeMetrics(l net.Listener) error

ServeMetrics provides a prometheus endpoint for exposing metrics

func (*Server) ServeTCP added in v1.3.0

func (s *Server) ServeTCP(l net.Listener) error

ServeTCP allows services to serve over tcp

func (*Server) ServeTTRPC added in v1.3.0

func (s *Server) ServeTTRPC(l net.Listener) error

ServeTTRPC provides the containerd ttrpc APIs on the provided listener

func (*Server) Stop

func (s *Server) Stop()

Stop the containerd server canceling any open connections

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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