Documentation ¶
Index ¶
- Constants
- func NewController(ctx context.Context, cmw configmap.Watcher) *controller.Impl
- type FilterBuilder
- type FilterOption
- type Reconciler
- func (r *Reconciler) BuildAdapter(src v1alpha1.EventSource, sinkURI *apis.URL) *appsv1.Deployment
- func (r *Reconciler) FinalizeKind(ctx context.Context, o *v1alpha1.GoogleCloudAuditLogsSource) reconciler.Event
- func (r *Reconciler) RBACOwners(namespace string) ([]kmeta.OwnerRefable, error)
- func (r *Reconciler) ReconcileKind(ctx context.Context, o *v1alpha1.GoogleCloudAuditLogsSource) reconciler.Event
Constants ¶
View Source
const ( // ReasonSubscribed indicates that a source subscribed to change // notifications from a Cloud Audit Logs Sink. ReasonSubscribed = "Subscribed" // ReasonUnsubscribed indicates that a source unsubscribed from change // notifications from a Cloud Audit Logs Sink. ReasonUnsubscribed = "Unsubscribed" // ReasonFailedSubscribe indicates a failure while synchronizing the // notification configuration of a Cloud Audit Logs Sink, or the Pub/Sub // subscription it depends on. ReasonFailedSubscribe = "FailedSubscribe" // ReasonFailedUnsubscribe indicates a failure while deleting the // notification configuration of a Cloud Audit Logs Sink, or the Pub/Sub // subscription it depends on. ReasonFailedUnsubscribe = "FailedUnsubscribe" )
Variables ¶
This section is empty.
Functions ¶
func NewController ¶
NewController creates a Reconciler for the event source and returns the result of NewImpl.
Types ¶
type FilterBuilder ¶
type FilterBuilder struct {
// contains filtered or unexported fields
}
Google Cloud Audit Logs filter builder. Currently supports querying by the Audit Logs serviceName, methodName (requireds), and resourceName (optional).
func NewFilterBuilder ¶
func NewFilterBuilder(serviceName, methodName string, opts ...FilterOption) *FilterBuilder
func (*FilterBuilder) GetFilter ¶
func (fb *FilterBuilder) GetFilter() string
type FilterOption ¶
type FilterOption func(*FilterBuilder)
func WithResourceName ¶
func WithResourceName(resourceName string) FilterOption
type Reconciler ¶
type Reconciler struct {
// contains filtered or unexported fields
}
Reconciler implements controller.Reconciler for the event source type.
func (*Reconciler) BuildAdapter ¶
func (r *Reconciler) BuildAdapter(src v1alpha1.EventSource, sinkURI *apis.URL) *appsv1.Deployment
BuildAdapter implements common.AdapterDeploymentBuilder.
func (*Reconciler) FinalizeKind ¶
func (r *Reconciler) FinalizeKind(ctx context.Context, o *v1alpha1.GoogleCloudAuditLogsSource) reconciler.Event
FinalizeKind is called when the resource is deleted.
func (*Reconciler) RBACOwners ¶
func (r *Reconciler) RBACOwners(namespace string) ([]kmeta.OwnerRefable, error)
RBACOwners implements common.AdapterDeploymentBuilder.
func (*Reconciler) ReconcileKind ¶
func (r *Reconciler) ReconcileKind(ctx context.Context, o *v1alpha1.GoogleCloudAuditLogsSource) reconciler.Event
ReconcileKind implements Interface.ReconcileKind.
Click to show internal directories.
Click to hide internal directories.