Package land.oras

Class CopyUtils

java.lang.Object
land.oras.CopyUtils

public final class CopyUtils extends Object
Copy utility class.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final record 
    Options for copy.
  • 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)
    Deprecated, for removal: This API element is subject to removal in a future version.
    static <SourceRefType extends Ref<@NonNull SourceRefType>, TargetRefType extends Ref<@NonNull TargetRefType>>
    void
    copy(OCI<SourceRefType> source, SourceRefType sourceRef, OCI<TargetRefType> target, TargetRefType targetRef, CopyUtils.CopyOptions options)
    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

      @Deprecated(forRemoval=true) 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)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use copy(OCI, Ref, OCI, Ref, CopyOptions) instead. This method will be removed in a future release.
      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 - Copy refferers
    • 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, CopyUtils.CopyOptions options)
      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
      options - The copy option