Package land.oras

Class OCILayout.Builder

java.lang.Object
land.oras.OCILayout.Builder
Enclosing class:
OCILayout

public static class OCILayout.Builder extends Object
Builder for the registry
  • Method Details

    • defaults

      public OCILayout.Builder defaults(Path path)
      Return a new builder with default path.

      If path ends with .tar the layout is considered to be tar-backed. When the tar file already exists it is extracted to a temporary directory; that temporary directory is used as the working path for all operations. After every mutating operation the working directory is re-packed into the original tar file. If the tar file does not yet exist a fresh, empty layout is created in the temporary directory and packed once on the first mutation.

      Parameters:
      path - The path (directory or .tar file)
      Returns:
      The builder
    • builder

      public static OCILayout.Builder builder()
      Return a new builder
      Returns:
      The builder
    • build

      public OCILayout build()
      Build the registry
      Returns:
      The registry