r2

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package r2 provides sync controllers for managing Cloudflare R2 resources.

Index

Constants

View Source
const (
	// BucketFinalizerName is the finalizer for R2Bucket SyncState resources.
	BucketFinalizerName = "r2bucket.sync.cloudflare-operator.io/finalizer"
)
View Source
const (
	// DomainFinalizerName is the finalizer for R2BucketDomain SyncState resources.
	DomainFinalizerName = "r2bucketdomain.sync.cloudflare-operator.io/finalizer"
)
View Source
const (
	// NotificationFinalizerName is the finalizer for R2BucketNotification SyncState resources.
	NotificationFinalizerName = "r2bucketnotification.sync.cloudflare-operator.io/finalizer"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BucketController

type BucketController struct {
	*common.BaseSyncController
}

BucketController is the Sync Controller for R2 Bucket Configuration. It watches CloudflareSyncState resources of type R2Bucket, extracts the configuration, and syncs to Cloudflare API.

func NewBucketController

func NewBucketController(c client.Client) *BucketController

NewBucketController creates a new R2BucketSyncController

func (*BucketController) Reconcile

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

Reconcile processes a CloudflareSyncState resource for R2 bucket.

func (*BucketController) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type DomainController

type DomainController struct {
	*common.BaseSyncController
}

DomainController is the Sync Controller for R2 Bucket Custom Domain Configuration. It watches CloudflareSyncState resources of type R2BucketDomain, extracts the configuration, and syncs to Cloudflare API.

func NewDomainController

func NewDomainController(c client.Client) *DomainController

NewDomainController creates a new R2BucketDomainSyncController

func (*DomainController) Reconcile

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

Reconcile processes a CloudflareSyncState resource for R2 bucket domain.

func (*DomainController) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type NotificationController

type NotificationController struct {
	*common.BaseSyncController
}

NotificationController is the Sync Controller for R2 Bucket Notification Configuration. It watches CloudflareSyncState resources of type R2BucketNotification, extracts the configuration, and syncs to Cloudflare API.

func NewNotificationController

func NewNotificationController(c client.Client) *NotificationController

NewNotificationController creates a new R2BucketNotificationSyncController

func (*NotificationController) Reconcile

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

Reconcile processes a CloudflareSyncState resource for R2 bucket notification.

func (*NotificationController) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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