Documentation
¶
Index ¶
Constants ¶
View Source
const ( // DefaultInterval is the minimum interval to delay before // requesting another oci fetch DefaultInterval time.Duration = time.Hour )
Variables ¶
View Source
var ( DefaltDeadline = 60 * time.Second DefaultRetryInterval = 10 * time.Second DefaultRetryCount = 3 )
Functions ¶
func PullWithRetry ¶
func Start ¶
Start starts the artifact pull process in the background.
To attempt to respect the rate limits of the registry: - the pull operation has 60(DefaltDeadline) seconds to complete. - the pull operation will retry every 10 seconds. - the pull operation will try no more than 3 times. The next pull operation is scheduled after a successful pull at the interval specified in the artifact.
Types ¶
type Artifact ¶
type Artifact struct { URL string Interval time.Duration Path string // registry, repository, and reference of the artifact Registry string Repository string // tag or digest of the artifact // see https://pkg.go.dev/oras.land/oras-go/v2@v2.5.0/registry#ParseReference // for the format of the reference Reference string // credentials Credential auth.Credential // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.