equality

package
v0.0.0-...-967c829 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExternalCAsEqualStable

func ExternalCAsEqualStable(a, b []*api.ExternalCA) bool

ExternalCAsEqualStable compares lists of external CAs and determines whether they are equal.

func RootCAEqualStable

func RootCAEqualStable(a, b *api.RootCA) bool

RootCAEqualStable compares RootCAs, excluding join tokens, which are randomly generated

func TaskStatusesEqualStable

func TaskStatusesEqualStable(a, b *api.TaskStatus) bool

TaskStatusesEqualStable compares the task status excluding timestamp fields.

func TasksEqualStable

func TasksEqualStable(a, b *api.Task) bool

TasksEqualStable returns true if the tasks are functionally equal, ignoring status, version and other superfluous fields.

This used to decide whether or not to propagate a task update to a controller.

Types

This section is empty.

Jump to

Keyboard shortcuts

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