Struct google_api_proto::google::devtools::remoteworkers::v1test2::command_task::Inputs
source · pub struct Inputs {
pub arguments: Vec<String>,
pub files: Vec<Digest>,
pub inline_blobs: Vec<Blob>,
pub environment_variables: Vec<EnvironmentVariable>,
pub working_directory: String,
}
Expand description
Describes the inputs to a shell-style task.
Fields§
§arguments: Vec<String>
The command itself to run (e.g., argv).
This field should be passed directly to the underlying operating system, and so it must be sensible to that operating system. For example, on Windows, the first argument might be “C:\Windows\System32\ping.exe” - that is, using drive letters and backslashes. A command for a *nix system, on the other hand, would use forward slashes.
All other fields in the RWAPI must consistently use forward slashes, since those fields may be interpretted by both the service and the bot.
files: Vec<Digest>
The input filesystem to be set up prior to the task beginning. The contents should be a repeated set of FileMetadata messages though other formats are allowed if better for the implementation (eg, a LUCI-style .isolated file).
This field is repeated since implementations might want to cache the metadata, in which case it may be useful to break up portions of the filesystem that change frequently (eg, specific input files) from those that don’t (eg, standard header files).
inline_blobs: Vec<Blob>
Inline contents for blobs expected to be needed by the bot to execute the
task. For example, contents of entries in files
or blobs that are
indirectly referenced by an entry there.
The bot should check against this list before downloading required task inputs to reduce the number of communications between itself and the remote CAS server.
environment_variables: Vec<EnvironmentVariable>
All environment variables required by the task.
working_directory: String
Directory from which a command is executed. It is a relative directory with respect to the bot’s working directory (i.e., “./”). If it is non-empty, then it must exist under “./”. Otherwise, “./” will be used.
Trait Implementations§
source§impl Message for Inputs
impl Message for Inputs
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for Inputs
impl PartialEq for Inputs
impl StructuralPartialEq for Inputs
Auto Trait Implementations§
impl Freeze for Inputs
impl RefUnwindSafe for Inputs
impl Send for Inputs
impl Sync for Inputs
impl Unpin for Inputs
impl UnwindSafe for Inputs
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request