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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BrokerControlledCreateOrPatch

func BrokerControlledCreateOrPatch(
	ctx context.Context,
	c client.Client,
	clusterName string,
	parentOwner, obj client.Object,
	f controllerutil.MutateFn,
) (controllerutil.OperationResult, error)

func BrokerControlledListSingle

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

func BrokerControlledListSingleAndDelete

func BrokerControlledListSingleAndDelete(
	ctx context.Context,
	r client.Reader,
	c client.Client,
	clusterName string,
	brokerOwner, obj client.Object,
	opts ...client.DeleteAllOfOption,
) error

func BrokerControlledListSingleGenerateOrPatch

func BrokerControlledListSingleGenerateOrPatch(
	ctx context.Context,
	r client.Reader,
	c client.Client,
	clusterName string,
	parentOwner, obj client.Object,
	f controllerutil.MutateFn,
	opts ...client.ListOption,
) (controllerutil.OperationResult, error)

Types

type Client

type Client interface {
	client.Client
	FieldExtractor
}

type FieldExtractor

type FieldExtractor interface {
	ExtractField(obj client.Object, field string) ([]string, error)
}

type FieldExtractorClient

type FieldExtractorClient struct {
	client.Client
	*FieldExtractorRegistry
}

type FieldExtractorRegistry

type FieldExtractorRegistry struct {
	// contains filtered or unexported fields
}

func NewFieldExtractorRegistry

func NewFieldExtractorRegistry(scheme *runtime.Scheme) *FieldExtractorRegistry

func (*FieldExtractorRegistry) ExtractField

func (r *FieldExtractorRegistry) ExtractField(obj client.Object, field string) ([]string, error)

func (*FieldExtractorRegistry) Register

func (r *FieldExtractorRegistry) Register(object client.Object, field string, index client.IndexerFunc) error

type FieldIndexerRegistryOverlay

type FieldIndexerRegistryOverlay struct {
	FieldIndexer client.FieldIndexer
	Registry     *FieldExtractorRegistry
}

func (FieldIndexerRegistryOverlay) IndexField

func (f FieldIndexerRegistryOverlay) IndexField(ctx context.Context, object client.Object, field string, index client.IndexerFunc) error

type Indexers

type Indexers map[string]client.IndexerFunc

Jump to

Keyboard shortcuts

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