Documentation
¶
Index ¶
- type Addition
- type IPFS
- func (d *IPFS) Config() driver.Config
- func (d *IPFS) Copy(ctx context.Context, srcObj, dstDir model.Obj) (model.Obj, error)
- func (d *IPFS) Drop(ctx context.Context) error
- func (d *IPFS) Get(ctx context.Context, rawPath string) (model.Obj, error)
- func (d *IPFS) GetAddition() driver.Additional
- func (d *IPFS) Init(ctx context.Context) error
- func (d *IPFS) Link(ctx context.Context, file model.Obj, args model.LinkArgs) (*model.Link, error)
- func (d *IPFS) List(ctx context.Context, dir model.Obj, args model.ListArgs) ([]model.Obj, error)
- func (d *IPFS) MakeDir(ctx context.Context, parentDir model.Obj, dirName string) (model.Obj, error)
- func (d *IPFS) Move(ctx context.Context, srcObj, dstDir model.Obj) (model.Obj, error)
- func (d *IPFS) Put(ctx context.Context, dstDir model.Obj, s model.FileStreamer, ...) (model.Obj, error)
- func (d *IPFS) Remove(ctx context.Context, obj model.Obj) error
- func (d *IPFS) Rename(ctx context.Context, srcObj model.Obj, newName string) (model.Obj, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Addition ¶
type Addition struct {
// Usually one of two
driver.RootPath
Mode string `json:"mode" options:"ipfs,ipns,mfs" type:"select" required:"true"`
Endpoint string `json:"endpoint" default:"http://127.0.0.1:5001" required:"true"`
Gateway string `json:"gateway" default:"http://127.0.0.1:8080" required:"true"`
}
Click to show internal directories.
Click to hide internal directories.