Documentation ¶
Index ¶
- func GetSleepDuration(s geario.B, limit geario.B, r time.Duration) time.Duration
- type CRProxy
- type ImageInfo
- type Logger
- type Option
- func WithBaseClient(baseClient *http.Client) Option
- func WithBlobsSpeedLimit(limit geario.B, duration time.Duration) Option
- func WithBlockFunc(blockFunc func(info *ImageInfo) bool) Option
- func WithBlockMessage(msg string) 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 *ImageInfo) *ImageInfo) Option
- func WithPrivilegedIPs(ips []string) Option
- func WithPrivilegedNoAuth(b bool) Option
- func WithRedirectLinks(l *url.URL) Option
- func WithRetry(retry int, retryInterval time.Duration) Option
- func WithSimpleAuth(b bool, tokenURL string) 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 Option ¶
type Option func(c *CRProxy)
func WithBaseClient ¶
func WithBlockFunc ¶
func WithBlockMessage ¶ added in v0.8.0
func WithDefaultRegistry ¶ added in v0.8.0
func WithDisableKeepAlives ¶
func WithDisableTagsList ¶
func WithDomainAlias ¶
func WithLimitDelay ¶
func WithLinkExpires ¶
func WithLogger ¶
func WithPathInfoModifyFunc ¶
func WithPrivilegedIPs ¶
func WithPrivilegedNoAuth ¶ added in v0.8.0
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.