| Package | Description |
|---|---|
| com.google.cloud.tools.jib.api | |
| com.google.cloud.tools.jib.plugins.common |
| Modifier and Type | Field and Description |
|---|---|
static FilePermissions |
FilePermissions.DEFAULT_FILE_PERMISSIONS
Default permissions for files added to the container.
|
static FilePermissions |
FilePermissions.DEFAULT_FOLDER_PERMISSIONS
Default permissions for folders added to the container.
|
| 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).
|
| Modifier and Type | Method and Description |
|---|---|
static FilePermissions |
FilePermissions.fromOctalString(String octalPermissions)
Creates a new
FilePermissions from an octal string representation (e.g. |
static FilePermissions |
FilePermissions.fromPosixFilePermissions(Set<PosixFilePermission> posixFilePermissions)
Creates a new
FilePermissions from a set of PosixFilePermission. |
FilePermissions |
LayerEntry.getPermissions()
Gets the file permissions on the container.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
| 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.
|
| 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 |
|---|---|
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. |
Copyright © 2019. All rights reserved.