client

package
v2.0.0-...-7b710ec Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 23 Imported by: 5

Documentation

Index

Constants

View Source
const (
	IndexMeterDefinitionPods = "meterdefinition.marketplace.redhat.com/pods"

	IndexOwnerRefContains = ".metadata.ownerReferences"
	IndexAnnotations      = ".metadata.annotations"

	IndexOperatorSourceNamespaces   = "operatorsource.namespace"
	IndexOperatorSourceProvidedAPIs = "operatorsource.providedAPIs"

	IndexUID = ".metadata.UID"
)

Variables

View Source
var AccessDeniedErr error = errors.New("AccessDeniedError")

Functions

func AddAnnotationIndex

func AddAnnotationIndex(fieldIndexer client.FieldIndexer, types []client.Object) error

func AddOperatorSourceIndex

func AddOperatorSourceIndex(fieldIndexer client.FieldIndexer) error

func AddOwningControllerIndex

func AddOwningControllerIndex(fieldIndexer client.FieldIndexer, types []client.Object) error

func AddUIDIndex

func AddUIDIndex(fieldIndexer client.FieldIndexer, types []client.Object) error

func ObjRefToStr

func ObjRefToStr(apiversion, kind string) string

Types

type AccessChecker

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

func NewAccessChecker

func NewAccessChecker(kubeClientSet clientset.Interface, ctx context.Context) AccessChecker

func (*AccessChecker) CheckAccess

func (a *AccessChecker) CheckAccess(group string, version string, kind string, namespace string) (bool, error)

type DynamicClient

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

func NewDynamicClient

func NewDynamicClient(
	inClient dynamic.Interface,
	restMapper meta.RESTMapper,
) *DynamicClient

func (*DynamicClient) ClientForKind

type FindOwnerHelper

type FindOwnerHelper struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewFindOwnerHelper

func NewFindOwnerHelper(
	ctx context.Context,
	metadataClient *MetadataClient,
	accessChecker AccessChecker,
) *FindOwnerHelper

func (*FindOwnerHelper) FindOwner

func (f *FindOwnerHelper) FindOwner(name, namespace string, lookupOwner *metav1.OwnerReference) (ownerRefs []metav1.OwnerReference, err error)

type InformerMappings

type InformerMappings struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewInformerMappings

func NewInformerMappings(
	ctx context.Context,
	metadataClient *MetadataClient,
) *InformerMappings

func (*InformerMappings) GetInformer

func (i *InformerMappings) GetInformer(mapping meta.RESTMapping) informers.GenericInformer

type MetadataClient

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

func NewMetadataClient

func NewMetadataClient(
	inClient metadata.Interface,
	restMapper meta.RESTMapper,
) *MetadataClient

type SimpleClient

type SimpleClient client.Client

Jump to

Keyboard shortcuts

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