mirror of
https://github.com/replicatedhq/troubleshoot.git
synced 2026-04-15 07:16:34 +00:00
19 lines
443 B
Go
19 lines
443 B
Go
package collect
|
|
|
|
import (
|
|
"path/filepath"
|
|
|
|
troubleshootv1beta1 "github.com/replicatedhq/troubleshoot/pkg/apis/troubleshoot/v1beta1"
|
|
)
|
|
|
|
type DataOutput map[string][]byte
|
|
|
|
func Data(ctx *Context, dataCollector *troubleshootv1beta1.Data) (map[string][]byte, error) {
|
|
bundlePath := filepath.Join(dataCollector.Name, dataCollector.CollectorName)
|
|
dataOutput := DataOutput{
|
|
bundlePath: []byte(dataCollector.Data),
|
|
}
|
|
|
|
return dataOutput, nil
|
|
}
|