cleanup

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ByteDivisor  = 1024
	SecondsInDay = 86400
)
View Source
const FrigateDefaultMaxRetentionDays = 10

Variables

View Source
var ErrorFrigateClipDirDoesNotExist = errors.New("frigate clip path does not exist")
View Source
var ErrorFrigateConfigDoesNotExist = errors.New("frigate config path does not exist")

Functions

func Execute

func Execute(cfg *Config, log *logrus.Logger) error

Types

type Config

type Config struct {
	FrigateConfigPath    string
	FrigateClipDirectory string
	LogLevel             logrus.Level
	DryRun               bool
}

type FrigateConfig

type FrigateConfig struct {
	Snapshots FrigateConfigSnapshots `yaml:"snapshots"`
}

func ParseFrigateConfig

func ParseFrigateConfig(configFilePath string) (FrigateConfig, error)

type FrigateConfigRetain

type FrigateConfigRetain struct {
	Default int            `yaml:"int"`
	Objects map[string]int `yaml:"objects"`
}

type FrigateConfigSnapshots

type FrigateConfigSnapshots struct {
	Retain FrigateConfigRetain `yaml:"retain"`
}

Jump to

Keyboard shortcuts

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