Skip to main content

UploadOptions

No overview available.

Methods​


createWatcher()​

@classmethod
def createWatcher(
_: context.Context,
w: containerwatcher.WatcherType
) - > (containerwatcher.Watcher, error)

Creates a watcher for a container, allowing monitoring of its state and events. Callers use this to set up observation of container activities.

Parameters​

NameTypeDescription
_context.ContextThe context for the operation, typically used for cancellation or deadlines.
wcontainerwatcher.WatcherTypeThe type of watcher to create, specifying the desired monitoring mechanism.

Returns​

TypeDescription
(containerwatcher.Watcher, error)A tuple containing the created Watcher instance and an error if the creation failed.

uploader()​

@classmethod
def uploader(
ctx: context.Context
) - > error

Initiates the upload process for outputs based on the configured UploadOptions. Callers use this to transfer generated data to a remote storage location.

Parameters​

NameTypeDescription
ctxcontext.ContextThe context for the upload operation, used for cancellation and timeouts.

Returns​

TypeDescription
errorAn error if the upload process encounters any issues, otherwise nil.

Sidecar()​

@classmethod
def Sidecar(
ctx: context.Context
) - > error

Executes the sidecar process, which typically involves monitoring a local directory for outputs and uploading them. Callers use this to run the background process responsible for output management.

Parameters​

NameTypeDescription
ctxcontext.ContextThe context for the sidecar operation, used for managing its lifecycle and cancellation.

Returns​

TypeDescription
errorAn error if the sidecar process encounters any issues, otherwise nil.