Package land.oras

Class CopyUtils

java.lang.Object
land.oras.CopyUtils

public final class CopyUtils extends Object
Copy utility class.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final org.slf4j.Logger
    The logger
  • Method Summary

    Modifier and Type
    Method
    Description
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • LOG

      protected static final org.slf4j.Logger LOG
      The 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 type
      TargetRefType - The target reference type
      Parameters:
      source - The source OCI
      sourceRef - The source reference
      target - The target OCI
      targetRef - The target reference
      recursive - Whether to copy referrers recursively