Help us shape the future of Go! Take the 2026 Go Developer Survey

objectlimits

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MinFOCUploadSize = int64(chain.MinUploadSize)
	// MaxFOCUploadSize is the raw payload of a 1 GiB padded piece. It is the
	// stable object size limit, independent of the larger SDK upload maximum.
	MaxFOCUploadSize = int64(chain.GiB * 127 / 128)
)

Variables

View Source
var (
	ErrTooSmall = errors.New("object size below FOC minimum")
	ErrTooLarge = errors.New("object size above FOC maximum")
)

Functions

func LimitFOCUploadReader

func LimitFOCUploadReader(r io.Reader) io.Reader

func ValidateFOCUploadSize

func ValidateFOCUploadSize(size int64) error

Types

type SizeError

type SizeError struct {
	Size int64
	Err  error
}

func (*SizeError) Error

func (e *SizeError) Error() string

func (*SizeError) Unwrap

func (e *SizeError) Unwrap() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL