csi_replicator

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2021 License: Apache-2.0 Imports: 25 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	ReadyState                 = "Ready"
	InvalidState               = "Invalid"
	ErrorState                 = "Error"
	NoState                    = ""
	InProgress                 = "IN_PROGRESS"
	DeletingState              = "Deleting"
	Action                     = "Action"
	MaxRetryDurationForActions = 1 * time.Hour
	MaxNumberOfConditions      = 20
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionAnnotation

type ActionAnnotation struct {
	ActionName            string `json:"name"`
	Completed             bool   `json:"completed"`
	FinalError            string `json:"finalError"`
	FinishTime            string `json:"finishTime"`
	ProtectionGroupStatus string `json:"protectionGroupStatus"`
}

type ActionResult

type ActionResult struct {
	ActionType   ActionType
	Time         time.Time
	Error        error
	IsFinalError bool
	PGStatus     *csiext.StorageProtectionGroupStatus
}

type ActionType

type ActionType string

func (ActionType) Equals

func (a ActionType) Equals(val string) bool

func (ActionType) String

func (a ActionType) String() string

type PersistentVolumeClaimReconciler

type PersistentVolumeClaimReconciler struct {
	client.Client
	Log               logr.Logger
	Scheme            *runtime.Scheme
	EventRecorder     record.EventRecorder
	DriverName        string
	ReplicationClient csireplication.Replication
	ContextPrefix     string
	SingleFlightGroup singleflight.Group
	Domain            string
}

PersistentVolumeClaimReconciler reconciles a PersistentVolumeClaim object

func (*PersistentVolumeClaimReconciler) Reconcile

func (*PersistentVolumeClaimReconciler) SetupWithManager

func (r *PersistentVolumeClaimReconciler) SetupWithManager(mgr ctrl.Manager, limiter ratelimiter.RateLimiter, maxReconcilers int) error

type PersistentVolumeReconciler

type PersistentVolumeReconciler struct {
	client.Client
	Log               logr.Logger
	Scheme            *runtime.Scheme
	EventRecorder     record.EventRecorder
	DriverName        string
	ReplicationClient csireplication.Replication
	ContextPrefix     string
	SingleFlightGroup singleflight.Group
	Domain            string
}

func (*PersistentVolumeReconciler) Reconcile

func (*PersistentVolumeReconciler) SetupWithManager

func (r *PersistentVolumeReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, limiter ratelimiter.RateLimiter, maxReconcilers int) error

type ReplicationGroupMonitoring

type ReplicationGroupMonitoring struct {
	client.Client
	EventRecorder      record.EventRecorder
	Log                logr.Logger
	DriverName         string
	ReplicationClient  csireplication.Replication
	MonitoringInterval time.Duration
}

func (*ReplicationGroupMonitoring) Monitor

Monitor polls RGs over a defined interval and updates the ReplicationLinkStatus depending on the response received from the driver.

type ReplicationGroupReconciler

type ReplicationGroupReconciler struct {
	client.Client
	Log                        logr.Logger
	Scheme                     *runtime.Scheme
	EventRecorder              record.EventRecorder
	DriverName                 string
	ReplicationClient          csireplication.Replication
	SupportedActions           []*csiext.SupportedActions
	MaxRetryDurationForActions time.Duration
}

func (*ReplicationGroupReconciler) Reconcile

func (*ReplicationGroupReconciler) SetupWithManager

func (r *ReplicationGroupReconciler) SetupWithManager(mgr ctrl.Manager, limiter ratelimiter.RateLimiter, maxReconcilers int) error

Jump to

Keyboard shortcuts

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