Skip to main content

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. This function is used to construct the necessary arguments for executing the sidecar process, including paths for local data, output, and an encoded interface definition.

Parameters

NameTypeDescription
fromLocalPathstringThe local directory path from which the sidecar should read data.
outputPrefixstorage.DataReferenceThe prefix for the output data reference where the sidecar will store its results.
rawOutputPathstorage.DataReferenceThe raw output path data reference where the sidecar will store its raw output.
uploadTimeouttime.DurationThe maximum duration allowed for the sidecar's upload operations.
iface*core.TypedInterfaceA pointer to the core.TypedInterface definition, which is marshaled and base64 encoded to be passed to the sidecar. This parameter is required.

Returns

TypeDescription
[]string, errorA slice of strings containing the command-line arguments for the sidecar, or an error if the interface is nil or marshaling fails.