config

package
v0.0.0-...-a86847d Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultCfgFile = "./bermuda.yml"

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig(file string)

Types

type Config

type Config struct {
	Image     *PruneImageConfig     `yaml:"image"`
	Container *PruneContainerConfig `yaml:"container"`
	Logging   *LoggingConfig        `yaml:"logging"`
}

func Get

func Get() *Config

type LoggingConfig

type LoggingConfig struct {
	LogFile string `yaml:"logFile"`
	Verbose bool   `yaml:"verbose"`
}

type PruneContainerConfig

type PruneContainerConfig struct {
	Until         string   `yaml:"until"`
	ExcludeLabels []string `yaml:"excludeLabels"`
	IncludeLabels []string `yaml:"includeLabels"`
	Active        bool     `yaml:"active"`
}

func (PruneContainerConfig) ToFilterArgs

func (p PruneContainerConfig) ToFilterArgs() filters.Args

type PruneImageConfig

type PruneImageConfig struct {
	Until         string   `yaml:"until"`
	ExcludeLabels []string `yaml:"excludeLabels"`
	IncludeLabels []string `yaml:"includeLabels"`
	Active        bool     `yaml:"active"`
	All           bool     `yaml:"all"`
}

func (PruneImageConfig) ToFilterArgs

func (p PruneImageConfig) ToFilterArgs() filters.Args

Jump to

Keyboard shortcuts

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