controllers

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ImageRBDIDPrefix    = "img_"
	SnapshotRBDIDPrefix = "snap_"

	ImageSnapshotVersion = "v1"
)
View Source
const (
	LimitMetadataPrefix = "conf_"
	WWNKey              = "wwn"
)
View Source
const (
	ImageFinalizer = "image"
)
View Source
const (
	SnapshotFinalizer = "snapshot"
)

Variables

This section is empty.

Functions

func ImageIDToRBDID

func ImageIDToRBDID(imageID string) string

func SnapshotIDToRBDID

func SnapshotIDToRBDID(snapshotID string) string

Types

type ImageReconciler

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

func NewImageReconciler

func NewImageReconciler(
	log logr.Logger,
	conn *rados.Conn,
	registry image.Source,
	images store.Store[*api.Image],
	snapshots store.Store[*api.Snapshot],
	imageEvents event.Source[*api.Image],
	snapshotEvents event.Source[*api.Snapshot],
	keyEncryption encryption.Encryptor,
	opts ImageReconcilerOptions,
) (*ImageReconciler, error)

func (*ImageReconciler) Start

func (r *ImageReconciler) Start(ctx context.Context) error

type ImageReconcilerOptions

type ImageReconcilerOptions struct {
	Monitors string
	Client   string
	Pool     string
}

type SnapshotReconciler

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

func NewSnapshotReconciler

func NewSnapshotReconciler(
	log logr.Logger,
	conn *rados.Conn,
	registry image.Source,
	store store.Store[*api.Snapshot],
	events event.Source[*api.Snapshot],
	opts SnapshotReconcilerOptions,
) (*SnapshotReconciler, error)

func (*SnapshotReconciler) Start

func (r *SnapshotReconciler) Start(ctx context.Context) error

type SnapshotReconcilerOptions

type SnapshotReconcilerOptions struct {
	Pool                string
	PopulatorBufferSize int64
}

Jump to

Keyboard shortcuts

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