package server
import "github.com/containerd/containerd/server"
Index ¶
- func LoadConfig(path string, v *Config) error
- func LoadPlugins(config *Config) ([]*plugin.Registration, error)
- type CgroupConfig
- type Config
- type Debug
- type GRPCConfig
- type MetricsConfig
- type Server
Functions ¶
func LoadConfig ¶
LoadConfig loads the containerd server config from the provided path
func LoadPlugins ¶
func LoadPlugins(config *Config) ([]*plugin.Registration, error)
LoadPlugins loads all plugins into containerd and generates an ordered graph of all plugins.
Types ¶
type CgroupConfig ¶
type CgroupConfig struct { Path string `toml:"path"` }
CgroupConfig provides cgroup configuration
type Config ¶
type Config struct { // Root is the path to a directory where containerd will store persistent data Root string `toml:"root"` // State is the path to a directory where containerd will store transient data State string `toml:"state"` // GRPC configuration settings GRPC GRPCConfig `toml:"grpc"` // Debug and profiling settings Debug Debug `toml:"debug"` // Metrics and monitoring settings Metrics MetricsConfig `toml:"metrics"` // DisabledPlugins are IDs of plugins to disable. Disabled plugins won't be // initialized and started. DisabledPlugins []string `toml:"disabled_plugins"` // Plugins provides plugin specific configuration for the initialization of a plugin Plugins map[string]toml.Primitive `toml:"plugins"` // OOMScore adjust the containerd's oom score OOMScore int `toml:"oom_score"` // Cgroup specifies cgroup information for the containerd daemon process Cgroup CgroupConfig `toml:"cgroup"` // contains filtered or unexported fields }
Config provides containerd configuration data for the server
func (*Config) Decode ¶
Decode unmarshals a plugin specific configuration by plugin id
type Debug ¶
type Debug struct { Address string `toml:"address"` UID int `toml:"uid"` GID int `toml:"gid"` Level string `toml:"level"` }
Debug provides debug configuration
type GRPCConfig ¶
type GRPCConfig struct { Address string `toml:"address"` UID int `toml:"uid"` GID int `toml:"gid"` MaxRecvMsgSize int `toml:"max_recv_message_size"` MaxSendMsgSize int `toml:"max_send_message_size"` }
GRPCConfig provides GRPC configuration for the socket
type MetricsConfig ¶
type MetricsConfig struct { Address string `toml:"address"` GRPCHistogram bool `toml:"grpc_histogram"` }
MetricsConfig provides metrics configuration
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is the containerd main daemon
func New ¶
New creates and initializes a new containerd server
func (*Server) ServeDebug ¶
ServeDebug provides a debug endpoint
func (*Server) ServeGRPC ¶
ServeGRPC provides the containerd grpc APIs on the provided listener
func (*Server) ServeMetrics ¶
ServeMetrics provides a prometheus endpoint for exposing metrics
func (*Server) Stop ¶
func (s *Server) Stop()
Stop the containerd server canceling any open connections
Source Files ¶
config.go server.go server_unsupported.go
- Version
- v1.1.8
- Published
- Sep 26, 2019
- Platform
- js/wasm
- Imports
- 24 packages
- Last checked
- 1 hour ago –
Tools for package owners.