Package land.oras
Class CopyUtils
java.lang.Object
land.oras.CopyUtils
Copy utility class.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic <SourceRefType extends Ref<@NonNull SourceRefType>,
TargetRefType extends Ref<@NonNull TargetRefType>>
voidcopy
(OCI<SourceRefType> source, SourceRefType sourceRef, OCI<TargetRefType> target, TargetRefType targetRef, boolean recursive) Copy a container from source to target.
-
Field Details
-
LOG
protected static final org.slf4j.Logger LOGThe logger
-
-
Method Details
-
copy
public static <SourceRefType extends Ref<@NonNull SourceRefType>,TargetRefType extends Ref<@NonNull TargetRefType>> void copy(OCI<SourceRefType> source, SourceRefType sourceRef, OCI<TargetRefType> target, TargetRefType targetRef, boolean recursive) Copy a container from source to target.- Type Parameters:
SourceRefType
- The source reference typeTargetRefType
- The target reference type- Parameters:
source
- The source OCIsourceRef
- The source referencetarget
- The target OCItargetRef
- The target referencerecursive
- Whether to copy referrers recursively
-