mirror of
https://github.com/project-zot/zot.git
synced 2026-06-18 13:37:57 +08:00
14cd52e993
Signed-off-by: Vishwas Rajashekar <dev@vrajashkr.com>
36 lines
718 B
Go
36 lines
718 B
Go
//go:build !sync
|
|
|
|
package sync
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/regclient/regclient/types/manifest"
|
|
)
|
|
|
|
type BaseOnDemand struct{}
|
|
|
|
func (onDemand *BaseOnDemand) SyncImage(ctx context.Context, repo, reference string) error {
|
|
return nil
|
|
}
|
|
|
|
func (onDemand *BaseOnDemand) SyncReferrers(ctx context.Context, repo string,
|
|
subjectDigestStr string, referenceTypes []string,
|
|
) error {
|
|
return nil
|
|
}
|
|
|
|
func (onDemand *BaseOnDemand) FetchManifestForStream(
|
|
ctx context.Context, repo, reference string,
|
|
) (manifest.Manifest, error) {
|
|
return manifest.New()
|
|
}
|
|
|
|
func (onDemand *BaseOnDemand) StreamManager() StreamManager {
|
|
return nil
|
|
}
|
|
|
|
func (onDemand *BaseOnDemand) IsStreamingEnabledForRepo(_ string) bool {
|
|
return false
|
|
}
|