Struct gapi_grpc::google::devtools::remoteworkers::v1test2::command_task::Inputs[][src]

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,
}

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

impl Clone for Inputs[src]

impl Debug for Inputs[src]

impl Default for Inputs[src]

impl Message for Inputs[src]

impl PartialEq<Inputs> for Inputs[src]

impl StructuralPartialEq for Inputs[src]

Auto Trait Implementations

impl RefUnwindSafe for Inputs

impl Send for Inputs

impl Sync for Inputs

impl Unpin for Inputs

impl UnwindSafe for Inputs

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]