pub struct CreateProcRequest
pub proc_name: String,
pub execution_mode: String,
pub files: HashMap<String, ByteBuf>,
pub command: String,
pub args: Vec<String>,
pub options: HashMap<String, String>,
The request payload for the /create/proc endpoint.
Create a proc
Fields
proc_name: StringName of the proc to be created. Must not be the name of a currently existing proc.
execution_mode: StringThe execution mode of the proc.
files: HashMap<String, ByteBuf>A map of the files that make up the proc. The keys of the map are file names, and the values are the binary contents of the files. The file names may include subdirectory names (e.g. ‘subdir/file’) but must not resolve to a directory above the root for the proc.
Files may be loaded from existing files in KiFS. Those file names should be prefixed with the uri kifs:// and the values in the map should be empty
command: StringThe command (excluding arguments) that will be invoked when the proc is executed. It will be invoked from the directory containing the proc files and may be any command that can be resolved from that directory. It need not refer to a file actually in that directory; for example, it could be ‘java’ if the proc is a Java application; however, any necessary external programs must be preinstalled on every database node. If the command refers to a file in that directory, it must be preceded with ‘./’ as per Linux convention. If not specified, and exactly one file is provided in files, that file will be invoked.
args: Vec<String>An array of command-line arguments that will be passed to command when the proc is executed.
options: HashMap<String, String>Optional parameters.
Trait Implementations
impl Clone for CreateProcRequest
fn clone(&self) -> CreateProcRequest
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Debug for CreateProcRequest
impl Default for CreateProcRequest
fn default() -> CreateProcRequest
impl<‘de> Deserialize<‘de> for CreateProcRequest
fn deserialize<__D>(__deserializer: __D) ->Result<Self, __D::Error>
where __D: Deserializer<‘de>,
impl KineticaRecord for CreateProcRequest
fn avro_schema(&self) -> &‘static str
fn use_compression() -> bool
KineticaOptions::use_snappy enabled. Read more