CreateSubscription subscribes to events of the given types for the resource at resourceURL. Creation is idempotent: an active subscription for the same resource and set of event types is returned as is, and created reports whether the subscription is new.
(ctx context.Context, resourceURL string, eventTypes []string)
| 45 | // idempotent: an active subscription for the same resource and set of event types is returned as is, and created |
| 46 | // reports whether the subscription is new. |
| 47 | CreateSubscription(ctx context.Context, resourceURL string, eventTypes []string) (sub *Subscription, created bool, err error) |
| 48 | // GetSubscription returns the active subscription with the given ID. |
| 49 | GetSubscription(ctx context.Context, id string) (*Subscription, error) |
| 50 | // ListSubscriptions returns up to limit of the caller's active subscriptions, newest first. The limit must be |
no outgoing calls