(ctx context.Context, u *url.URL)
| 161 | } |
| 162 | |
| 163 | func (o *lazyCredsOpener) OpenTopicURL(ctx context.Context, u *url.URL) (*pubsub.Topic, error) { |
| 164 | opener, err := o.defaultConn(ctx) |
| 165 | if err != nil { |
| 166 | return nil, fmt.Errorf("open topic %v: failed to open default connection: %v", u, err) |
| 167 | } |
| 168 | return opener.OpenTopicURL(ctx, u) |
| 169 | } |
| 170 | |
| 171 | func (o *lazyCredsOpener) OpenSubscriptionURL(ctx context.Context, u *url.URL) (*pubsub.Subscription, error) { |
| 172 | opener, err := o.defaultConn(ctx) |
nothing calls this directly
no test coverage detected