kubernetes

package
v1.4.13 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: Apache-2.0 Imports: 17 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CustomResourceDefinitionExists

func CustomResourceDefinitionExists(gvk schema.GroupVersionKind) error

Types

type ExtendedReconciler

type ExtendedReconciler struct {
	Service    PlatformService
	Reconciler reconcile.Reconciler
	Resource   client.Object
	Finalizers map[string]Finalizer
}

func NewExtendedReconciler

func NewExtendedReconciler(service PlatformService, reconciler reconcile.Reconciler, resource client.Object) ExtendedReconciler

func (*ExtendedReconciler) Reconcile

func (e *ExtendedReconciler) Reconcile(request reconcile.Request) (reconcile.Result, error)

func (*ExtendedReconciler) RegisterFinalizer

func (e *ExtendedReconciler) RegisterFinalizer(f Finalizer) error

func (*ExtendedReconciler) UnregisterFinalizer

func (e *ExtendedReconciler) UnregisterFinalizer(finalizer string) error

type Finalizer

type Finalizer interface {
	GetName() string
	OnFinalize(owner client.Object, service PlatformService) error
}

type KubernetesPlatformService

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

func (*KubernetesPlatformService) Create

func (*KubernetesPlatformService) Delete

func (*KubernetesPlatformService) DeleteAllOf

func (service *KubernetesPlatformService) DeleteAllOf(ctx context.Context, obj clientv1.Object, opts ...clientv1.DeleteAllOfOption) error

func (*KubernetesPlatformService) Get

func (*KubernetesPlatformService) GetCached

func (service *KubernetesPlatformService) GetCached(ctx context.Context, key clientv1.ObjectKey, obj clientv1.Object) error

func (*KubernetesPlatformService) GetScheme

func (service *KubernetesPlatformService) GetScheme() *runtime.Scheme

func (*KubernetesPlatformService) ImageStreamTags

func (service *KubernetesPlatformService) ImageStreamTags(namespace string) imagev1.ImageStreamTagInterface

func (*KubernetesPlatformService) IsMockService

func (service *KubernetesPlatformService) IsMockService() bool

func (*KubernetesPlatformService) List

func (*KubernetesPlatformService) Patch

func (*KubernetesPlatformService) Status added in v1.4.5

func (*KubernetesPlatformService) Update

type PlatformService

type PlatformService interface {
	Create(ctx context.Context, obj client.Object, opts ...client.CreateOption) error
	Delete(ctx context.Context, obj client.Object, opts ...client.DeleteOption) error
	Get(ctx context.Context, key client.ObjectKey, obj client.Object) error
	List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error
	Update(ctx context.Context, obj client.Object, opts ...client.UpdateOption) error
	Patch(ctx context.Context, obj client.Object, patch client.Patch, opts ...client.PatchOption) error
	DeleteAllOf(ctx context.Context, obj client.Object, opts ...client.DeleteAllOfOption) error
	GetCached(ctx context.Context, key client.ObjectKey, obj client.Object) error
	ImageStreamTags(namespace string) imagev1.ImageStreamTagInterface
	GetScheme() *runtime.Scheme
	Status() client.StatusWriter
	IsMockService() bool
}

PlatformService ...

Jump to

Keyboard shortcuts

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