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

NameTypeDescription
fromLocalPathstringThe local directory path from which the sidecar should read data.
outputPrefixstorage.DataReferenceThe prefix for the output data reference where the sidecar should store its results.
rawOutputPathstorage.DataReferenceThe raw output data reference where the sidecar should store its raw output.
uploadTimeouttime.DurationThe maximum duration allowed for the sidecar's upload operations.
iface*core.TypedInterfaceA pointer to the core.TypedInterface object, which defines the interface for the CoPilot Sidecar. This parameter is required and cannot be nil.

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.