internal

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunDaemon

func RunDaemon(interval int, ctx context.Context, stg Strategy) error

RunDaemon is the main loop driven by a check interval.

Types

type DefaultSettings

type DefaultSettings struct {
	Namespace string
	Selector  string
	TTL       time.Duration
	DryRun    bool
}

type Strategy

type Strategy interface {
	//Run is a blocking function
	Run(ctx context.Context) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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