fake

package
v1.23.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2025 License: Apache-2.0 Imports: 7 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
	ApplyClient  client.Client
}

Applier fakes applier.Applier.

This is not in github.com/GoogleContainerTools/config-sync/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), resources *declared.Resources) (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