client

package
v0.0.0-...-48ff17a Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ControlledListSingle

func ControlledListSingle(ctx context.Context, r client.Reader, scheme *runtime.Scheme, owner, obj client.Object, opts ...client.ListOption) error

func ControlledListSingleAndDelete

func ControlledListSingleAndDelete(ctx context.Context, r client.Reader, c client.Client, owner, obj client.Object, opts ...client.DeleteAllOfOption) error

func ListSingle

func ListSingle(ctx context.Context, r client.Reader, scheme *runtime.Scheme, obj client.Object, opts ...client.ListOption) error

func ListSingleAndDelete

func ListSingleAndDelete(ctx context.Context, r client.Reader, c client.Client, obj client.Object, opts ...client.DeleteAllOfOption) error

func ListSingleGenerateOrPatch

ListSingleGenerateOrPatch lists a single object and, if it does not exist, generates (i.e. create an object with GenerateName set) an object or updates the single object.

The caller of ListSingleGenerateOrPatch *has* to make sure that the list call issued using client.Reader returns at most 1 object. client.Reader is used over client.Client since cached List calls may not yield objects created in previous invocations of ListSingleGenerateOrPatch, leading to inconsistent behavior.

Types

This section is empty.

Jump to

Keyboard shortcuts

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