server

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2020 License: Apache-2.0 Imports: 39 Imported by: 0

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