Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EqualPairs ¶
func EqualPairs(objects [][2]interface{}) bool
func NewMapBuilder ¶
func NewMapBuilder() *mapBuilder
Types ¶
type MapComparator ¶
type MapComparator struct {
Comparator ResourceComparator
}
func NewMapComparator ¶
func NewMapComparator() MapComparator
func (*MapComparator) Compare ¶
func (this *MapComparator) Compare(deployed map[reflect.Type][]resource.KubernetesResource, requested map[reflect.Type][]resource.KubernetesResource) map[reflect.Type]ResourceDelta
type ResourceComparator ¶
type ResourceComparator interface { SetDefaultComparator(compFunc func(deployed resource.KubernetesResource, requested resource.KubernetesResource) bool) GetDefaultComparator() func(deployed resource.KubernetesResource, requested resource.KubernetesResource) bool SetComparator(resourceType reflect.Type, compFunc func(deployed resource.KubernetesResource, requested resource.KubernetesResource) bool) GetComparator(resourceType reflect.Type) func(deployed resource.KubernetesResource, requested resource.KubernetesResource) bool Compare(deployed resource.KubernetesResource, requested resource.KubernetesResource) bool CompareArrays(deployed []resource.KubernetesResource, requested []resource.KubernetesResource) ResourceDelta }
func DefaultComparator ¶
func DefaultComparator() ResourceComparator
func SimpleComparator ¶
func SimpleComparator() ResourceComparator
type ResourceDelta ¶
type ResourceDelta struct { Added []resource.KubernetesResource Updated []resource.KubernetesResource Removed []resource.KubernetesResource }
func (*ResourceDelta) HasChanges ¶
func (delta *ResourceDelta) HasChanges() bool
Click to show internal directories.
Click to hide internal directories.