fake

package
v1.20.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Remediator

type Remediator struct {
	ManagementConflictOutput bool
	Watches                  map[schema.GroupVersionKind]struct{}
	AddWatchesError          status.MultiError
	UpdateWatchesError       status.MultiError
	Watching                 bool
	Paused                   bool
	// contains filtered or unexported fields
}

Remediator fakes remediator.Remediator.

This is not in kpt.dev/configsync/pkg/testing/fake because that would cause a import loop (remediator -> fake -> remediator).

func (*Remediator) AddWatches

func (r *Remediator) AddWatches(_ context.Context, watches map[schema.GroupVersionKind]struct{}, _ string) status.MultiError

AddWatches fakes remediator.Remediator.AddWatches

func (*Remediator) ManagementConflict

func (r *Remediator) ManagementConflict() bool

ManagementConflict fakes remediator.Remediator.ManagementConflict

func (*Remediator) NeedsUpdate

func (r *Remediator) NeedsUpdate() bool

NeedsUpdate fakes remediator.Remediator.NeedsUpdate

func (*Remediator) Pause

func (r *Remediator) Pause()

Pause fakes remediator.Remediator.Pause

func (*Remediator) Remediating

func (r *Remediator) Remediating() bool

Remediating returns true if not paused

func (*Remediator) Resume

func (r *Remediator) Resume()

Resume fakes remediator.Remediator.Resume

func (*Remediator) UpdateWatches

func (r *Remediator) UpdateWatches(_ context.Context, watches map[schema.GroupVersionKind]struct{}, _ string) status.MultiError

UpdateWatches fakes remediator.Remediator.UpdateWatches

Jump to

Keyboard shortcuts

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