route

package
v1.24.4 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureCreated

func EnsureCreated(cfg alertmanagerconfig.Config, cluster metav1.Object, installation string) (alertmanagerconfig.Config, bool, error)

EnsureCreated ensure route exist in cfg.Route and is up to date. Returns true when changes have been made to cfg. Return untouched cfg and false when no changes are made.

func EnsureDeleted

func EnsureDeleted(cfg alertmanagerconfig.Config, cluster metav1.Object, installation string) (alertmanagerconfig.Config, bool, error)

EnsureDeleted ensure route is removed from cfg.Receivers. Returns true when changes have been made to cfg. Return untouched cfg and false when no changes are made.

func IsEmptyRouteError

func IsEmptyRouteError(err error) bool

IsEmptyRouteError asserts emptyRouteError.

Types

This section is empty.

Jump to

Keyboard shortcuts

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