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 WithAuthenticator(authenticator *token.Authenticator) Option
- func WithBlobsSpeedLimit(limit geario.B, duration time.Duration) Option
- func WithBlockFunc(blockFunc func(info *BlockInfo) (string, bool)) Option
- func WithCache(cache *cache.Cache) Option
- func WithClient(client *clientset.Clientset) Option
- func WithDefaultRegistry(target 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 WithLogger(logger *slog.Logger) Option
- func WithManifestCacheDuration(d time.Duration) 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 WithRedirectToOriginBlobFunc(f func(r *http.Request, info *ImageInfo) bool) Option
- func WithSimpleAuth(b bool) Option
- func WithTotalBlobsSpeedLimit(limit geario.B) Option
- type PathInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
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 WithAuthenticator ¶
func WithAuthenticator(authenticator *token.Authenticator) Option
func WithClient ¶
func WithDefaultRegistry ¶ added in v0.8.0
func WithDisableTagsList ¶
func WithDomainAlias ¶
func WithLimitDelay ¶
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 WithRedirectToOriginBlobFunc ¶ added in v0.9.0
func WithSimpleAuth ¶ added in v0.8.0
Source Files ¶
Click to show internal directories.
Click to hide internal directories.