cmdutils

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0, MIT, Apache-2.0, + 1 more Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AllowBigBlockOptionName = "allow-big-block"
	SoftBlockLimit          = 1024 * 1024 // https://github.com/ipfs/kubo/issues/7421#issuecomment-910833499
)

Variables

View Source
var AllowBigBlockOption cmds.Option

Functions

func CheckBlockSize

func CheckBlockSize(req *cmds.Request, size uint64) error

func CheckCIDSize

func CheckCIDSize(req *cmds.Request, c cid.Cid, dagAPI coreiface.APIDagService) error

func PathOrCidPath added in v0.24.0

func PathOrCidPath(str string) (path.Path, error)

PathOrCidPath returns a path.Path built from the argument. It keeps the old behaviour by building a path from a CID string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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