com.foilen.infra.api.model.machine.model.IPApplicationDefinitionVolume Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of foilen-infra-api Show documentation
Show all versions of foilen-infra-api Show documentation
This is the infra service API
The newest version!
/*
Foilen Infra API
https://github.com/foilen/foilen-infra-api
Copyright (c) 2017-2021 Foilen (https://foilen.com)
The MIT License
http://opensource.org/licenses/MIT
*/
package com.foilen.infra.api.model.machine.model;
import com.foilen.smalltools.restapi.model.AbstractApiBase;
public class IPApplicationDefinitionVolume extends AbstractApiBase {
private String hostFolder;
private String containerFsFolder;
private Long ownerId;
private Long groupId;
private String permissions;
private boolean readOnly;
public IPApplicationDefinitionVolume() {
}
/**
* Will just create a volume without mounting a folder. Good for discardable volumes.
*
* @param containerFsFolder
* the path inside the container
*
*/
public IPApplicationDefinitionVolume(String containerFsFolder) {
this.containerFsFolder = containerFsFolder;
}
/**
* Mount a file or folder without changing its permissions.
*
* @param hostFolder
* the path on the host
* @param containerFsFolder
* the path inside the container
*/
public IPApplicationDefinitionVolume(String hostFolder, String containerFsFolder) {
this.hostFolder = hostFolder;
this.containerFsFolder = containerFsFolder;
}
/**
* A volume where the host's file or folder will have its owner/group/permissions changed.
*
* @param hostFolder
* the path on the host
* @param containerFsFolder
* the path inside the container
* @param ownerId
* the owner
* @param groupId
* the group
* @param permissions
* the permissions
*/
public IPApplicationDefinitionVolume(String hostFolder, String containerFsFolder, Long ownerId, Long groupId, String permissions) {
this.hostFolder = hostFolder;
this.containerFsFolder = containerFsFolder;
this.ownerId = ownerId;
this.groupId = groupId;
this.permissions = permissions;
}
/**
* A volume where the host's file or folder will have its owner/group/permissions changed.
*
* @param hostFolder
* the path on the host
* @param containerFsFolder
* the path inside the container
* @param ownerId
* the owner
* @param groupId
* the group
* @param permissions
* the permissions
* @param readOnly
* if the volume should be mounted as read-only
*/
public IPApplicationDefinitionVolume(String hostFolder, String containerFsFolder, Long ownerId, Long groupId, String permissions, boolean readOnly) {
this.hostFolder = hostFolder;
this.containerFsFolder = containerFsFolder;
this.ownerId = ownerId;
this.groupId = groupId;
this.permissions = permissions;
this.readOnly = readOnly;
}
public String getContainerFsFolder() {
return containerFsFolder;
}
public Long getGroupId() {
return groupId;
}
public String getHostFolder() {
return hostFolder;
}
public Long getOwnerId() {
return ownerId;
}
public String getPermissions() {
return permissions;
}
public boolean isReadOnly() {
return readOnly;
}
public void setContainerFsFolder(String containerFsFolder) {
this.containerFsFolder = containerFsFolder;
}
public void setGroupId(Long groupId) {
this.groupId = groupId;
}
public void setHostFolder(String hostFolder) {
this.hostFolder = hostFolder;
}
public void setOwnerId(Long ownerId) {
this.ownerId = ownerId;
}
public void setPermissions(String permissions) {
this.permissions = permissions;
}
public void setReadOnly(boolean readOnly) {
this.readOnly = readOnly;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy