container

package
v2023.3.12 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: MIT Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseLogLevel added in v2023.3.4

func ParseLogLevel(s string) (slog.Leveler, error)

func Plugins

func Plugins() []any

Plugins returns active plugins for the endured container. Feel free to add or remove any plugins.

Types

type Config

type Config struct {
	GracePeriod time.Duration `mapstructure:"grace_period"`
	LogLevel    string        `mapstructure:"log_level"`
	WatchdogSec int           `mapstructure:"watchdog_sec"`
	PrintGraph  bool          `mapstructure:"print_graph"`
}

Config defines endure container configuration.

func NewConfig

func NewConfig(cfgFile string) (*Config, error)

NewConfig creates endure container configuration.

Jump to

Keyboard shortcuts

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