| Package | Description |
|---|---|
| com.google.cloud.tools.jib.api | |
| com.google.cloud.tools.jib.configuration | |
| com.google.cloud.tools.jib.image | |
| com.google.cloud.tools.jib.plugins.common |
| Modifier and Type | Field and Description |
|---|---|
static BiFunction<Path,AbsoluteUnixPath,FilePermissions> |
LayerConfiguration.DEFAULT_FILE_PERMISSIONS_PROVIDER
Provider that returns default file permissions (644 for files, 755 for directories).
|
static BiFunction<Path,AbsoluteUnixPath,Instant> |
LayerConfiguration.DEFAULT_MODIFICATION_TIME_PROVIDER
Provider that returns default file modification time (EPOCH + 1 second).
|
| Modifier and Type | Method and Description |
|---|---|
static AbsoluteUnixPath |
AbsoluteUnixPath.fromPath(Path path)
Gets a new
AbsoluteUnixPath from a Path. |
static AbsoluteUnixPath |
AbsoluteUnixPath.get(String unixPath)
Gets a new
AbsoluteUnixPath from a Unix-style path string. |
AbsoluteUnixPath |
LayerEntry.getExtractionPath()
Gets the extraction path.
|
AbsoluteUnixPath |
AbsoluteUnixPath.resolve(Path relativePath)
Resolves this path against another relative path (by the name elements of
relativePath). |
AbsoluteUnixPath |
AbsoluteUnixPath.resolve(RelativeUnixPath relativeUnixPath)
Resolves this path against another relative path.
|
AbsoluteUnixPath |
AbsoluteUnixPath.resolve(String relativeUnixPath)
Resolves this path against another relative Unix path in string form.
|
| Modifier and Type | Method and Description |
|---|---|
LayerConfiguration.Builder |
LayerConfiguration.Builder.addEntry(Path sourceFile,
AbsoluteUnixPath pathInContainer)
Adds an entry to the layer.
|
LayerConfiguration.Builder |
LayerConfiguration.Builder.addEntry(Path sourceFile,
AbsoluteUnixPath pathInContainer,
FilePermissions permissions)
Adds an entry to the layer with the given permissions.
|
LayerConfiguration.Builder |
LayerConfiguration.Builder.addEntry(Path sourceFile,
AbsoluteUnixPath pathInContainer,
FilePermissions permissions,
Instant modificationTime)
Adds an entry to the layer with the given permissions and file modification time.
|
LayerConfiguration.Builder |
LayerConfiguration.Builder.addEntry(Path sourceFile,
AbsoluteUnixPath pathInContainer,
Instant modificationTime)
Adds an entry to the layer with the given file modification time.
|
LayerConfiguration.Builder |
LayerConfiguration.Builder.addEntryRecursive(Path sourceFile,
AbsoluteUnixPath pathInContainer)
Adds an entry to the layer.
|
LayerConfiguration.Builder |
LayerConfiguration.Builder.addEntryRecursive(Path sourceFile,
AbsoluteUnixPath pathInContainer,
BiFunction<Path,AbsoluteUnixPath,FilePermissions> filePermissionProvider)
Adds an entry to the layer.
|
LayerConfiguration.Builder |
LayerConfiguration.Builder.addEntryRecursive(Path sourceFile,
AbsoluteUnixPath pathInContainer,
BiFunction<Path,AbsoluteUnixPath,FilePermissions> filePermissionProvider,
BiFunction<Path,AbsoluteUnixPath,Instant> modificationTimeProvider)
Adds an entry to the layer.
|
JibContainerBuilder |
JibContainerBuilder.addLayer(List<Path> files,
AbsoluteUnixPath pathInContainer)
Adds a new layer to the container with
files as the source files and pathInContainer as the path to copy the source files to in the container file system. |
JibContainerBuilder |
JibContainerBuilder.addVolume(AbsoluteUnixPath volume)
Adds a directory that may hold an externally mounted volume.
|
JavaContainerBuilder |
JavaContainerBuilder.setAppRoot(AbsoluteUnixPath appRoot)
Sets the app root of the container image (useful for building WAR containers).
|
JibContainerBuilder |
JibContainerBuilder.setVolumes(AbsoluteUnixPath... volumes)
Sets the directories that may hold externally mounted volumes.
|
JibContainerBuilder |
JibContainerBuilder.setWorkingDirectory(AbsoluteUnixPath workingDirectory)
Sets the working directory in the container.
|
| Modifier and Type | Method and Description |
|---|---|
LayerConfiguration.Builder |
LayerConfiguration.Builder.addEntryRecursive(Path sourceFile,
AbsoluteUnixPath pathInContainer,
BiFunction<Path,AbsoluteUnixPath,FilePermissions> filePermissionProvider)
Adds an entry to the layer.
|
LayerConfiguration.Builder |
LayerConfiguration.Builder.addEntryRecursive(Path sourceFile,
AbsoluteUnixPath pathInContainer,
BiFunction<Path,AbsoluteUnixPath,FilePermissions> filePermissionProvider,
BiFunction<Path,AbsoluteUnixPath,Instant> modificationTimeProvider)
Adds an entry to the layer.
|
LayerConfiguration.Builder |
LayerConfiguration.Builder.addEntryRecursive(Path sourceFile,
AbsoluteUnixPath pathInContainer,
BiFunction<Path,AbsoluteUnixPath,FilePermissions> filePermissionProvider,
BiFunction<Path,AbsoluteUnixPath,Instant> modificationTimeProvider)
Adds an entry to the layer.
|
JavaContainerBuilder |
JavaContainerBuilder.setModificationTimeProvider(BiFunction<Path,AbsoluteUnixPath,Instant> modificationTimeProvider)
Sets the modification time provider for container files.
|
JibContainerBuilder |
JibContainerBuilder.setVolumes(Set<AbsoluteUnixPath> volumes)
Sets the directories that may hold externally mounted volumes.
|
| Constructor and Description |
|---|
LayerEntry(Path sourceFile,
AbsoluteUnixPath extractionPath,
FilePermissions permissions,
Instant modificationTime)
Instantiates with a source file and the path to place the source file in the container file
system.
|
| Modifier and Type | Method and Description |
|---|---|
AbsoluteUnixPath |
ContainerConfiguration.getWorkingDirectory() |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.ImmutableSet<AbsoluteUnixPath> |
ContainerConfiguration.getVolumes() |
| Modifier and Type | Method and Description |
|---|---|
void |
ContainerConfiguration.Builder.addVolume(AbsoluteUnixPath volume) |
ContainerConfiguration.Builder |
ContainerConfiguration.Builder.setWorkingDirectory(AbsoluteUnixPath workingDirectory)
Sets the working directory in the container.
|
| Modifier and Type | Method and Description |
|---|---|
ContainerConfiguration.Builder |
ContainerConfiguration.Builder.setVolumes(Set<AbsoluteUnixPath> volumes)
Sets the container's volumes.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.ImmutableSet<AbsoluteUnixPath> |
Image.getVolumes() |
| Modifier and Type | Method and Description |
|---|---|
Image.Builder |
Image.Builder.addVolumes(Set<AbsoluteUnixPath> volumes)
Adds items to the "Volumes" field in the container configuration.
|
| Modifier and Type | Method and Description |
|---|---|
Map<AbsoluteUnixPath,FilePermissions> |
RawConfiguration.getExtraDirectoryPermissions() |
| Modifier and Type | Method and Description |
|---|---|
static LayerConfiguration |
JavaContainerBuilderHelper.extraDirectoryLayerConfiguration(Path extraDirectory,
Map<AbsoluteUnixPath,FilePermissions> extraDirectoryPermissions,
BiFunction<Path,AbsoluteUnixPath,Instant> modificationTimeProvider)
Returns a
LayerConfiguration for adding the extra directory to the container. |
static LayerConfiguration |
JavaContainerBuilderHelper.extraDirectoryLayerConfiguration(Path extraDirectory,
Map<AbsoluteUnixPath,FilePermissions> extraDirectoryPermissions,
BiFunction<Path,AbsoluteUnixPath,Instant> modificationTimeProvider)
Returns a
LayerConfiguration for adding the extra directory to the container. |
Copyright © 2019. All rights reserved.