zotregistry.dev/zot@v1.4.4-0.20240314164342-eec277e14d20/pkg/extensions/sync/on_demand_disabled.go (about)

     1  //go:build !sync
     2  // +build !sync
     3  
     4  package sync
     5  
     6  import "context"
     7  
     8  type BaseOnDemand struct{}
     9  
    10  func (onDemand *BaseOnDemand) SyncImage(ctx context.Context, repo, reference string) error {
    11  	return nil
    12  }
    13  
    14  func (onDemand *BaseOnDemand) SyncReference(ctx context.Context, repo string, subjectDigestStr string,
    15  	referenceType string,
    16  ) error {
    17  	return nil
    18  }