Versions in this module Expand all Collapse all v0 v0.4.0 Nov 26, 2025 Changes in this version + func TruncateLogLines(content []byte, maxLines int) []byte + type ArtifactInventory struct + CollectionTime string + EventFiles []string + LogFiles []string + PodCount int + ResourceFiles []string + TotalSizeBytes int64 + type Collector interface + Close func() error + CollectForTest func(ctx context.Context, testInfo TestInfo) error + Initialize func(runID string) error + func NewCollector(config Config) (Collector, error) + type Config struct + BaseDir string + CollectMinimalOnly bool + CollectOnFailureOnly bool + CollectionTimeout time.Duration + Enabled bool + MaxLogLines int + MaxResourceSize int64 + MaxTotalSize int64 + NamespacePatterns []string + PodLabelSelectors []string + func LoadConfigFromEnv() Config + type MetadataBuilder struct + func NewMetadataBuilder(storage *Storage) *MetadataBuilder + func (m *MetadataBuilder) WriteRunMetadata(meta RunMetadata) error + func (m *MetadataBuilder) WriteTestMetadata(meta TestMetadata, testDir string) error + type RunMetadata struct + ArtifactsDir string + Description string + EndTime time.Time + Environment map[string]string + FailedTests int + GitBranch string + GitCommit string + GitDirty string + PassedTests int + RunID string + StartTime time.Time + TotalTests int + type Storage struct + func NewStorage(baseDir string, runID string, maxSize int64) (*Storage, error) + func (s *Storage) CreateTestDir(testName string) (string, error) + func (s *Storage) GetRunDir() string + func (s *Storage) GetRunID() string + func (s *Storage) WriteFile(testDir, category, filename string, content []byte) error + func (s *Storage) WriteFileInRunDir(filename string, content []byte) error + func (s *Storage) WriteStream(testDir, category, filename string, reader io.Reader, maxLines int) error + type TestInfo struct + Duration time.Duration + EndTime time.Time + Failed bool + FailureMessage string + KubectlClient *kubectl.Client + Labels []string + Name string + Namespace string + OperatorAge time.Duration + SequenceNumber int + StartTime time.Time + type TestMetadata struct + Artifacts ArtifactInventory + Duration time.Duration + EndTime time.Time + Failed bool + FailureMessage string + Labels []string + Name string + Namespace string + OperatorAge time.Duration + StartTime time.Time + TestSequenceNumber int + func BuildTestMetadata(info TestInfo, artifacts ArtifactInventory) TestMetadata