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