SidecarCommandArgs
Builds a slice of strings representing command-line arguments for a CoPilot Sidecar process, including paths, timeouts, and an encoded interface definition.
def SidecarCommandArgs(
fromLocalPath: string,
outputPrefix: storage.DataReference,
rawOutputPath: storage.DataReference,
uploadTimeout: time.Duration,
iface: *core.TypedInterface
) - > []string, error
Builds a slice of strings representing the command-line arguments for the CoPilot Sidecar process. This function is used to construct the necessary parameters for invoking the sidecar, including paths for local data, output, and the serialized interface definition.
Parameters
| Name | Type | Description |
|---|---|---|
| fromLocalPath | string | The local directory path from which the sidecar should read data. |
| outputPrefix | storage.DataReference | The prefix for the output data reference where the sidecar should store its results. |
| rawOutputPath | storage.DataReference | The raw output data reference where the sidecar should store its raw output. |
| uploadTimeout | time.Duration | The maximum duration allowed for the sidecar's upload operations. |
| iface | *core.TypedInterface | A pointer to the core.TypedInterface object, which defines the interface for the CoPilot Sidecar. This parameter is required and cannot be nil. |
Returns
| Type | Description |
|---|---|
[]string, error | A slice of strings containing the command-line arguments for the sidecar, or an error if the interface is nil or marshaling fails. |