func (c quayContainerRegistry) Ping() error {
	if !c.repoDetails.IsPrivate() {
		// quay.io root path requires authentication.
		// So skip ping for public repositories.
		return nil
	}
	url := c.url("/")
	logger.Debugf("quay container registry ping %q", url)
	resp, err := c.client.Get(url)
	if resp != nil {
		defer resp.Body.Close()
	}
	return errors.Trace(unwrapNetError(err))
}
// Ping pings the quay endpoint.
Ping pings the quay endpoint.
// Ping pings the quay endpoint .
func (c quayContainerRegistry) Ping() error {
	if !c.repoDetails.IsPrivate() {
		return nil
	}
	url := c.url("/")
	logger.Debugf("quay container registry ping %q", url)
	resp, err := c.client.Get(url)
	if resp != nil {
		defer resp.Body.Close()
	}
	return errors.Trace(unwrapNetError(err))
}
func ( c quayContainerRegistry ) Ping ( ) error { if ! c . repoDetails . IsPrivate ( ) { return nil } url := c . url ( " " ) logger . Debugf ( " " , url ) resp , err := c . client . Get ( url ) if resp != nil { defer resp . Body . Close ( ) } return errors . Trace ( unwrapNetError ( err ) ) }
Ping pings the quay endpoint.
Ping pings the quay endpoint .
// quay.io root path requires authentication. // So skip ping for public repositories.