SupportBundles: Build tars in memory (#61581)

* build tar in memory

* match tag
This commit is contained in:
Jo
2023-01-17 10:39:59 +00:00
committed by GitHub
parent be72e570cf
commit 9e097c531d
5 changed files with 43 additions and 95 deletions

View File

@ -23,10 +23,10 @@ func (s State) String() string {
type Bundle struct {
UID string `json:"uid"`
State State `json:"state"`
FilePath string `json:"filePath"`
Creator string `json:"creator"`
CreatedAt int64 `json:"createdAt"`
ExpiresAt int64 `json:"expiresAt"`
TarBytes []byte `json:"tarBytes,omitempty"`
}
type CollectorFunc func(context.Context) (*SupportItem, error)