ipfsdir

package
v0.0.0-...-31ad618 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: Unlicense Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dir

type Dir struct {
	Data struct {
		Root struct {
			Bytes string `json:"bytes"`
		} `json:"/"`
	} `json:"Data"`

	Links []link `json:"Links"`
	// contains filtered or unexported fields
}

func NewDir

func NewDir(name string) *Dir

func (*Dir) AddDir

func (d *Dir) AddDir(s *Dir) *Dir

func (*Dir) AddDirs

func (d *Dir) AddDirs(sub ...string) *Dir
func (d *Dir) AddLink(name, cid string, size uint64) error

func (*Dir) Put

func (d *Dir) Put(ipfs *shell.Shell) (string, uint64, error)

Jump to

Keyboard shortcuts

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