pool

package
v1.2.16 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pool

type Pool interface {
	GetPool(ctx context.Context, key client.ObjectKey) (*stosv1.Pool, error)
	ListPools(ctx context.Context) (*stosv1.PoolList, error)
	DeletePool(ctx context.Context, key client.ObjectKey) error
	UpdatePool(ctx context.Context, pool *stosv1.Pool) error
	CreatePool(ctx context.Context, pool *stosv1.Pool) (string, error)
}

Pool provides access to StorageOS Pools.

type Reconciler

type Reconciler struct {
	client.Client
	// contains filtered or unexported fields
}

Reconciler reconciles a Pool object

func NewReconciler

func NewReconciler(
	api Pool,
	k8s client.Client,
	recorder record.EventRecorder) *Reconciler

NewReconciler returns a new SharedVolumeAPIReconciler.

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*Reconciler) SetupWithManager

func (r *Reconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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