Package land.oras
Class OCILayout.Builder
java.lang.Object
land.oras.OCILayout.Builder
- Enclosing class:
- OCILayout
Builder for the registry
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the registrystatic OCILayout.Builderbuilder()Return a new builderReturn a new builder with default path.
-
Method Details
-
defaults
Return a new builder with default path.If
pathends with.tarthe 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 workingpathfor 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.tarfile)- Returns:
- The builder
-
builder
Return a new builder- Returns:
- The builder
-
build
Build the registry- Returns:
- The registry
-