Documentation
¶
Overview ¶
Package r2 provides sync controllers for managing Cloudflare R2 resources.
Index ¶
Constants ¶
const (
// BucketFinalizerName is the finalizer for R2Bucket SyncState resources.
BucketFinalizerName = "r2bucket.sync.cloudflare-operator.io/finalizer"
)
const (
// DomainFinalizerName is the finalizer for R2BucketDomain SyncState resources.
DomainFinalizerName = "r2bucketdomain.sync.cloudflare-operator.io/finalizer"
)
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 ¶
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 ¶
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.