committer

package
v0.29.13 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStatusCommitter

func NewStatusCommitter[R any, St any](patcher Patcher) func(context.Context, StatusGetter[St], StatusGetter[St]) error

Types

type Patcher

type Patcher interface {
	Patch(ctx context.Context, obj client.Object, patch client.Patch, opts ...client.SubResourcePatchOption) error
}

Patcher is just the Patch API with a generic to keep use sites type safe

type StatusGetter added in v0.25.29

type StatusGetter[St any] interface {
	GetStatus() St
	client.Object
}

Jump to

Keyboard shortcuts

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