fake

package
v1.19.2-rc.1 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Applier

type Applier struct {
	ApplyCalls   int
	ApplyInputs  []ApplierInputs
	ApplyOutputs []ApplierOutputs
}

Applier fakes applier.Applier.

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

func (*Applier) Apply

func (a *Applier) Apply(_ context.Context, eventHandler func(applier.Event), objects []client.Object) (applier.ObjectStatusMap, *stats.SyncStats)

Apply fakes applier.Applier.Apply()

type ApplierInputs

type ApplierInputs struct {
	Objects []client.Object
}

ApplierInputs stores inputs for fake.Applier.Apply()

type ApplierOutputs

type ApplierOutputs struct {
	Errors          []status.Error
	ObjectStatusMap applier.ObjectStatusMap
	SyncStats       *stats.SyncStats
}

ApplierOutputs stores outputs for fake.Applier.Apply()

Jump to

Keyboard shortcuts

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