storage

package
v0.0.0-...-48ff17a Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type AccessApplier

type AccessApplier struct {
	Domain domain.Domain

	APIReader    client.Reader
	Client       client.Client
	TargetClient client.Client
}

func (*AccessApplier) ApplyAccess

func (r *AccessApplier) ApplyAccess(ctx context.Context, log logr.Logger, volume, targetVolume *storagev1alpha1.Volume) (*storagev1alpha1.VolumeAccess, error)

type ProxyVolumeApplier

type ProxyVolumeApplier struct {
	TargetClient client.Client
	ClusterName  string
	Scheme       *runtime.Scheme
}

func (*ProxyVolumeApplier) ApplyTarget

func (*ProxyVolumeApplier) DeleteTarget

func (r *ProxyVolumeApplier) DeleteTarget(ctx context.Context, volume *storagev1alpha1.Volume) (done bool, err error)

func (*ProxyVolumeApplier) GetTarget

type SyncVolumeApplier

type SyncVolumeApplier struct {
	Provider         provider.Provider
	TargetPoolName   string
	TargetPoolLabels map[string]string
	ClusterName      string

	Unclaimable bool

	TargetClient client.Client
}

func (*SyncVolumeApplier) ApplyTarget

func (*SyncVolumeApplier) DeleteTarget

func (r *SyncVolumeApplier) DeleteTarget(ctx context.Context, volume *storagev1alpha1.Volume) (done bool, err error)

func (*SyncVolumeApplier) GetTarget

type VolumeApplier

type VolumeApplier interface {
	ApplyTarget(ctx context.Context, volume *storagev1alpha1.Volume) (*storagev1alpha1.Volume, bool, error)
	GetTarget(ctx context.Context, volume *storagev1alpha1.Volume) (*storagev1alpha1.Volume, error)
	DeleteTarget(ctx context.Context, volume *storagev1alpha1.Volume) (done bool, err error)
}

type VolumePoolReconciler

type VolumePoolReconciler struct {
	client.Client

	Target client.Client

	PoolName            string
	ProviderID          string
	InitPoolLabels      map[string]string
	InitPoolAnnotations map[string]string

	TargetPoolLabels map[string]string
	TargetPoolName   string

	ClusterName string
	Domain      domain.Domain
}

func (*VolumePoolReconciler) Reconcile

func (r *VolumePoolReconciler) Reconcile(ctx context.Context, _ ctrl.Request) (ctrl.Result, error)

func (*VolumePoolReconciler) SetupWithManager

func (r *VolumePoolReconciler) SetupWithManager(mgr broker.Manager) error

Jump to

Keyboard shortcuts

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