func (c *elasticContainerRegistry) ShouldRefreshAuth() (bool, *time.Duration) {
	if c.repoDetails.Auth.Empty() || c.repoDetails.Auth.ExpiresAt == nil {
		return true, nil
	}
	d := time.Until(*c.repoDetails.Auth.ExpiresAt)
	if d <= advanceExpiry {
		return true, nil
	}
	nextCheckDuration := d - advanceExpiry
	return false, &nextCheckDuration
}
// ShouldRefreshAuth checks if the repoDetails should be refreshed.
ShouldRefreshAuth checks if the repoDetails should be refreshed.
// ShouldRefreshAuth checks if the repoDetails should be refreshed .
func (c *elasticContainerRegistry) ShouldRefreshAuth() (bool, *time.Duration) {
	if c.repoDetails.Auth.Empty() || c.repoDetails.Auth.ExpiresAt == nil {
		return true, nil
	}
	d := time.Until(*c.repoDetails.Auth.ExpiresAt)
	if d <= advanceExpiry {
		return true, nil
	}
	nextCheckDuration := d - advanceExpiry
	return false, &nextCheckDuration
}
func ( c * elasticContainerRegistry ) ShouldRefreshAuth ( ) ( bool , * time . Duration ) { if c . repoDetails . Auth . Empty ( ) || c . repoDetails . Auth . ExpiresAt == nil { return true , nil } d := time . Until ( * c . repoDetails . Auth . ExpiresAt ) if d <= advanceExpiry { return true , nil } nextCheckDuration := d - advanceExpiry return false , & nextCheckDuration }
ShouldRefreshAuth checks if the repoDetails should be refreshed.
ShouldRefreshAuth checks if the repoDetails should be refreshed .