lazyCredsOpener obtains Application Default Credentials on the first call to OpenTopicURL/OpenSubscriptionURL.
| 123 | // lazyCredsOpener obtains Application Default Credentials on the first call |
| 124 | // to OpenTopicURL/OpenSubscriptionURL. |
| 125 | type lazyCredsOpener struct { |
| 126 | init sync.Once |
| 127 | opener *URLOpener |
| 128 | err error |
| 129 | } |
| 130 | |
| 131 | func (o *lazyCredsOpener) defaultConn(ctx context.Context) (*URLOpener, error) { |
| 132 | o.init.Do(func() { |
nothing calls this directly
no outgoing calls
no test coverage detected