Documentation ¶
Index ¶
- Constants
- func NewController(ctx context.Context, cmw configmap.Watcher) *controller.Impl
- type Reconciler
- func (c *Reconciler) EnsureNotification(ctx context.Context, storage *v1alpha1.Storage) (ops.OpsJobStatus, error)
- func (c *Reconciler) EnsureNotificationDeleted(ctx context.Context, UID string, owner kmeta.OwnerRefable, ...) (ops.OpsJobStatus, error)
- func (c *Reconciler) Reconcile(ctx context.Context, key string) error
Constants ¶
View Source
const (
// ReconcilerName is the name of the reconciler
ReconcilerName = "Storage"
)
Variables ¶
This section is empty.
Functions ¶
func NewController ¶
NewController initializes the controller and is called by the generated code Registers event handlers to enqueue events
Types ¶
type Reconciler ¶
type Reconciler struct { *reconciler.PubSubBase // Image to use for launching jobs that operate on notifications NotificationOpsImage string // contains filtered or unexported fields }
Reconciler is the controller implementation for Google Cloud Storage (GCS) event notifications.
func (*Reconciler) EnsureNotification ¶
func (c *Reconciler) EnsureNotification(ctx context.Context, storage *v1alpha1.Storage) (ops.OpsJobStatus, error)
func (*Reconciler) EnsureNotificationDeleted ¶
func (c *Reconciler) EnsureNotificationDeleted(ctx context.Context, UID string, owner kmeta.OwnerRefable, secret corev1.SecretKeySelector, project, bucket, notificationId string) (ops.OpsJobStatus, error)
Click to show internal directories.
Click to hide internal directories.