controller

package
v4.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Overview

Package controller used deal with the backend claim and backend content resources

Package controller used deal with the backend claim and backend content resources

Package controller used deal with the backend claim and backend content resources

Package controller used deal with the backend claim and backend content resources

Package controller used deal with the backend claim and backend content resources

Package controller used deal with the backend claim and backend content resources

Package controller used deal with the backend claim and backend content resources

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackendController

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

BackendController defines the backend controller parameters

func NewBackendController

func NewBackendController(request BackendControllerRequest) *BackendController

NewBackendController return a new NewBackendController

func (*BackendController) Run

func (ctrl *BackendController) Run(ctx context.Context, workers int, stopCh <-chan struct{})

Run defines the controller process

type BackendControllerRequest

type BackendControllerRequest struct {
	// storage backend client
	ClientSet clientSet.Interface
	// storage backend claim informer
	ClaimInformer backendInformers.StorageBackendClaimInformer
	// storage backend content informer
	ContentInformer backendInformers.StorageBackendContentInformer
	// reSync period time
	ReSyncPeriod time.Duration
	// event recorder
	EventRecorder record.EventRecorder
}

BackendControllerRequest is a request for new controller

Jump to

Keyboard shortcuts

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