Package land.oras

Class OCI.PullOptions

java.lang.Object
land.oras.OCI.PullOptions
Enclosing class:
OCI<T extends Ref<@NonNull T>>

public static final class OCI.PullOptions extends Object
Options controlling the behavior of OCI.pullArtifact(T, java.nio.file.Path, land.oras.OCI.PullOptions) operations.
  • Method Details

    • defaults

      public static OCI.PullOptions defaults()
      Default options: do not overwrite existing files.
      Returns:
      The default pull options
    • overwrite

      public static OCI.PullOptions overwrite()
      Options that allow overwriting existing files when pulling.
      Returns:
      Pull options with overwrite enabled
    • isOverwrite

      public boolean isOverwrite()
      Return whether existing files should be overwritten.
      Returns:
      true if existing files should be overwritten