mirror of
https://github.com/kubernetes/node-problem-detector.git
synced 2026-08-21 05:06:43 +00:00
- Update github.com/sirupsen/logrus v1.9.0 -> v1.9.3 in test/go.mod to fix GHSA-4f99-4q7p-p3gh (High) - Update github.com/prometheus/prometheus v0.35.0 -> v0.311.3 to fix GHSA-vffh-x6r8-xx99 (Medium) - Run go mod tidy and go mod vendor to update vendor directory
23 lines
445 B
Go
23 lines
445 B
Go
// SPDX-FileCopyrightText: Copyright 2015-2025 go-swagger maintainers
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package fileutils
|
|
|
|
import "mime/multipart"
|
|
|
|
// File represents an uploaded file.
|
|
type File struct {
|
|
Data multipart.File
|
|
Header *multipart.FileHeader
|
|
}
|
|
|
|
// Read bytes from the file
|
|
func (f *File) Read(p []byte) (n int, err error) {
|
|
return f.Data.Read(p)
|
|
}
|
|
|
|
// Close the file
|
|
func (f *File) Close() error {
|
|
return f.Data.Close()
|
|
}
|