fix(build): move EstimateBackupSize to platform-independent file
Some checks failed
CI/CD / Test (push) Failing after 4s
CI/CD / Generate SBOM (push) Has been skipped
CI/CD / Lint (push) Failing after 4s
CI/CD / Build (darwin-amd64) (push) Has been skipped
CI/CD / Build (linux-amd64) (push) Has been skipped
CI/CD / Build (darwin-arm64) (push) Has been skipped
CI/CD / Build (linux-arm64) (push) Has been skipped
CI/CD / Release (push) Has been skipped
CI/CD / Build & Push Docker Image (push) Has been skipped
CI/CD / Mirror to GitHub (push) Has been skipped
Some checks failed
CI/CD / Test (push) Failing after 4s
CI/CD / Generate SBOM (push) Has been skipped
CI/CD / Lint (push) Failing after 4s
CI/CD / Build (darwin-amd64) (push) Has been skipped
CI/CD / Build (linux-amd64) (push) Has been skipped
CI/CD / Build (darwin-arm64) (push) Has been skipped
CI/CD / Build (linux-arm64) (push) Has been skipped
CI/CD / Release (push) Has been skipped
CI/CD / Build & Push Docker Image (push) Has been skipped
CI/CD / Mirror to GitHub (push) Has been skipped
Fixes Windows, OpenBSD, and NetBSD builds by extracting EstimateBackupSize from disk_check.go (which has build tags excluding those platforms) to a new estimate.go file.
This commit is contained in:
@@ -22,17 +22,17 @@ type S3Target struct {
|
||||
region string
|
||||
partSize int64
|
||||
|
||||
mu sync.Mutex
|
||||
buffer *bytes.Buffer
|
||||
bufferSize int
|
||||
currentKey string
|
||||
uploadID string
|
||||
parts []types.CompletedPart
|
||||
partNumber int32
|
||||
fileNum int
|
||||
healthy bool
|
||||
lastErr error
|
||||
lastWrite time.Time
|
||||
mu sync.Mutex
|
||||
buffer *bytes.Buffer
|
||||
bufferSize int
|
||||
currentKey string
|
||||
uploadID string
|
||||
parts []types.CompletedPart
|
||||
partNumber int32
|
||||
fileNum int
|
||||
healthy bool
|
||||
lastErr error
|
||||
lastWrite time.Time
|
||||
}
|
||||
|
||||
// NewS3Target creates a new S3 target
|
||||
@@ -204,8 +204,8 @@ func (s *S3Target) Healthy() bool {
|
||||
// S3StreamingTarget supports larger files with resumable uploads
|
||||
type S3StreamingTarget struct {
|
||||
*S3Target
|
||||
rotateSize int64
|
||||
currentSize int64
|
||||
rotateSize int64
|
||||
currentSize int64
|
||||
}
|
||||
|
||||
// NewS3StreamingTarget creates an S3 target with file rotation
|
||||
|
||||
Reference in New Issue
Block a user