Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

596 B
Raw Blame
package s3api

import (
	"github.com/seaweedfs/seaweedfs/weed/pb/filer_pb"
	"github.com/seaweedfs/seaweedfs/weed/s3api/s3err"
)

// ConditionalHeaderResult holds the result of conditional header checking
type ConditionalHeaderResult struct {
	ErrorCode    s3err.ErrorCode
	ETag         string          // ETag of the object (for 304 responses)
	Entry        *filer_pb.Entry // Entry fetched during conditional check (nil if not fetched or object doesn't exist)
	DeleteMarker *filer_pb.Entry // Set when the resolved entry is a delete marker, so a missing-key answer can still carry its headers
}