notifier

package
v1.18.2 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: MIT Imports: 1 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiffCache

type DiffCache struct {
	Deleted map[string]flag.Flag   `json:"deleted"`
	Added   map[string]flag.Flag   `json:"added"`
	Updated map[string]DiffUpdated `json:"updated"`
}

DiffCache contains the changes made in the cache, to be able to notify the user that something has changed (logs, webhook ...)

func (*DiffCache) HasDiff

func (d *DiffCache) HasDiff() bool

HasDiff check if we have differences

type DiffUpdated

type DiffUpdated struct {
	Before flag.Flag `json:"old_value"`
	After  flag.Flag `json:"new_value"`
}

type Notifier

type Notifier interface {
	Notify(cache DiffCache) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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