Documentation ¶
Index ¶
- func GetSleepDuration(s geario.B, limit geario.B, r time.Duration) time.Duration
- type CRProxy
- type Logger
- type ModifyInfo
- type Option
- func WithBaseClient(baseClient *http.Client) Option
- func WithBlobsSpeedLimit(limit geario.B, duration time.Duration) Option
- func WithBlockFunc(blockFunc func(info *PathInfo) 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) Option
- func WithMaxClientSizeForEachRegistry(clientSize int) Option
- func WithPathInfoModifyFunc(modify func(info *ModifyInfo) *ModifyInfo) Option
- func WithPrivilegedIPs(ips []string) Option
- func WithRedirectLinks(l *url.URL) 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 Token
- 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) AuthToken ¶ added in v0.8.0
func (c *CRProxy) AuthToken(rw http.ResponseWriter, r *http.Request)
func (*CRProxy) SyncImageLayer ¶
func (c *CRProxy) SyncImageLayer(ctx context.Context, image string, filter func(pf manifestlist.PlatformSpec) bool, cb func(sp SyncProgress) error) error
type ModifyInfo ¶
type Option ¶
type Option func(c *CRProxy)
func WithBaseClient ¶
func WithBlockFunc ¶
func WithDefaultRegistry ¶ added in v0.8.0
func WithDisableKeepAlives ¶
func WithDisableTagsList ¶
func WithDomainAlias ¶
func WithLimitDelay ¶
func WithLinkExpires ¶
func WithLogger ¶
func WithPathInfoModifyFunc ¶
func WithPathInfoModifyFunc(modify func(info *ModifyInfo) *ModifyInfo) Option
func WithPrivilegedIPs ¶
func WithRedirectLinks ¶
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"` }
Click to show internal directories.
Click to hide internal directories.