Documentation ¶
Overview ¶
Package gcrane holds libraries used to implement the gcrane CLI.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyRepository ¶
CopyRepository copies everything from the src GCR repository to the dst GCR repository.
func GCRBackoff ¶
GCRBackoff returns a retry.Backoff that is suitable for use with gcr.io.
These numbers are based on GCR's posted quotas: https://cloud.google.com/container-registry/quotas - 30k requests per 10 minutes. - 500k requests per 24 hours.
On error, we will wait for: - 6 seconds (in case of very short term 429s from GCS), then - 1 minute (in case of temporary network issues), then - 10 minutes (to get around GCR 10 minute quotas), then fail.
TODO: In theory, we could keep retrying until the next day to get around the 500k limit.