Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector struct {
// contains filtered or unexported fields
}
Collector handles the packaging and uploading of file artifacts produced by skill executions. Output files are tar-gzipped and stored in MinIO with a presigned download URL.
func New ¶
New creates a Collector connected to the given S3/MinIO endpoint. It ensures the target bucket exists, creating it if necessary.
func (*Collector) Collect ¶
func (c *Collector) Collect(ctx context.Context, tenantID, executionID, filesDir string) (filesURL string, filesList []string, err error)
Collect packages all files found in filesDir into a tar.gz archive, uploads it to MinIO at {tenantID}/{executionID}/files.tar.gz, and returns a presigned GET URL (1 hour TTL) along with the list of relative file paths. If filesDir is empty or contains no files, it returns empty values with no error.
Click to show internal directories.
Click to hide internal directories.