Documentation ¶
Index ¶
- func GetSleepDuration(s geario.B, limit geario.B, r time.Duration) time.Duration
- type BlockInfo
- type CRProxy
- type ImageInfo
- type InfoCtxValue
- type Option
- func WithAllowHeadMethod(allowHeadMethod bool) Option
- func WithAuthenticator(authenticator *token.Authenticator) Option
- func WithBaseClient(baseClient *http.Client) Option
- func WithBlobsSpeedLimit(limit geario.B, duration time.Duration) Option
- func WithBlockFunc(blockFunc func(info *BlockInfo) (string, bool)) Option
- func WithDefaultRegistry(target string) Option
- func WithDisableKeepAlives(disableKeepAlives []string) Option
- func WithDisableTagsList(b bool) Option
- func WithDomainAlias(domainAlias map[string]string) Option
- func WithIPsSpeedLimit(limit geario.B, duration time.Duration) Option
- func WithLimitDelay(b bool) Option
- func WithLinkExpires(d time.Duration) Option
- func WithLogger(logger logger.Logger) Option
- func WithManifestCacheDuration(d time.Duration) Option
- func WithMaxClientSizeForEachRegistry(clientSize int) Option
- func WithOverrideDefaultRegistry(overrideDefaultRegistry map[string]string) Option
- func WithPathInfoModifyFunc(modify func(info *ImageInfo) *ImageInfo) Option
- func WithPrivilegedFunc(f func(r *http.Request, info *ImageInfo) bool) Option
- func WithPrivilegedNoAuth(b bool) Option
- func WithRedirectLinks(l *url.URL) Option
- func WithRedirectToOriginBlobFunc(f func(r *http.Request, info *ImageInfo) bool) Option
- func WithRetry(retry int, retryInterval time.Duration) Option
- func WithSimpleAuth(b bool) Option
- func WithStorageDriver(storageDriver storagedriver.StorageDriver) Option
- func WithTotalBlobsSpeedLimit(limit geario.B) Option
- func WithUserAndPass(userAndPass map[string]Userpass) Option
- type PathInfo
- type SyncProgress
- type Userpass
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CRProxy ¶
type CRProxy struct {
// contains filtered or unexported fields
}
func NewCRProxy ¶
func (*CRProxy) SyncImageLayer ¶
func (c *CRProxy) SyncImageLayer(ctx context.Context, ip, image string, filter func(pf manifestlist.PlatformSpec) bool, cb func(sp SyncProgress) error) error
type InfoCtxValue ¶ added in v0.9.0
type InfoCtxValue struct {
LastRedirect string
}
func GetCtxValue ¶ added in v0.9.0
func GetCtxValue(ctx context.Context) *InfoCtxValue
type Option ¶
type Option func(c *CRProxy)
func WithAllowHeadMethod ¶ added in v0.12.0
func WithAuthenticator ¶
func WithAuthenticator(authenticator *token.Authenticator) Option
func WithBaseClient ¶
func WithDefaultRegistry ¶ added in v0.8.0
func WithDisableKeepAlives ¶
func WithDisableTagsList ¶
func WithDomainAlias ¶
func WithLimitDelay ¶
func WithLinkExpires ¶
func WithLogger ¶
func WithManifestCacheDuration ¶ added in v0.12.0
func WithOverrideDefaultRegistry ¶ added in v0.8.0
func WithPathInfoModifyFunc ¶
func WithPrivilegedFunc ¶ added in v0.9.0
func WithPrivilegedNoAuth ¶ added in v0.8.0
func WithRedirectLinks ¶
func WithRedirectToOriginBlobFunc ¶ added in v0.9.0
func WithSimpleAuth ¶ added in v0.8.0
func WithStorageDriver ¶
func WithStorageDriver(storageDriver storagedriver.StorageDriver) Option
func WithUserAndPass ¶
type PathInfo ¶
func ParseOriginPathInfo ¶
type SyncProgress ¶
type SyncProgress struct { Digest string `json:"digest,omitempty"` Size int64 `json:"size,omitempty"` Status string `json:"status,omitempty"` Platform *manifestlist.PlatformSpec `json:"platform,omitempty"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.