Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBadPath = errors.New("invalid ipfs ref path")
ErrBadPath is returned when a given path is incorrectly formatted
View Source
var ErrNoComponents = errors.New(
"path must contain at least one component")
Paths after a protocol must contain at least one component
Functions ¶
This section is empty.
Types ¶
type Path ¶
type Path string
TODO: debate making this a private struct wrapped in a public interface would allow us to control creation, and cache segments.
func FromString ¶
FromString safely converts a string type to a Path type
func ParseCidToPath ¶
Click to show internal directories.
Click to hide internal directories.