RStudio Launcher Plugin SDK
1.1.3
A software development kit for creating plugins that work the the RStudio Launcher.
|
Struct which represents the source path of an NFS Mount. More...
#include <Job.hpp>
Public Types | |
enum | Type { Type::AZURE_FILE, Type::CEPH_FS, Type::GLUSTER_FS, Type::HOST, Type::NFS, Type::PASSTHROUGH } |
Constants representing the support types of MountSource. More... | |
Static Public Member Functions | |
static Error | fromJson (const json::Object &in_json, MountSource &out_mountSource) |
Constructs a MountSource from a JSON object which represents the mount source. More... | |
Public Attributes | |
std::string | CustomType |
json::Object | SourceObject |
Type | SourceType |
Struct which represents the source path of an NFS Mount.
Constants representing the support types of MountSource.
Enumerator | |
---|---|
AZURE_FILE | Represents an Azure File Mount Source. |
CEPH_FS | Represents a Ceph File System Mount Source. |
GLUSTER_FS | Represents a Gluster File System Mount Source. |
HOST | Represents a Host Mount Source. |
NFS | Represents an NFS Mount Source. |
PASSTHROUGH | Represents a Mount Source that will be passed through to the Plugin to handle. |
AzureFileMountSource& rstudio::launcher_plugins::api::MountSource::asAzureFileMountSource | ( | ) |
Gets this MountSource as an AzureFileMountSource.
std::logic_error | if isAzureFileMountSource() would return false. |
const AzureFileMountSource& rstudio::launcher_plugins::api::MountSource::asAzureFileMountSource | ( | ) | const |
Gets this MountSource as an AzureFileMountSource.
std::logic_error | if isAzureFileMountSource() would return false. |
CephFsMountSource& rstudio::launcher_plugins::api::MountSource::asCephFsMountSource | ( | ) |
Gets this MountSource as an CephFsMountSource.
std::logic_error | if isCephFsMountSource() would return false. |
const CephFsMountSource& rstudio::launcher_plugins::api::MountSource::asCephFsMountSource | ( | ) | const |
Gets this MountSource as an CephFsMountSource.
std::logic_error | if isCephFsMountSource() would return false. |
GlusterFsMountSource& rstudio::launcher_plugins::api::MountSource::asGlusterFsMountSource | ( | ) |
Gets this MountSource as an GlusterFsMountSource.
std::logic_error | if isGlusterFsMountSource() would return false. |
const GlusterFsMountSource& rstudio::launcher_plugins::api::MountSource::asGlusterFsMountSource | ( | ) | const |
Gets this MountSource as an GlusterFsMountSource.
std::logic_error | if isGlusterFsMountSource() would return false. |
HostMountSource& rstudio::launcher_plugins::api::MountSource::asHostMountSource | ( | ) |
Gets this MountSource as an HostMountSource.
std::logic_error | if isHostMountSource() would return false. |
const HostMountSource& rstudio::launcher_plugins::api::MountSource::asHostMountSource | ( | ) | const |
Gets this MountSource as an HostMountSource.
std::logic_error | if isHostMountSource() would return false. |
NfsMountSource& rstudio::launcher_plugins::api::MountSource::asNfsMountSource | ( | ) |
Gets this MountSource as an NfsMountSource.
std::logic_error | if isNfsMountSource() would return false. |
const NfsMountSource& rstudio::launcher_plugins::api::MountSource::asNfsMountSource | ( | ) | const |
Gets this MountSource as an NfsMountSource.
std::logic_error | if isNfsMountSource() would return false. |
|
static |
Constructs a MountSource from a JSON object which represents the mount source.
in_json | The JSON object which represents the mount source. |
out_mountSource | The populated mount source value. Not valid if an error is returned. |
bool rstudio::launcher_plugins::api::MountSource::isAzureFileMountSource | ( | ) | const |
Checks whether this MountSource is an AzureFileMountSource.
bool rstudio::launcher_plugins::api::MountSource::isCephFsMountSource | ( | ) | const |
Checks whether this MountSource is an CephFsMountSource.
bool rstudio::launcher_plugins::api::MountSource::isGlusterFsMountSource | ( | ) | const |
Checks whether this MountSource is an GlusterFsMountSource.
bool rstudio::launcher_plugins::api::MountSource::isHostMountSource | ( | ) | const |
Checks whether this MountSource is an HostMountSource.
bool rstudio::launcher_plugins::api::MountSource::isNfsMountSource | ( | ) | const |
Checks whether this MountSource is an NfsMountSource.
bool rstudio::launcher_plugins::api::MountSource::isPassthroughMountSource | ( | ) | const |
Checks whether this MountSource is an PassthroughMountSource.
json::Object rstudio::launcher_plugins::api::MountSource::toJson | ( | ) | const |
Converts this NfsMountSource to a JSON object which represents it.
std::string rstudio::launcher_plugins::api::MountSource::CustomType |
An optional field, to represent a custom mount source type. If the type field is not recongized SourceType will be set to MountSource::Type::PASSTHROUGH
and CustomType will hold the original value of the field.
json::Object rstudio::launcher_plugins::api::MountSource::SourceObject |
Type rstudio::launcher_plugins::api::MountSource::SourceType |