mirror of
https://github.com/ipfs/kubo.git
synced 2025-05-21 08:56:37 +08:00
refactor: rename to kubo
This commit is contained in:
@ -119,11 +119,11 @@ jobs:
|
|||||||
cp go.sum go.sum.bak
|
cp go.sum go.sum.bak
|
||||||
|
|
||||||
# make sure the examples run against the current version of go-ipfs
|
# make sure the examples run against the current version of go-ipfs
|
||||||
go mod edit -replace github.com/ipfs/go-ipfs=./../../..
|
go mod edit -replace github.com/ipfs/kubo=./../../..
|
||||||
go mod tidy
|
go mod tidy
|
||||||
|
|
||||||
# use the internal config package when we test the current version of go-ipfs
|
# use the internal config package when we test the current version of go-ipfs
|
||||||
sed -i.bak 's;"github.com/ipfs/go-ipfs-config";"github.com/ipfs/go-ipfs/config";' ./main.go
|
sed -i.bak 's;"github.com/ipfs/go-ipfs-config";"github.com/ipfs/kubo/config";' ./main.go
|
||||||
|
|
||||||
go test -v ./...
|
go test -v ./...
|
||||||
|
|
||||||
|
43
README.md
43
README.md
@ -1,19 +1,27 @@
|
|||||||
# go-ipfs
|
# kubo
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
[](https://protocol.ai)
|
[](https://protocol.ai)
|
||||||
[](https://godoc.org/github.com/ipfs/go-ipfs)
|
[](https://godoc.org/github.com/ipfs/go-ipfs)
|
||||||
[](https://circleci.com/gh/ipfs/go-ipfs)
|
[](https://circleci.com/gh/ipfs/go-ipfs)
|
||||||
|
|
||||||
|
## What is "IPFS Banana"?
|
||||||
|
|
||||||
|
This repo provides "jack of all trades, master of none" implementation of IPFS.
|
||||||
|
|
||||||
|
It should be enough to get you started, if you find it lacking, see [other implementations](https://ipfs.io/#install).
|
||||||
|
|
||||||
|
|
||||||
## What is IPFS?
|
## What is IPFS?
|
||||||
|
|
||||||
IPFS is a global, versioned, peer-to-peer filesystem. It combines good ideas from previous systems such as Git, BitTorrent, Kademlia, SFS, and the Web. It is like a single BitTorrent swarm, exchanging git objects. IPFS provides an interface as simple as the HTTP web, but with permanence built-in. You can also mount the world at /ipfs.
|
IPFS is a global, versioned, peer-to-peer filesystem. It combines good ideas from previous systems such as Git, BitTorrent, Kademlia, SFS, and the Web. It is like a single BitTorrent swarm, exchanging git objects. IPFS provides an interface as simple as the HTTP web, but with permanence built-in. You can also mount the world at /ipfs.
|
||||||
|
|
||||||
For more info see: https://docs.ipfs.io/introduction/overview/
|
For more info see: https://docs.ipfs.io/introduction/overview/
|
||||||
|
|
||||||
|
|
||||||
Before opening an issue, consider using one of the following locations to ensure you are opening your thread in the right place:
|
Before opening an issue, consider using one of the following locations to ensure you are opening your thread in the right place:
|
||||||
- go-ipfs _implementation_ bugs in [this repo](https://github.com/ipfs/go-ipfs/issues).
|
- kubo (previously named go-ipfs) _implementation_ bugs in [this repo](https://github.com/ipfs/go-ipfs/issues).
|
||||||
- Documentation issues in [ipfs/docs issues](https://github.com/ipfs/ipfs-docs/issues).
|
- Documentation issues in [ipfs/docs issues](https://github.com/ipfs/ipfs-docs/issues).
|
||||||
- IPFS _design_ in [ipfs/specs issues](https://github.com/ipfs/specs/issues).
|
- IPFS _design_ in [ipfs/specs issues](https://github.com/ipfs/specs/issues).
|
||||||
- Exploration of new ideas in [ipfs/notes issues](https://github.com/ipfs/notes/issues).
|
- Exploration of new ideas in [ipfs/notes issues](https://github.com/ipfs/notes/issues).
|
||||||
@ -35,13 +43,18 @@ Before opening an issue, consider using one of the following locations to ensure
|
|||||||
|
|
||||||
## Table of Contents
|
## Table of Contents
|
||||||
|
|
||||||
|
- [kubo](#kubo)
|
||||||
|
- [What is "IPFS Banana"?](#what-is-ipfs-banana)
|
||||||
|
- [What is IPFS?](#what-is-ipfs)
|
||||||
|
- [Next milestones](#next-milestones)
|
||||||
|
- [Table of Contents](#table-of-contents)
|
||||||
- [Security Issues](#security-issues)
|
- [Security Issues](#security-issues)
|
||||||
- [Install](#install)
|
- [Install](#install)
|
||||||
- [System Requirements](#system-requirements)
|
- [System Requirements](#system-requirements)
|
||||||
- [Docker](#docker)
|
- [Docker](#docker)
|
||||||
- [Native Linux package managers](#native-linux-package-managers)
|
- [Native Linux package managers](#native-linux-package-managers)
|
||||||
- [ArchLinux](#archlinux)
|
- [ArchLinux](#archlinux)
|
||||||
- [Nix](#nix-linux)
|
- [Nix](#nix)
|
||||||
- [Solus](#solus)
|
- [Solus](#solus)
|
||||||
- [openSUSE](#opensuse)
|
- [openSUSE](#opensuse)
|
||||||
- [Other package managers](#other-package-managers)
|
- [Other package managers](#other-package-managers)
|
||||||
@ -49,7 +62,7 @@ Before opening an issue, consider using one of the following locations to ensure
|
|||||||
- [Snap](#snap)
|
- [Snap](#snap)
|
||||||
- [macOS package managers](#macos-package-managers)
|
- [macOS package managers](#macos-package-managers)
|
||||||
- [MacPorts](#macports)
|
- [MacPorts](#macports)
|
||||||
- [Nix](#nix-macos)
|
- [Nix](#nix-1)
|
||||||
- [Homebrew](#homebrew)
|
- [Homebrew](#homebrew)
|
||||||
- [Windows package managers](#windows-package-managers)
|
- [Windows package managers](#windows-package-managers)
|
||||||
- [Chocolatey](#chocolatey)
|
- [Chocolatey](#chocolatey)
|
||||||
@ -61,16 +74,16 @@ Before opening an issue, consider using one of the following locations to ensure
|
|||||||
- [Cross Compiling](#cross-compiling)
|
- [Cross Compiling](#cross-compiling)
|
||||||
- [OpenSSL](#openssl)
|
- [OpenSSL](#openssl)
|
||||||
- [Troubleshooting](#troubleshooting)
|
- [Troubleshooting](#troubleshooting)
|
||||||
- [Updating go-ipfs](#updating-go-ipfs)
|
- [Updating](#updating)
|
||||||
- [Using ipfs-update](#using-ipfs-update)
|
- [Using ipfs-update](#using-ipfs-update)
|
||||||
- [Downloading IPFS builds using IPFS](#downloading-ipfs-builds-using-ipfs)
|
- [Downloading builds using IPFS](#downloading-builds-using-ipfs)
|
||||||
- [Getting Started](#getting-started)
|
- [Getting Started](#getting-started)
|
||||||
- [Usage](#usage)
|
- [Usage](#usage)
|
||||||
- [Some things to try](#some-things-to-try)
|
- [Some things to try](#some-things-to-try)
|
||||||
- [Troubleshooting](#troubleshooting-1)
|
- [Troubleshooting](#troubleshooting-1)
|
||||||
- [Packages](#packages)
|
- [Packages](#packages)
|
||||||
- [Development](#development)
|
- [Development](#development)
|
||||||
- [Map of go-ipfs Subsystems](#map-of-go-ipfs-subsystems)
|
- [Map of Implemented Subsystems](#map-of-implemented-subsystems)
|
||||||
- [CLI, HTTP-API, Architecture Diagram](#cli-http-api-architecture-diagram)
|
- [CLI, HTTP-API, Architecture Diagram](#cli-http-api-architecture-diagram)
|
||||||
- [Testing](#testing)
|
- [Testing](#testing)
|
||||||
- [Development Dependencies](#development-dependencies)
|
- [Development Dependencies](#development-dependencies)
|
||||||
@ -310,7 +323,7 @@ dependencies as well.
|
|||||||
- Shell command completions can be generated with one of the `ipfs commands completion` subcommands. Read [docs/command-completion.md](docs/command-completion.md) to learn more.
|
- Shell command completions can be generated with one of the `ipfs commands completion` subcommands. Read [docs/command-completion.md](docs/command-completion.md) to learn more.
|
||||||
- See the [misc folder](https://github.com/ipfs/go-ipfs/tree/master/misc) for how to connect IPFS to systemd or whatever init system your distro uses.
|
- See the [misc folder](https://github.com/ipfs/go-ipfs/tree/master/misc) for how to connect IPFS to systemd or whatever init system your distro uses.
|
||||||
|
|
||||||
### Updating go-ipfs
|
### Updating
|
||||||
|
|
||||||
#### Using ipfs-update
|
#### Using ipfs-update
|
||||||
|
|
||||||
@ -318,9 +331,11 @@ IPFS has an updating tool that can be accessed through `ipfs update`. The tool i
|
|||||||
not installed alongside IPFS in order to keep that logic independent of the main
|
not installed alongside IPFS in order to keep that logic independent of the main
|
||||||
codebase. To install `ipfs update`, [download it here](https://ipfs.io/ipns/dist.ipfs.io/#ipfs-update).
|
codebase. To install `ipfs update`, [download it here](https://ipfs.io/ipns/dist.ipfs.io/#ipfs-update).
|
||||||
|
|
||||||
#### Downloading IPFS builds using IPFS
|
#### Downloading builds using IPFS
|
||||||
|
|
||||||
List the available versions of go-ipfs:
|
<!-- TODO: rename this section after we figure out if dist.ipfs.io sgould produce both /go-ipfs/ and /kubo/ -->
|
||||||
|
|
||||||
|
List the available versions of "go-ipfs" implementation:
|
||||||
|
|
||||||
```
|
```
|
||||||
$ ipfs cat /ipns/dist.ipfs.io/go-ipfs/versions
|
$ ipfs cat /ipns/dist.ipfs.io/go-ipfs/versions
|
||||||
@ -454,8 +469,8 @@ Some places to get you started on the codebase:
|
|||||||
- PubSub: https://github.com/libp2p/go-libp2p-pubsub
|
- PubSub: https://github.com/libp2p/go-libp2p-pubsub
|
||||||
- [IPFS : The `Add` command demystified](https://github.com/ipfs/go-ipfs/tree/master/docs/add-code-flow.md)
|
- [IPFS : The `Add` command demystified](https://github.com/ipfs/go-ipfs/tree/master/docs/add-code-flow.md)
|
||||||
|
|
||||||
### Map of go-ipfs Subsystems
|
### Map of Implemented Subsystems
|
||||||
**WIP**: This is a high-level architecture diagram of the various sub-systems of go-ipfs. To be updated with how they interact. Anyone who has suggestions is welcome to comment [here](https://docs.google.com/drawings/d/1OVpBT2q-NtSJqlPX3buvjYhOnWfdzb85YEsM_njesME/edit) on how we can improve this!
|
**WIP**: This is a high-level architecture diagram of the various sub-systems of this specific implementation. To be updated with how they interact. Anyone who has suggestions is welcome to comment [here](https://docs.google.com/drawings/d/1OVpBT2q-NtSJqlPX3buvjYhOnWfdzb85YEsM_njesME/edit) on how we can improve this!
|
||||||
<img src="https://docs.google.com/drawings/d/e/2PACX-1vS_n1FvSu6mdmSirkBrIIEib2gqhgtatD9awaP2_WdrGN4zTNeg620XQd9P95WT-IvognSxIIdCM5uE/pub?w=1446&h=1036">
|
<img src="https://docs.google.com/drawings/d/e/2PACX-1vS_n1FvSu6mdmSirkBrIIEib2gqhgtatD9awaP2_WdrGN4zTNeg620XQd9P95WT-IvognSxIIdCM5uE/pub?w=1446&h=1036">
|
||||||
|
|
||||||
### CLI, HTTP-API, Architecture Diagram
|
### CLI, HTTP-API, Architecture Diagram
|
||||||
@ -492,7 +507,7 @@ Please reach out to us in one [chat](https://docs.ipfs.io/community/chat/) rooms
|
|||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
The go-ipfs project is dual-licensed under Apache 2.0 and MIT terms:
|
This project is dual-licensed under Apache 2.0 and MIT terms:
|
||||||
|
|
||||||
- Apache License, Version 2.0, ([LICENSE-APACHE](https://github.com/ipfs/go-ipfs/blob/master/LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
|
- Apache License, Version 2.0, ([LICENSE-APACHE](https://github.com/ipfs/go-ipfs/blob/master/LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
|
||||||
- MIT license ([LICENSE-MIT](https://github.com/ipfs/go-ipfs/blob/master/LICENSE-MIT) or http://opensource.org/licenses/MIT)
|
- MIT license ([LICENSE-MIT](https://github.com/ipfs/go-ipfs/blob/master/LICENSE-MIT) or http://opensource.org/licenses/MIT)
|
||||||
|
@ -9,8 +9,8 @@ import (
|
|||||||
gopath "path"
|
gopath "path"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"github.com/ipfs/go-ipfs/core"
|
"github.com/ipfs/kubo/core"
|
||||||
"github.com/ipfs/go-ipfs/core/coreapi"
|
"github.com/ipfs/kubo/core/coreapi"
|
||||||
|
|
||||||
"github.com/cespare/xxhash"
|
"github.com/cespare/xxhash"
|
||||||
cid "github.com/ipfs/go-cid"
|
cid "github.com/ipfs/go-cid"
|
||||||
|
@ -13,7 +13,7 @@ PATH := $(realpath $(d)):$(PATH)
|
|||||||
# DEPS_OO_$(d) += merkledag/pb/merkledag.pb.go namesys/pb/namesys.pb.go
|
# DEPS_OO_$(d) += merkledag/pb/merkledag.pb.go namesys/pb/namesys.pb.go
|
||||||
# DEPS_OO_$(d) += pin/internal/pb/header.pb.go unixfs/pb/unixfs.pb.go
|
# DEPS_OO_$(d) += pin/internal/pb/header.pb.go unixfs/pb/unixfs.pb.go
|
||||||
|
|
||||||
$(d)_flags =-ldflags="-X "github.com/ipfs/go-ipfs".CurrentCommit=$(git-hash)"
|
$(d)_flags =-ldflags="-X "github.com/ipfs/kubo".CurrentCommit=$(git-hash)"
|
||||||
|
|
||||||
$(d)-try-build $(IPFS_BIN_$(d)): GOFLAGS += $(cmd/ipfs_flags)
|
$(d)-try-build $(IPFS_BIN_$(d)): GOFLAGS += $(cmd/ipfs_flags)
|
||||||
|
|
||||||
@ -42,7 +42,7 @@ CLEAN += $(COVER_BIN_$(d))
|
|||||||
|
|
||||||
$(COVER_BIN_$(d)): GOTAGS += testrunmain
|
$(COVER_BIN_$(d)): GOTAGS += testrunmain
|
||||||
$(COVER_BIN_$(d)): $(d) $$(DEPS_GO) ALWAYS
|
$(COVER_BIN_$(d)): $(d) $$(DEPS_GO) ALWAYS
|
||||||
$(eval TMP_PKGS := $(shell $(GOCC) list -f '{{range .Deps}}{{.}} {{end}}' $(go-flags-with-tags) ./cmd/ipfs | sed 's/ /\n/g' | grep ipfs/go-ipfs) $(call go-pkg-name,$<))
|
$(eval TMP_PKGS := $(shell $(GOCC) list -f '{{range .Deps}}{{.}} {{end}}' $(go-flags-with-tags) ./cmd/ipfs | sed 's/ /\n/g' | grep ipfs/kubo) $(call go-pkg-name,$<))
|
||||||
$(eval TMP_LIST := $(call join-with,$(comma),$(TMP_PKGS)))
|
$(eval TMP_LIST := $(call join-with,$(comma),$(TMP_PKGS)))
|
||||||
@echo $(GOCC) test $@ -c -covermode atomic -coverpkg ... $(go-flags-with-tags) ./$(@D) # for info
|
@echo $(GOCC) test $@ -c -covermode atomic -coverpkg ... $(go-flags-with-tags) ./$(@D) # for info
|
||||||
@$(GOCC) test -o $@ -c -covermode atomic -coverpkg $(TMP_LIST) $(go-flags-with-tags) ./$(@D) 2>&1 | (grep -v 'warning: no packages being tested' || true)
|
@$(GOCC) test -o $@ -c -covermode atomic -coverpkg $(TMP_LIST) $(go-flags-with-tags) ./$(@D) 2>&1 | (grep -v 'warning: no packages being tested' || true)
|
||||||
|
@ -9,13 +9,13 @@ import (
|
|||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|
||||||
files "github.com/ipfs/go-ipfs-files"
|
files "github.com/ipfs/go-ipfs-files"
|
||||||
"github.com/ipfs/go-ipfs/core"
|
|
||||||
"github.com/ipfs/go-ipfs/core/coreapi"
|
|
||||||
"github.com/ipfs/go-ipfs/repo/fsrepo/migrations"
|
|
||||||
"github.com/ipfs/go-ipfs/repo/fsrepo/migrations/ipfsfetcher"
|
|
||||||
coreiface "github.com/ipfs/interface-go-ipfs-core"
|
coreiface "github.com/ipfs/interface-go-ipfs-core"
|
||||||
"github.com/ipfs/interface-go-ipfs-core/options"
|
"github.com/ipfs/interface-go-ipfs-core/options"
|
||||||
ipath "github.com/ipfs/interface-go-ipfs-core/path"
|
ipath "github.com/ipfs/interface-go-ipfs-core/path"
|
||||||
|
"github.com/ipfs/kubo/core"
|
||||||
|
"github.com/ipfs/kubo/core/coreapi"
|
||||||
|
"github.com/ipfs/kubo/repo/fsrepo/migrations"
|
||||||
|
"github.com/ipfs/kubo/repo/fsrepo/migrations/ipfsfetcher"
|
||||||
"github.com/libp2p/go-libp2p-core/peer"
|
"github.com/libp2p/go-libp2p-core/peer"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -36,7 +36,7 @@ func addMigrations(ctx context.Context, node *core.IpfsNode, fetcher migrations.
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
case *migrations.HttpFetcher, *migrations.RetryFetcher: // https://github.com/ipfs/go-ipfs/issues/8780
|
case *migrations.HttpFetcher, *migrations.RetryFetcher: // https://github.com/ipfs/kubo/issues/8780
|
||||||
// Add the downloaded migration files directly
|
// Add the downloaded migration files directly
|
||||||
if migrations.DownloadDirectory != "" {
|
if migrations.DownloadDirectory != "" {
|
||||||
var paths []string
|
var paths []string
|
||||||
|
@ -15,21 +15,21 @@ import (
|
|||||||
|
|
||||||
multierror "github.com/hashicorp/go-multierror"
|
multierror "github.com/hashicorp/go-multierror"
|
||||||
|
|
||||||
version "github.com/ipfs/go-ipfs"
|
version "github.com/ipfs/kubo"
|
||||||
utilmain "github.com/ipfs/go-ipfs/cmd/ipfs/util"
|
utilmain "github.com/ipfs/kubo/cmd/ipfs/util"
|
||||||
oldcmds "github.com/ipfs/go-ipfs/commands"
|
oldcmds "github.com/ipfs/kubo/commands"
|
||||||
config "github.com/ipfs/go-ipfs/config"
|
config "github.com/ipfs/kubo/config"
|
||||||
cserial "github.com/ipfs/go-ipfs/config/serialize"
|
cserial "github.com/ipfs/kubo/config/serialize"
|
||||||
"github.com/ipfs/go-ipfs/core"
|
"github.com/ipfs/kubo/core"
|
||||||
commands "github.com/ipfs/go-ipfs/core/commands"
|
commands "github.com/ipfs/kubo/core/commands"
|
||||||
"github.com/ipfs/go-ipfs/core/coreapi"
|
"github.com/ipfs/kubo/core/coreapi"
|
||||||
corehttp "github.com/ipfs/go-ipfs/core/corehttp"
|
corehttp "github.com/ipfs/kubo/core/corehttp"
|
||||||
corerepo "github.com/ipfs/go-ipfs/core/corerepo"
|
corerepo "github.com/ipfs/kubo/core/corerepo"
|
||||||
libp2p "github.com/ipfs/go-ipfs/core/node/libp2p"
|
libp2p "github.com/ipfs/kubo/core/node/libp2p"
|
||||||
nodeMount "github.com/ipfs/go-ipfs/fuse/node"
|
nodeMount "github.com/ipfs/kubo/fuse/node"
|
||||||
fsrepo "github.com/ipfs/go-ipfs/repo/fsrepo"
|
fsrepo "github.com/ipfs/kubo/repo/fsrepo"
|
||||||
"github.com/ipfs/go-ipfs/repo/fsrepo/migrations"
|
"github.com/ipfs/kubo/repo/fsrepo/migrations"
|
||||||
"github.com/ipfs/go-ipfs/repo/fsrepo/migrations/ipfsfetcher"
|
"github.com/ipfs/kubo/repo/fsrepo/migrations/ipfsfetcher"
|
||||||
sockets "github.com/libp2p/go-socket-activation"
|
sockets "github.com/libp2p/go-socket-activation"
|
||||||
|
|
||||||
cmds "github.com/ipfs/go-ipfs-cmds"
|
cmds "github.com/ipfs/go-ipfs-cmds"
|
||||||
@ -801,7 +801,7 @@ func serveHTTPGateway(req *cmds.Request, cctx *oldcmds.Context) (<-chan error, e
|
|||||||
}
|
}
|
||||||
|
|
||||||
if len(cfg.Gateway.PathPrefixes) > 0 {
|
if len(cfg.Gateway.PathPrefixes) > 0 {
|
||||||
log.Error("Support for X-Ipfs-Gateway-Prefix and Gateway.PathPrefixes is deprecated and will be removed in the next release. Please comment on the issue if you're using this feature: https://github.com/ipfs/go-ipfs/issues/7702")
|
log.Error("Support for X-Ipfs-Gateway-Prefix and Gateway.PathPrefixes is deprecated and will be removed in the next release. Please comment on the issue if you're using this feature: https://github.com/ipfs/kubo/issues/7702")
|
||||||
}
|
}
|
||||||
|
|
||||||
node, err := cctx.ConstructNode()
|
node, err := cctx.ConstructNode()
|
||||||
|
@ -3,7 +3,7 @@ package main
|
|||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/ipfs/go-ipfs/profile"
|
"github.com/ipfs/kubo/profile"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
@ -10,18 +10,18 @@ import (
|
|||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
assets "github.com/ipfs/go-ipfs/assets"
|
|
||||||
oldcmds "github.com/ipfs/go-ipfs/commands"
|
|
||||||
core "github.com/ipfs/go-ipfs/core"
|
|
||||||
"github.com/ipfs/go-ipfs/core/commands"
|
|
||||||
fsrepo "github.com/ipfs/go-ipfs/repo/fsrepo"
|
|
||||||
path "github.com/ipfs/go-path"
|
path "github.com/ipfs/go-path"
|
||||||
unixfs "github.com/ipfs/go-unixfs"
|
unixfs "github.com/ipfs/go-unixfs"
|
||||||
|
assets "github.com/ipfs/kubo/assets"
|
||||||
|
oldcmds "github.com/ipfs/kubo/commands"
|
||||||
|
core "github.com/ipfs/kubo/core"
|
||||||
|
"github.com/ipfs/kubo/core/commands"
|
||||||
|
fsrepo "github.com/ipfs/kubo/repo/fsrepo"
|
||||||
|
|
||||||
cmds "github.com/ipfs/go-ipfs-cmds"
|
cmds "github.com/ipfs/go-ipfs-cmds"
|
||||||
files "github.com/ipfs/go-ipfs-files"
|
files "github.com/ipfs/go-ipfs-files"
|
||||||
config "github.com/ipfs/go-ipfs/config"
|
|
||||||
options "github.com/ipfs/interface-go-ipfs-core/options"
|
options "github.com/ipfs/interface-go-ipfs-core/options"
|
||||||
|
config "github.com/ipfs/kubo/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
commands "github.com/ipfs/go-ipfs/core/commands"
|
commands "github.com/ipfs/kubo/core/commands"
|
||||||
|
|
||||||
cmds "github.com/ipfs/go-ipfs-cmds"
|
cmds "github.com/ipfs/go-ipfs-cmds"
|
||||||
)
|
)
|
||||||
|
@ -12,15 +12,15 @@ import (
|
|||||||
"runtime/pprof"
|
"runtime/pprof"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
util "github.com/ipfs/go-ipfs/cmd/ipfs/util"
|
util "github.com/ipfs/kubo/cmd/ipfs/util"
|
||||||
oldcmds "github.com/ipfs/go-ipfs/commands"
|
oldcmds "github.com/ipfs/kubo/commands"
|
||||||
core "github.com/ipfs/go-ipfs/core"
|
core "github.com/ipfs/kubo/core"
|
||||||
corecmds "github.com/ipfs/go-ipfs/core/commands"
|
corecmds "github.com/ipfs/kubo/core/commands"
|
||||||
corehttp "github.com/ipfs/go-ipfs/core/corehttp"
|
corehttp "github.com/ipfs/kubo/core/corehttp"
|
||||||
loader "github.com/ipfs/go-ipfs/plugin/loader"
|
loader "github.com/ipfs/kubo/plugin/loader"
|
||||||
repo "github.com/ipfs/go-ipfs/repo"
|
repo "github.com/ipfs/kubo/repo"
|
||||||
fsrepo "github.com/ipfs/go-ipfs/repo/fsrepo"
|
fsrepo "github.com/ipfs/kubo/repo/fsrepo"
|
||||||
"github.com/ipfs/go-ipfs/tracing"
|
"github.com/ipfs/kubo/tracing"
|
||||||
"go.opentelemetry.io/otel"
|
"go.opentelemetry.io/otel"
|
||||||
|
|
||||||
cmds "github.com/ipfs/go-ipfs-cmds"
|
cmds "github.com/ipfs/go-ipfs-cmds"
|
||||||
|
@ -13,8 +13,8 @@ import (
|
|||||||
logging "github.com/ipfs/go-log"
|
logging "github.com/ipfs/go-log"
|
||||||
pinclient "github.com/ipfs/go-pinning-service-http-client"
|
pinclient "github.com/ipfs/go-pinning-service-http-client"
|
||||||
|
|
||||||
config "github.com/ipfs/go-ipfs/config"
|
config "github.com/ipfs/kubo/config"
|
||||||
"github.com/ipfs/go-ipfs/core"
|
"github.com/ipfs/kubo/core"
|
||||||
)
|
)
|
||||||
|
|
||||||
// mfslog is the logger for remote mfs pinning
|
// mfslog is the logger for remote mfs pinning
|
||||||
|
@ -7,9 +7,9 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
config "github.com/ipfs/go-ipfs/config"
|
|
||||||
ipld "github.com/ipfs/go-ipld-format"
|
ipld "github.com/ipfs/go-ipld-format"
|
||||||
merkledag "github.com/ipfs/go-merkledag"
|
merkledag "github.com/ipfs/go-merkledag"
|
||||||
|
config "github.com/ipfs/kubo/config"
|
||||||
"github.com/libp2p/go-libp2p-core/host"
|
"github.com/libp2p/go-libp2p-core/host"
|
||||||
peer "github.com/libp2p/go-libp2p-core/peer"
|
peer "github.com/libp2p/go-libp2p-core/peer"
|
||||||
)
|
)
|
||||||
|
@ -6,7 +6,7 @@ package main
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/ipfs/go-ipfs/thirdparty/assert"
|
"github.com/ipfs/kubo/thirdparty/assert"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestIsHidden(t *testing.T) {
|
func TestIsHidden(t *testing.T) {
|
||||||
|
@ -12,11 +12,11 @@ import (
|
|||||||
"path/filepath"
|
"path/filepath"
|
||||||
"syscall"
|
"syscall"
|
||||||
|
|
||||||
commands "github.com/ipfs/go-ipfs/commands"
|
commands "github.com/ipfs/kubo/commands"
|
||||||
core "github.com/ipfs/go-ipfs/core"
|
core "github.com/ipfs/kubo/core"
|
||||||
coreapi "github.com/ipfs/go-ipfs/core/coreapi"
|
coreapi "github.com/ipfs/kubo/core/coreapi"
|
||||||
corehttp "github.com/ipfs/go-ipfs/core/corehttp"
|
corehttp "github.com/ipfs/kubo/core/corehttp"
|
||||||
fsrepo "github.com/ipfs/go-ipfs/repo/fsrepo"
|
fsrepo "github.com/ipfs/kubo/repo/fsrepo"
|
||||||
|
|
||||||
fsnotify "github.com/fsnotify/fsnotify"
|
fsnotify "github.com/fsnotify/fsnotify"
|
||||||
files "github.com/ipfs/go-ipfs-files"
|
files "github.com/ipfs/go-ipfs-files"
|
||||||
|
@ -6,15 +6,15 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
core "github.com/ipfs/go-ipfs/core"
|
core "github.com/ipfs/kubo/core"
|
||||||
coreapi "github.com/ipfs/go-ipfs/core/coreapi"
|
coreapi "github.com/ipfs/kubo/core/coreapi"
|
||||||
loader "github.com/ipfs/go-ipfs/plugin/loader"
|
loader "github.com/ipfs/kubo/plugin/loader"
|
||||||
|
|
||||||
cmds "github.com/ipfs/go-ipfs-cmds"
|
cmds "github.com/ipfs/go-ipfs-cmds"
|
||||||
config "github.com/ipfs/go-ipfs/config"
|
|
||||||
logging "github.com/ipfs/go-log"
|
logging "github.com/ipfs/go-log"
|
||||||
coreiface "github.com/ipfs/interface-go-ipfs-core"
|
coreiface "github.com/ipfs/interface-go-ipfs-core"
|
||||||
options "github.com/ipfs/interface-go-ipfs-core/options"
|
options "github.com/ipfs/interface-go-ipfs-core/options"
|
||||||
|
config "github.com/ipfs/kubo/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
var log = logging.Logger("command")
|
var log = logging.Logger("command")
|
||||||
|
@ -3,7 +3,7 @@ package config
|
|||||||
type Experiments struct {
|
type Experiments struct {
|
||||||
FilestoreEnabled bool
|
FilestoreEnabled bool
|
||||||
UrlstoreEnabled bool
|
UrlstoreEnabled bool
|
||||||
ShardingEnabled bool `json:",omitempty"` // deprecated by autosharding: https://github.com/ipfs/go-ipfs/pull/8527
|
ShardingEnabled bool `json:",omitempty"` // deprecated by autosharding: https://github.com/ipfs/kubo/pull/8527
|
||||||
GraphsyncEnabled bool
|
GraphsyncEnabled bool
|
||||||
Libp2pStreamMounting bool
|
Libp2pStreamMounting bool
|
||||||
P2pHttpProxy bool
|
P2pHttpProxy bool
|
||||||
|
@ -61,7 +61,7 @@ type Gateway struct {
|
|||||||
// Setting to 0 will enable fast listings for all directories.
|
// Setting to 0 will enable fast listings for all directories.
|
||||||
FastDirIndexThreshold *OptionalInteger `json:",omitempty"`
|
FastDirIndexThreshold *OptionalInteger `json:",omitempty"`
|
||||||
|
|
||||||
// FIXME: Not yet implemented: https://github.com/ipfs/go-ipfs/issues/8059
|
// FIXME: Not yet implemented: https://github.com/ipfs/kubo/issues/8059
|
||||||
APICommands []string
|
APICommands []string
|
||||||
|
|
||||||
// NoFetch configures the gateway to _not_ fetch blocks in response to
|
// NoFetch configures the gateway to _not_ fetch blocks in response to
|
||||||
|
@ -8,7 +8,7 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|
||||||
"github.com/ipfs/go-ipfs/config"
|
"github.com/ipfs/kubo/config"
|
||||||
|
|
||||||
"github.com/facebookgo/atomicfile"
|
"github.com/facebookgo/atomicfile"
|
||||||
)
|
)
|
||||||
|
@ -5,7 +5,7 @@ import (
|
|||||||
"runtime"
|
"runtime"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
config "github.com/ipfs/go-ipfs/config"
|
config "github.com/ipfs/kubo/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestConfig(t *testing.T) {
|
func TestConfig(t *testing.T) {
|
||||||
|
@ -7,8 +7,8 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/ipfs/go-ipfs/core/bootstrap"
|
"github.com/ipfs/kubo/core/bootstrap"
|
||||||
"github.com/ipfs/go-ipfs/core/node"
|
"github.com/ipfs/kubo/core/node"
|
||||||
|
|
||||||
"github.com/ipfs/go-metrics-interface"
|
"github.com/ipfs/go-metrics-interface"
|
||||||
"go.uber.org/dig"
|
"go.uber.org/dig"
|
||||||
|
@ -7,7 +7,7 @@ import (
|
|||||||
"text/tabwriter"
|
"text/tabwriter"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
oldcmds "github.com/ipfs/go-ipfs/commands"
|
oldcmds "github.com/ipfs/kubo/commands"
|
||||||
|
|
||||||
cmds "github.com/ipfs/go-ipfs-cmds"
|
cmds "github.com/ipfs/go-ipfs-cmds"
|
||||||
)
|
)
|
||||||
|
@ -8,7 +8,7 @@ import (
|
|||||||
"path"
|
"path"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/ipfs/go-ipfs/core/commands/cmdenv"
|
"github.com/ipfs/kubo/core/commands/cmdenv"
|
||||||
|
|
||||||
"github.com/cheggaaa/pb"
|
"github.com/cheggaaa/pb"
|
||||||
cmds "github.com/ipfs/go-ipfs-cmds"
|
cmds "github.com/ipfs/go-ipfs-cmds"
|
||||||
|
@ -4,8 +4,8 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
|
|
||||||
cmdenv "github.com/ipfs/go-ipfs/core/commands/cmdenv"
|
cmdenv "github.com/ipfs/kubo/core/commands/cmdenv"
|
||||||
e "github.com/ipfs/go-ipfs/core/commands/e"
|
e "github.com/ipfs/kubo/core/commands/e"
|
||||||
|
|
||||||
humanize "github.com/dustin/go-humanize"
|
humanize "github.com/dustin/go-humanize"
|
||||||
bitswap "github.com/ipfs/go-bitswap"
|
bitswap "github.com/ipfs/go-bitswap"
|
||||||
|
@ -8,8 +8,8 @@ import (
|
|||||||
|
|
||||||
files "github.com/ipfs/go-ipfs-files"
|
files "github.com/ipfs/go-ipfs-files"
|
||||||
|
|
||||||
cmdenv "github.com/ipfs/go-ipfs/core/commands/cmdenv"
|
cmdenv "github.com/ipfs/kubo/core/commands/cmdenv"
|
||||||
"github.com/ipfs/go-ipfs/core/commands/cmdutils"
|
"github.com/ipfs/kubo/core/commands/cmdutils"
|
||||||
|
|
||||||
cmds "github.com/ipfs/go-ipfs-cmds"
|
cmds "github.com/ipfs/go-ipfs-cmds"
|
||||||
options "github.com/ipfs/interface-go-ipfs-core/options"
|
options "github.com/ipfs/interface-go-ipfs-core/options"
|
||||||
|
@ -6,12 +6,12 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
"sort"
|
"sort"
|
||||||
|
|
||||||
cmdenv "github.com/ipfs/go-ipfs/core/commands/cmdenv"
|
cmdenv "github.com/ipfs/kubo/core/commands/cmdenv"
|
||||||
repo "github.com/ipfs/go-ipfs/repo"
|
repo "github.com/ipfs/kubo/repo"
|
||||||
fsrepo "github.com/ipfs/go-ipfs/repo/fsrepo"
|
fsrepo "github.com/ipfs/kubo/repo/fsrepo"
|
||||||
|
|
||||||
cmds "github.com/ipfs/go-ipfs-cmds"
|
cmds "github.com/ipfs/go-ipfs-cmds"
|
||||||
config "github.com/ipfs/go-ipfs/config"
|
config "github.com/ipfs/kubo/config"
|
||||||
peer "github.com/libp2p/go-libp2p-core/peer"
|
peer "github.com/libp2p/go-libp2p-core/peer"
|
||||||
ma "github.com/multiformats/go-multiaddr"
|
ma "github.com/multiformats/go-multiaddr"
|
||||||
)
|
)
|
||||||
|
@ -6,7 +6,7 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/ipfs/go-ipfs/core/commands/cmdenv"
|
"github.com/ipfs/kubo/core/commands/cmdenv"
|
||||||
|
|
||||||
"github.com/cheggaaa/pb"
|
"github.com/cheggaaa/pb"
|
||||||
"github.com/ipfs/go-ipfs-cmds"
|
"github.com/ipfs/go-ipfs-cmds"
|
||||||
|
@ -5,8 +5,8 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/ipfs/go-ipfs/commands"
|
"github.com/ipfs/kubo/commands"
|
||||||
"github.com/ipfs/go-ipfs/core"
|
"github.com/ipfs/kubo/core"
|
||||||
|
|
||||||
cmds "github.com/ipfs/go-ipfs-cmds"
|
cmds "github.com/ipfs/go-ipfs-cmds"
|
||||||
logging "github.com/ipfs/go-log"
|
logging "github.com/ipfs/go-log"
|
||||||
|
@ -11,7 +11,7 @@ import (
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
AllowBigBlockOptionName = "allow-big-block"
|
AllowBigBlockOptionName = "allow-big-block"
|
||||||
SoftBlockLimit = 1024 * 1024 // https://github.com/ipfs/go-ipfs/issues/7421#issuecomment-910833499
|
SoftBlockLimit = 1024 * 1024 // https://github.com/ipfs/kubo/issues/7421#issuecomment-910833499
|
||||||
)
|
)
|
||||||
|
|
||||||
var AllowBigBlockOption cmds.Option
|
var AllowBigBlockOption cmds.Option
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// Package commands implements the ipfs command interface
|
// Package commands implements the ipfs command interface
|
||||||
//
|
//
|
||||||
// Using github.com/ipfs/go-ipfs/commands to define the command line and HTTP
|
// Using github.com/ipfs/kubo/commands to define the command line and HTTP
|
||||||
// APIs. This is the interface available to folks using IPFS from outside of
|
// APIs. This is the interface available to folks using IPFS from outside of
|
||||||
// the Go language.
|
// the Go language.
|
||||||
package commands
|
package commands
|
||||||
|
@ -9,13 +9,13 @@ import (
|
|||||||
"os/exec"
|
"os/exec"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/ipfs/go-ipfs/core/commands/cmdenv"
|
"github.com/ipfs/kubo/core/commands/cmdenv"
|
||||||
"github.com/ipfs/go-ipfs/repo"
|
"github.com/ipfs/kubo/repo"
|
||||||
"github.com/ipfs/go-ipfs/repo/fsrepo"
|
"github.com/ipfs/kubo/repo/fsrepo"
|
||||||
|
|
||||||
"github.com/elgris/jsondiff"
|
"github.com/elgris/jsondiff"
|
||||||
cmds "github.com/ipfs/go-ipfs-cmds"
|
cmds "github.com/ipfs/go-ipfs-cmds"
|
||||||
config "github.com/ipfs/go-ipfs/config"
|
config "github.com/ipfs/kubo/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ConfigUpdateOutput is config profile apply command's output
|
// ConfigUpdateOutput is config profile apply command's output
|
||||||
|
@ -4,8 +4,8 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
|
|
||||||
"github.com/ipfs/go-ipfs/core/commands/cmdenv"
|
"github.com/ipfs/kubo/core/commands/cmdenv"
|
||||||
"github.com/ipfs/go-ipfs/core/commands/cmdutils"
|
"github.com/ipfs/kubo/core/commands/cmdutils"
|
||||||
|
|
||||||
cid "github.com/ipfs/go-cid"
|
cid "github.com/ipfs/go-cid"
|
||||||
cidenc "github.com/ipfs/go-cidutil/cidenc"
|
cidenc "github.com/ipfs/go-cidutil/cidenc"
|
||||||
|
@ -11,9 +11,9 @@ import (
|
|||||||
"github.com/cheggaaa/pb"
|
"github.com/cheggaaa/pb"
|
||||||
blocks "github.com/ipfs/go-block-format"
|
blocks "github.com/ipfs/go-block-format"
|
||||||
cid "github.com/ipfs/go-cid"
|
cid "github.com/ipfs/go-cid"
|
||||||
"github.com/ipfs/go-ipfs/core/commands/cmdenv"
|
|
||||||
ipld "github.com/ipfs/go-ipld-format"
|
ipld "github.com/ipfs/go-ipld-format"
|
||||||
iface "github.com/ipfs/interface-go-ipfs-core"
|
iface "github.com/ipfs/interface-go-ipfs-core"
|
||||||
|
"github.com/ipfs/kubo/core/commands/cmdenv"
|
||||||
|
|
||||||
cmds "github.com/ipfs/go-ipfs-cmds"
|
cmds "github.com/ipfs/go-ipfs-cmds"
|
||||||
gocar "github.com/ipld/go-car"
|
gocar "github.com/ipld/go-car"
|
||||||
|
@ -4,9 +4,9 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
|
|
||||||
"github.com/ipfs/go-ipfs/core/commands/cmdenv"
|
|
||||||
ipldlegacy "github.com/ipfs/go-ipld-legacy"
|
ipldlegacy "github.com/ipfs/go-ipld-legacy"
|
||||||
"github.com/ipfs/interface-go-ipfs-core/path"
|
"github.com/ipfs/interface-go-ipfs-core/path"
|
||||||
|
"github.com/ipfs/kubo/core/commands/cmdenv"
|
||||||
|
|
||||||
"github.com/ipld/go-ipld-prime"
|
"github.com/ipld/go-ipld-prime"
|
||||||
"github.com/ipld/go-ipld-prime/multicodec"
|
"github.com/ipld/go-ipld-prime/multicodec"
|
||||||
|
@ -7,11 +7,11 @@ import (
|
|||||||
|
|
||||||
cid "github.com/ipfs/go-cid"
|
cid "github.com/ipfs/go-cid"
|
||||||
files "github.com/ipfs/go-ipfs-files"
|
files "github.com/ipfs/go-ipfs-files"
|
||||||
"github.com/ipfs/go-ipfs/core/commands/cmdenv"
|
|
||||||
"github.com/ipfs/go-ipfs/core/commands/cmdutils"
|
|
||||||
ipld "github.com/ipfs/go-ipld-format"
|
ipld "github.com/ipfs/go-ipld-format"
|
||||||
iface "github.com/ipfs/interface-go-ipfs-core"
|
iface "github.com/ipfs/interface-go-ipfs-core"
|
||||||
"github.com/ipfs/interface-go-ipfs-core/options"
|
"github.com/ipfs/interface-go-ipfs-core/options"
|
||||||
|
"github.com/ipfs/kubo/core/commands/cmdenv"
|
||||||
|
"github.com/ipfs/kubo/core/commands/cmdutils"
|
||||||
|
|
||||||
cmds "github.com/ipfs/go-ipfs-cmds"
|
cmds "github.com/ipfs/go-ipfs-cmds"
|
||||||
gocarv2 "github.com/ipld/go-car/v2"
|
gocarv2 "github.com/ipld/go-car/v2"
|
||||||
|
@ -6,9 +6,9 @@ import (
|
|||||||
|
|
||||||
blocks "github.com/ipfs/go-block-format"
|
blocks "github.com/ipfs/go-block-format"
|
||||||
"github.com/ipfs/go-cid"
|
"github.com/ipfs/go-cid"
|
||||||
"github.com/ipfs/go-ipfs/core/commands/cmdenv"
|
|
||||||
"github.com/ipfs/go-ipfs/core/commands/cmdutils"
|
|
||||||
ipldlegacy "github.com/ipfs/go-ipld-legacy"
|
ipldlegacy "github.com/ipfs/go-ipld-legacy"
|
||||||
|
"github.com/ipfs/kubo/core/commands/cmdenv"
|
||||||
|
"github.com/ipfs/kubo/core/commands/cmdutils"
|
||||||
"github.com/ipld/go-ipld-prime/multicodec"
|
"github.com/ipld/go-ipld-prime/multicodec"
|
||||||
basicnode "github.com/ipld/go-ipld-prime/node/basic"
|
basicnode "github.com/ipld/go-ipld-prime/node/basic"
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
package dagcmd
|
package dagcmd
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/ipfs/go-ipfs/core/commands/cmdenv"
|
|
||||||
"github.com/ipfs/interface-go-ipfs-core/path"
|
"github.com/ipfs/interface-go-ipfs-core/path"
|
||||||
|
"github.com/ipfs/kubo/core/commands/cmdenv"
|
||||||
|
|
||||||
cmds "github.com/ipfs/go-ipfs-cmds"
|
cmds "github.com/ipfs/go-ipfs-cmds"
|
||||||
)
|
)
|
||||||
|
@ -5,10 +5,10 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/ipfs/go-ipfs/core/commands/cmdenv"
|
|
||||||
"github.com/ipfs/go-ipfs/core/commands/e"
|
|
||||||
"github.com/ipfs/go-merkledag/traverse"
|
"github.com/ipfs/go-merkledag/traverse"
|
||||||
"github.com/ipfs/interface-go-ipfs-core/path"
|
"github.com/ipfs/interface-go-ipfs-core/path"
|
||||||
|
"github.com/ipfs/kubo/core/commands/cmdenv"
|
||||||
|
"github.com/ipfs/kubo/core/commands/e"
|
||||||
|
|
||||||
cmds "github.com/ipfs/go-ipfs-cmds"
|
cmds "github.com/ipfs/go-ipfs-cmds"
|
||||||
mdag "github.com/ipfs/go-merkledag"
|
mdag "github.com/ipfs/go-merkledag"
|
||||||
|
@ -8,7 +8,7 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
cmdenv "github.com/ipfs/go-ipfs/core/commands/cmdenv"
|
cmdenv "github.com/ipfs/kubo/core/commands/cmdenv"
|
||||||
|
|
||||||
cid "github.com/ipfs/go-cid"
|
cid "github.com/ipfs/go-cid"
|
||||||
cmds "github.com/ipfs/go-ipfs-cmds"
|
cmds "github.com/ipfs/go-ipfs-cmds"
|
||||||
|
@ -4,10 +4,10 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
|
|
||||||
cmdenv "github.com/ipfs/go-ipfs/core/commands/cmdenv"
|
|
||||||
ncmd "github.com/ipfs/go-ipfs/core/commands/name"
|
|
||||||
namesys "github.com/ipfs/go-namesys"
|
namesys "github.com/ipfs/go-namesys"
|
||||||
nsopts "github.com/ipfs/interface-go-ipfs-core/options/namesys"
|
nsopts "github.com/ipfs/interface-go-ipfs-core/options/namesys"
|
||||||
|
cmdenv "github.com/ipfs/kubo/core/commands/cmdenv"
|
||||||
|
ncmd "github.com/ipfs/kubo/core/commands/name"
|
||||||
|
|
||||||
cmds "github.com/ipfs/go-ipfs-cmds"
|
cmds "github.com/ipfs/go-ipfs-cmds"
|
||||||
)
|
)
|
||||||
@ -17,7 +17,7 @@ const (
|
|||||||
)
|
)
|
||||||
|
|
||||||
var DNSCmd = &cmds.Command{
|
var DNSCmd = &cmds.Command{
|
||||||
Status: cmds.Deprecated, // https://github.com/ipfs/go-ipfs/issues/8607
|
Status: cmds.Deprecated, // https://github.com/ipfs/kubo/issues/8607
|
||||||
Helptext: cmds.HelpText{
|
Helptext: cmds.HelpText{
|
||||||
Tagline: "Resolve DNSLink records.",
|
Tagline: "Resolve DNSLink records.",
|
||||||
ShortDescription: `
|
ShortDescription: `
|
||||||
|
@ -11,8 +11,8 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
humanize "github.com/dustin/go-humanize"
|
humanize "github.com/dustin/go-humanize"
|
||||||
"github.com/ipfs/go-ipfs/core"
|
"github.com/ipfs/kubo/core"
|
||||||
"github.com/ipfs/go-ipfs/core/commands/cmdenv"
|
"github.com/ipfs/kubo/core/commands/cmdenv"
|
||||||
|
|
||||||
bservice "github.com/ipfs/go-blockservice"
|
bservice "github.com/ipfs/go-blockservice"
|
||||||
cid "github.com/ipfs/go-cid"
|
cid "github.com/ipfs/go-cid"
|
||||||
|
@ -8,9 +8,9 @@ import (
|
|||||||
|
|
||||||
filestore "github.com/ipfs/go-filestore"
|
filestore "github.com/ipfs/go-filestore"
|
||||||
cmds "github.com/ipfs/go-ipfs-cmds"
|
cmds "github.com/ipfs/go-ipfs-cmds"
|
||||||
core "github.com/ipfs/go-ipfs/core"
|
core "github.com/ipfs/kubo/core"
|
||||||
cmdenv "github.com/ipfs/go-ipfs/core/commands/cmdenv"
|
cmdenv "github.com/ipfs/kubo/core/commands/cmdenv"
|
||||||
e "github.com/ipfs/go-ipfs/core/commands/e"
|
e "github.com/ipfs/kubo/core/commands/e"
|
||||||
|
|
||||||
"github.com/ipfs/go-cid"
|
"github.com/ipfs/go-cid"
|
||||||
)
|
)
|
||||||
|
@ -11,8 +11,8 @@ import (
|
|||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/ipfs/go-ipfs/core/commands/cmdenv"
|
"github.com/ipfs/kubo/core/commands/cmdenv"
|
||||||
"github.com/ipfs/go-ipfs/core/commands/e"
|
"github.com/ipfs/kubo/core/commands/e"
|
||||||
|
|
||||||
"github.com/cheggaaa/pb"
|
"github.com/cheggaaa/pb"
|
||||||
cmds "github.com/ipfs/go-ipfs-cmds"
|
cmds "github.com/ipfs/go-ipfs-cmds"
|
||||||
|
@ -9,12 +9,12 @@ import (
|
|||||||
"sort"
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
version "github.com/ipfs/go-ipfs"
|
version "github.com/ipfs/kubo"
|
||||||
core "github.com/ipfs/go-ipfs/core"
|
core "github.com/ipfs/kubo/core"
|
||||||
cmdenv "github.com/ipfs/go-ipfs/core/commands/cmdenv"
|
cmdenv "github.com/ipfs/kubo/core/commands/cmdenv"
|
||||||
|
|
||||||
cmds "github.com/ipfs/go-ipfs-cmds"
|
cmds "github.com/ipfs/go-ipfs-cmds"
|
||||||
ke "github.com/ipfs/go-ipfs/core/commands/keyencode"
|
ke "github.com/ipfs/kubo/core/commands/keyencode"
|
||||||
ic "github.com/libp2p/go-libp2p-core/crypto"
|
ic "github.com/libp2p/go-libp2p-core/crypto"
|
||||||
"github.com/libp2p/go-libp2p-core/host"
|
"github.com/libp2p/go-libp2p-core/host"
|
||||||
peer "github.com/libp2p/go-libp2p-core/peer"
|
peer "github.com/libp2p/go-libp2p-core/peer"
|
||||||
|
@ -14,14 +14,14 @@ import (
|
|||||||
|
|
||||||
cmds "github.com/ipfs/go-ipfs-cmds"
|
cmds "github.com/ipfs/go-ipfs-cmds"
|
||||||
keystore "github.com/ipfs/go-ipfs-keystore"
|
keystore "github.com/ipfs/go-ipfs-keystore"
|
||||||
oldcmds "github.com/ipfs/go-ipfs/commands"
|
|
||||||
config "github.com/ipfs/go-ipfs/config"
|
|
||||||
cmdenv "github.com/ipfs/go-ipfs/core/commands/cmdenv"
|
|
||||||
"github.com/ipfs/go-ipfs/core/commands/e"
|
|
||||||
ke "github.com/ipfs/go-ipfs/core/commands/keyencode"
|
|
||||||
fsrepo "github.com/ipfs/go-ipfs/repo/fsrepo"
|
|
||||||
migrations "github.com/ipfs/go-ipfs/repo/fsrepo/migrations"
|
|
||||||
options "github.com/ipfs/interface-go-ipfs-core/options"
|
options "github.com/ipfs/interface-go-ipfs-core/options"
|
||||||
|
oldcmds "github.com/ipfs/kubo/commands"
|
||||||
|
config "github.com/ipfs/kubo/config"
|
||||||
|
cmdenv "github.com/ipfs/kubo/core/commands/cmdenv"
|
||||||
|
"github.com/ipfs/kubo/core/commands/e"
|
||||||
|
ke "github.com/ipfs/kubo/core/commands/keyencode"
|
||||||
|
fsrepo "github.com/ipfs/kubo/repo/fsrepo"
|
||||||
|
migrations "github.com/ipfs/kubo/repo/fsrepo/migrations"
|
||||||
"github.com/libp2p/go-libp2p-core/crypto"
|
"github.com/libp2p/go-libp2p-core/crypto"
|
||||||
peer "github.com/libp2p/go-libp2p-core/peer"
|
peer "github.com/libp2p/go-libp2p-core/peer"
|
||||||
)
|
)
|
||||||
|
@ -7,7 +7,7 @@ import (
|
|||||||
"sort"
|
"sort"
|
||||||
"text/tabwriter"
|
"text/tabwriter"
|
||||||
|
|
||||||
cmdenv "github.com/ipfs/go-ipfs/core/commands/cmdenv"
|
cmdenv "github.com/ipfs/kubo/core/commands/cmdenv"
|
||||||
|
|
||||||
cmds "github.com/ipfs/go-ipfs-cmds"
|
cmds "github.com/ipfs/go-ipfs-cmds"
|
||||||
unixfs "github.com/ipfs/go-unixfs"
|
unixfs "github.com/ipfs/go-unixfs"
|
||||||
|
@ -7,12 +7,12 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
|
|
||||||
oldcmds "github.com/ipfs/go-ipfs/commands"
|
oldcmds "github.com/ipfs/kubo/commands"
|
||||||
cmdenv "github.com/ipfs/go-ipfs/core/commands/cmdenv"
|
cmdenv "github.com/ipfs/kubo/core/commands/cmdenv"
|
||||||
nodeMount "github.com/ipfs/go-ipfs/fuse/node"
|
nodeMount "github.com/ipfs/kubo/fuse/node"
|
||||||
|
|
||||||
cmds "github.com/ipfs/go-ipfs-cmds"
|
cmds "github.com/ipfs/go-ipfs-cmds"
|
||||||
config "github.com/ipfs/go-ipfs/config"
|
config "github.com/ipfs/kubo/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -7,7 +7,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
cmds "github.com/ipfs/go-ipfs-cmds"
|
cmds "github.com/ipfs/go-ipfs-cmds"
|
||||||
"github.com/ipfs/go-ipfs/core/commands/cmdenv"
|
"github.com/ipfs/kubo/core/commands/cmdenv"
|
||||||
mbase "github.com/multiformats/go-multibase"
|
mbase "github.com/multiformats/go-multibase"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -7,8 +7,8 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
cmdenv "github.com/ipfs/go-ipfs/core/commands/cmdenv"
|
|
||||||
namesys "github.com/ipfs/go-namesys"
|
namesys "github.com/ipfs/go-namesys"
|
||||||
|
cmdenv "github.com/ipfs/kubo/core/commands/cmdenv"
|
||||||
|
|
||||||
cmds "github.com/ipfs/go-ipfs-cmds"
|
cmds "github.com/ipfs/go-ipfs-cmds"
|
||||||
logging "github.com/ipfs/go-log"
|
logging "github.com/ipfs/go-log"
|
||||||
|
@ -6,8 +6,8 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
cmds "github.com/ipfs/go-ipfs-cmds"
|
cmds "github.com/ipfs/go-ipfs-cmds"
|
||||||
"github.com/ipfs/go-ipfs/core/commands/cmdenv"
|
"github.com/ipfs/kubo/core/commands/cmdenv"
|
||||||
ke "github.com/ipfs/go-ipfs/core/commands/keyencode"
|
ke "github.com/ipfs/kubo/core/commands/keyencode"
|
||||||
"github.com/libp2p/go-libp2p-core/peer"
|
"github.com/libp2p/go-libp2p-core/peer"
|
||||||
record "github.com/libp2p/go-libp2p-record"
|
record "github.com/libp2p/go-libp2p-record"
|
||||||
)
|
)
|
||||||
|
@ -6,13 +6,13 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
cmdenv "github.com/ipfs/go-ipfs/core/commands/cmdenv"
|
cmdenv "github.com/ipfs/kubo/core/commands/cmdenv"
|
||||||
|
|
||||||
cmds "github.com/ipfs/go-ipfs-cmds"
|
cmds "github.com/ipfs/go-ipfs-cmds"
|
||||||
ke "github.com/ipfs/go-ipfs/core/commands/keyencode"
|
|
||||||
iface "github.com/ipfs/interface-go-ipfs-core"
|
iface "github.com/ipfs/interface-go-ipfs-core"
|
||||||
options "github.com/ipfs/interface-go-ipfs-core/options"
|
options "github.com/ipfs/interface-go-ipfs-core/options"
|
||||||
path "github.com/ipfs/interface-go-ipfs-core/path"
|
path "github.com/ipfs/interface-go-ipfs-core/path"
|
||||||
|
ke "github.com/ipfs/kubo/core/commands/keyencode"
|
||||||
peer "github.com/libp2p/go-libp2p-core/peer"
|
peer "github.com/libp2p/go-libp2p-core/peer"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ import (
|
|||||||
"github.com/ipfs/go-merkledag/dagutils"
|
"github.com/ipfs/go-merkledag/dagutils"
|
||||||
path "github.com/ipfs/interface-go-ipfs-core/path"
|
path "github.com/ipfs/interface-go-ipfs-core/path"
|
||||||
|
|
||||||
cmdenv "github.com/ipfs/go-ipfs/core/commands/cmdenv"
|
cmdenv "github.com/ipfs/kubo/core/commands/cmdenv"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@ -20,7 +20,7 @@ type Changes struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var ObjectDiffCmd = &cmds.Command{
|
var ObjectDiffCmd = &cmds.Command{
|
||||||
Status: cmds.Deprecated, // https://github.com/ipfs/go-ipfs/issues/7936
|
Status: cmds.Deprecated, // https://github.com/ipfs/kubo/issues/7936
|
||||||
Helptext: cmds.HelpText{
|
Helptext: cmds.HelpText{
|
||||||
Tagline: "Display the diff between two IPFS objects.",
|
Tagline: "Display the diff between two IPFS objects.",
|
||||||
ShortDescription: `
|
ShortDescription: `
|
||||||
|
@ -8,7 +8,7 @@ import (
|
|||||||
"text/tabwriter"
|
"text/tabwriter"
|
||||||
|
|
||||||
cmds "github.com/ipfs/go-ipfs-cmds"
|
cmds "github.com/ipfs/go-ipfs-cmds"
|
||||||
"github.com/ipfs/go-ipfs/core/commands/cmdenv"
|
"github.com/ipfs/kubo/core/commands/cmdenv"
|
||||||
|
|
||||||
humanize "github.com/dustin/go-humanize"
|
humanize "github.com/dustin/go-humanize"
|
||||||
"github.com/ipfs/go-cid"
|
"github.com/ipfs/go-cid"
|
||||||
@ -46,7 +46,7 @@ const (
|
|||||||
)
|
)
|
||||||
|
|
||||||
var ObjectCmd = &cmds.Command{
|
var ObjectCmd = &cmds.Command{
|
||||||
Status: cmds.Deprecated, // https://github.com/ipfs/go-ipfs/issues/7936
|
Status: cmds.Deprecated, // https://github.com/ipfs/kubo/issues/7936
|
||||||
Helptext: cmds.HelpText{
|
Helptext: cmds.HelpText{
|
||||||
Tagline: "Deprecated commands to interact with dag-pb objects. Use 'dag' or 'files' instead.",
|
Tagline: "Deprecated commands to interact with dag-pb objects. Use 'dag' or 'files' instead.",
|
||||||
ShortDescription: `
|
ShortDescription: `
|
||||||
@ -68,7 +68,7 @@ directly. Deprecated, use more modern 'ipfs dag' and 'ipfs files' instead.`,
|
|||||||
|
|
||||||
// ObjectDataCmd object data command
|
// ObjectDataCmd object data command
|
||||||
var ObjectDataCmd = &cmds.Command{
|
var ObjectDataCmd = &cmds.Command{
|
||||||
Status: cmds.Deprecated, // https://github.com/ipfs/go-ipfs/issues/7936
|
Status: cmds.Deprecated, // https://github.com/ipfs/kubo/issues/7936
|
||||||
Helptext: cmds.HelpText{
|
Helptext: cmds.HelpText{
|
||||||
Tagline: "Deprecated way to read the raw bytes of a dag-pb object: use 'dag get' instead.",
|
Tagline: "Deprecated way to read the raw bytes of a dag-pb object: use 'dag get' instead.",
|
||||||
ShortDescription: `
|
ShortDescription: `
|
||||||
@ -108,7 +108,7 @@ is the raw data of the object.
|
|||||||
|
|
||||||
// ObjectLinksCmd object links command
|
// ObjectLinksCmd object links command
|
||||||
var ObjectLinksCmd = &cmds.Command{
|
var ObjectLinksCmd = &cmds.Command{
|
||||||
Status: cmds.Deprecated, // https://github.com/ipfs/go-ipfs/issues/7936
|
Status: cmds.Deprecated, // https://github.com/ipfs/kubo/issues/7936
|
||||||
Helptext: cmds.HelpText{
|
Helptext: cmds.HelpText{
|
||||||
Tagline: "Deprecated way to output links in the specified dag-pb object: use 'dag get' instead.",
|
Tagline: "Deprecated way to output links in the specified dag-pb object: use 'dag get' instead.",
|
||||||
ShortDescription: `
|
ShortDescription: `
|
||||||
@ -183,7 +183,7 @@ multihash. Provided for legacy reasons. Use 'ipfs dag get' instead.
|
|||||||
|
|
||||||
// ObjectGetCmd object get command
|
// ObjectGetCmd object get command
|
||||||
var ObjectGetCmd = &cmds.Command{
|
var ObjectGetCmd = &cmds.Command{
|
||||||
Status: cmds.Deprecated, // https://github.com/ipfs/go-ipfs/issues/7936
|
Status: cmds.Deprecated, // https://github.com/ipfs/kubo/issues/7936
|
||||||
Helptext: cmds.HelpText{
|
Helptext: cmds.HelpText{
|
||||||
Tagline: "Deprecated way to get and serialize the dag-pb node. Use 'dag get' instead",
|
Tagline: "Deprecated way to get and serialize the dag-pb node. Use 'dag get' instead",
|
||||||
ShortDescription: `
|
ShortDescription: `
|
||||||
@ -275,7 +275,7 @@ DEPRECATED and provided for legacy reasons. Use 'ipfs dag get' instead.
|
|||||||
|
|
||||||
// ObjectStatCmd object stat command
|
// ObjectStatCmd object stat command
|
||||||
var ObjectStatCmd = &cmds.Command{
|
var ObjectStatCmd = &cmds.Command{
|
||||||
Status: cmds.Deprecated, // https://github.com/ipfs/go-ipfs/issues/7936
|
Status: cmds.Deprecated, // https://github.com/ipfs/kubo/issues/7936
|
||||||
Helptext: cmds.HelpText{
|
Helptext: cmds.HelpText{
|
||||||
Tagline: "Deprecated way to read stats for the dag-pb node. Use 'files stat' instead.",
|
Tagline: "Deprecated way to read stats for the dag-pb node. Use 'files stat' instead.",
|
||||||
ShortDescription: `
|
ShortDescription: `
|
||||||
@ -375,7 +375,7 @@ DEPRECATED: Provided for legacy reasons. Modern replacements:
|
|||||||
|
|
||||||
// ObjectPutCmd object put command
|
// ObjectPutCmd object put command
|
||||||
var ObjectPutCmd = &cmds.Command{
|
var ObjectPutCmd = &cmds.Command{
|
||||||
Status: cmds.Deprecated, // https://github.com/ipfs/go-ipfs/issues/7936
|
Status: cmds.Deprecated, // https://github.com/ipfs/kubo/issues/7936
|
||||||
Helptext: cmds.HelpText{
|
Helptext: cmds.HelpText{
|
||||||
Tagline: "Deprecated way to store input as a DAG object. Use 'dag put' instead.",
|
Tagline: "Deprecated way to store input as a DAG object. Use 'dag put' instead.",
|
||||||
ShortDescription: `
|
ShortDescription: `
|
||||||
@ -455,7 +455,7 @@ DEPRECATED and provided for legacy reasons. Use 'ipfs dag put' instead.
|
|||||||
|
|
||||||
// ObjectNewCmd object new command
|
// ObjectNewCmd object new command
|
||||||
var ObjectNewCmd = &cmds.Command{
|
var ObjectNewCmd = &cmds.Command{
|
||||||
Status: cmds.Deprecated, // https://github.com/ipfs/go-ipfs/issues/7936
|
Status: cmds.Deprecated, // https://github.com/ipfs/kubo/issues/7936
|
||||||
Helptext: cmds.HelpText{
|
Helptext: cmds.HelpText{
|
||||||
Tagline: "Deprecated way to create a new dag-pb object from a template.",
|
Tagline: "Deprecated way to create a new dag-pb object from a template.",
|
||||||
ShortDescription: `
|
ShortDescription: `
|
||||||
|
@ -5,15 +5,15 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
|
|
||||||
cmds "github.com/ipfs/go-ipfs-cmds"
|
cmds "github.com/ipfs/go-ipfs-cmds"
|
||||||
"github.com/ipfs/go-ipfs/core/commands/cmdenv"
|
"github.com/ipfs/kubo/core/commands/cmdenv"
|
||||||
"github.com/ipfs/go-ipfs/core/commands/cmdutils"
|
"github.com/ipfs/kubo/core/commands/cmdutils"
|
||||||
|
|
||||||
"github.com/ipfs/interface-go-ipfs-core/options"
|
"github.com/ipfs/interface-go-ipfs-core/options"
|
||||||
"github.com/ipfs/interface-go-ipfs-core/path"
|
"github.com/ipfs/interface-go-ipfs-core/path"
|
||||||
)
|
)
|
||||||
|
|
||||||
var ObjectPatchCmd = &cmds.Command{
|
var ObjectPatchCmd = &cmds.Command{
|
||||||
Status: cmds.Deprecated, // https://github.com/ipfs/go-ipfs/issues/7936
|
Status: cmds.Deprecated, // https://github.com/ipfs/kubo/issues/7936
|
||||||
Helptext: cmds.HelpText{
|
Helptext: cmds.HelpText{
|
||||||
Tagline: "Deprecated way to create a new merkledag object based on an existing one. Use MFS with 'files cp|rm' instead.",
|
Tagline: "Deprecated way to create a new merkledag object based on an existing one. Use MFS with 'files cp|rm' instead.",
|
||||||
ShortDescription: `
|
ShortDescription: `
|
||||||
@ -49,7 +49,7 @@ For modern use cases, use MFS with 'files' commands: 'ipfs files --help'.
|
|||||||
}
|
}
|
||||||
|
|
||||||
var patchAppendDataCmd = &cmds.Command{
|
var patchAppendDataCmd = &cmds.Command{
|
||||||
Status: cmds.Deprecated, // https://github.com/ipfs/go-ipfs/issues/7936
|
Status: cmds.Deprecated, // https://github.com/ipfs/kubo/issues/7936
|
||||||
Helptext: cmds.HelpText{
|
Helptext: cmds.HelpText{
|
||||||
Tagline: "Deprecated way to append data to the data segment of a DAG node.",
|
Tagline: "Deprecated way to append data to the data segment of a DAG node.",
|
||||||
ShortDescription: `
|
ShortDescription: `
|
||||||
@ -104,7 +104,7 @@ DEPRECATED and provided for legacy reasons. Use 'ipfs add' or 'ipfs files' inste
|
|||||||
}
|
}
|
||||||
|
|
||||||
var patchSetDataCmd = &cmds.Command{
|
var patchSetDataCmd = &cmds.Command{
|
||||||
Status: cmds.Deprecated, // https://github.com/ipfs/go-ipfs/issues/7936
|
Status: cmds.Deprecated, // https://github.com/ipfs/kubo/issues/7936
|
||||||
Helptext: cmds.HelpText{
|
Helptext: cmds.HelpText{
|
||||||
Tagline: "Deprecated way to set the data field of dag-pb object.",
|
Tagline: "Deprecated way to set the data field of dag-pb object.",
|
||||||
ShortDescription: `
|
ShortDescription: `
|
||||||
@ -155,7 +155,7 @@ DEPRECATED and provided for legacy reasons. Use 'files cp' and 'dag put' instead
|
|||||||
}
|
}
|
||||||
|
|
||||||
var patchRmLinkCmd = &cmds.Command{
|
var patchRmLinkCmd = &cmds.Command{
|
||||||
Status: cmds.Deprecated, // https://github.com/ipfs/go-ipfs/issues/7936
|
Status: cmds.Deprecated, // https://github.com/ipfs/kubo/issues/7936
|
||||||
Helptext: cmds.HelpText{
|
Helptext: cmds.HelpText{
|
||||||
Tagline: "Deprecated way to remove a link from dag-pb object.",
|
Tagline: "Deprecated way to remove a link from dag-pb object.",
|
||||||
ShortDescription: `
|
ShortDescription: `
|
||||||
@ -202,7 +202,7 @@ const (
|
|||||||
)
|
)
|
||||||
|
|
||||||
var patchAddLinkCmd = &cmds.Command{
|
var patchAddLinkCmd = &cmds.Command{
|
||||||
Status: cmds.Deprecated, // https://github.com/ipfs/go-ipfs/issues/7936
|
Status: cmds.Deprecated, // https://github.com/ipfs/kubo/issues/7936
|
||||||
Helptext: cmds.HelpText{
|
Helptext: cmds.HelpText{
|
||||||
Tagline: "Deprecated way to add a link to a given dag-pb.",
|
Tagline: "Deprecated way to add a link to a given dag-pb.",
|
||||||
ShortDescription: `
|
ShortDescription: `
|
||||||
|
@ -10,9 +10,9 @@ import (
|
|||||||
"text/tabwriter"
|
"text/tabwriter"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
core "github.com/ipfs/go-ipfs/core"
|
core "github.com/ipfs/kubo/core"
|
||||||
cmdenv "github.com/ipfs/go-ipfs/core/commands/cmdenv"
|
cmdenv "github.com/ipfs/kubo/core/commands/cmdenv"
|
||||||
p2p "github.com/ipfs/go-ipfs/p2p"
|
p2p "github.com/ipfs/kubo/p2p"
|
||||||
|
|
||||||
cmds "github.com/ipfs/go-ipfs-cmds"
|
cmds "github.com/ipfs/go-ipfs-cmds"
|
||||||
peer "github.com/libp2p/go-libp2p-core/peer"
|
peer "github.com/libp2p/go-libp2p-core/peer"
|
||||||
|
@ -19,9 +19,9 @@ import (
|
|||||||
options "github.com/ipfs/interface-go-ipfs-core/options"
|
options "github.com/ipfs/interface-go-ipfs-core/options"
|
||||||
"github.com/ipfs/interface-go-ipfs-core/path"
|
"github.com/ipfs/interface-go-ipfs-core/path"
|
||||||
|
|
||||||
core "github.com/ipfs/go-ipfs/core"
|
core "github.com/ipfs/kubo/core"
|
||||||
cmdenv "github.com/ipfs/go-ipfs/core/commands/cmdenv"
|
cmdenv "github.com/ipfs/kubo/core/commands/cmdenv"
|
||||||
e "github.com/ipfs/go-ipfs/core/commands/e"
|
e "github.com/ipfs/kubo/core/commands/e"
|
||||||
)
|
)
|
||||||
|
|
||||||
var PinCmd = &cmds.Command{
|
var PinCmd = &cmds.Command{
|
||||||
|
@ -17,12 +17,12 @@ import (
|
|||||||
|
|
||||||
cid "github.com/ipfs/go-cid"
|
cid "github.com/ipfs/go-cid"
|
||||||
cmds "github.com/ipfs/go-ipfs-cmds"
|
cmds "github.com/ipfs/go-ipfs-cmds"
|
||||||
config "github.com/ipfs/go-ipfs/config"
|
|
||||||
"github.com/ipfs/go-ipfs/core/commands/cmdenv"
|
|
||||||
fsrepo "github.com/ipfs/go-ipfs/repo/fsrepo"
|
|
||||||
logging "github.com/ipfs/go-log"
|
logging "github.com/ipfs/go-log"
|
||||||
pinclient "github.com/ipfs/go-pinning-service-http-client"
|
pinclient "github.com/ipfs/go-pinning-service-http-client"
|
||||||
path "github.com/ipfs/interface-go-ipfs-core/path"
|
path "github.com/ipfs/interface-go-ipfs-core/path"
|
||||||
|
config "github.com/ipfs/kubo/config"
|
||||||
|
"github.com/ipfs/kubo/core/commands/cmdenv"
|
||||||
|
fsrepo "github.com/ipfs/kubo/repo/fsrepo"
|
||||||
"github.com/libp2p/go-libp2p-core/host"
|
"github.com/libp2p/go-libp2p-core/host"
|
||||||
peer "github.com/libp2p/go-libp2p-core/peer"
|
peer "github.com/libp2p/go-libp2p-core/peer"
|
||||||
)
|
)
|
||||||
@ -761,7 +761,7 @@ func normalizeEndpoint(endpoint string) (string, error) {
|
|||||||
return "", fmt.Errorf("service endpoint must be a valid HTTP URL")
|
return "", fmt.Errorf("service endpoint must be a valid HTTP URL")
|
||||||
}
|
}
|
||||||
|
|
||||||
// cleanup trailing and duplicate slashes (https://github.com/ipfs/go-ipfs/issues/7826)
|
// cleanup trailing and duplicate slashes (https://github.com/ipfs/kubo/issues/7826)
|
||||||
uri.Path = gopath.Clean(uri.Path)
|
uri.Path = gopath.Clean(uri.Path)
|
||||||
uri.Path = strings.TrimSuffix(uri.Path, ".")
|
uri.Path = strings.TrimSuffix(uri.Path, ".")
|
||||||
uri.Path = strings.TrimSuffix(uri.Path, "/")
|
uri.Path = strings.TrimSuffix(uri.Path, "/")
|
||||||
|
@ -8,7 +8,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/ipfs/go-ipfs/core/commands/cmdenv"
|
"github.com/ipfs/kubo/core/commands/cmdenv"
|
||||||
|
|
||||||
cmds "github.com/ipfs/go-ipfs-cmds"
|
cmds "github.com/ipfs/go-ipfs-cmds"
|
||||||
peer "github.com/libp2p/go-libp2p-core/peer"
|
peer "github.com/libp2p/go-libp2p-core/peer"
|
||||||
|
@ -9,8 +9,8 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
cmds "github.com/ipfs/go-ipfs-cmds"
|
cmds "github.com/ipfs/go-ipfs-cmds"
|
||||||
"github.com/ipfs/go-ipfs/core/commands/e"
|
"github.com/ipfs/kubo/core/commands/e"
|
||||||
"github.com/ipfs/go-ipfs/profile"
|
"github.com/ipfs/kubo/profile"
|
||||||
)
|
)
|
||||||
|
|
||||||
// time format that works in filenames on windows.
|
// time format that works in filenames on windows.
|
||||||
@ -41,7 +41,7 @@ To aid in debugging, this command also attempts to include a copy of
|
|||||||
the running go-ipfs binary.
|
the running go-ipfs binary.
|
||||||
|
|
||||||
Profiles can be examined using 'go tool pprof', some tips can be found at
|
Profiles can be examined using 'go tool pprof', some tips can be found at
|
||||||
https://github.com/ipfs/go-ipfs/blob/master/docs/debug-guide.md.
|
https://github.com/ipfs/kubo/blob/master/docs/debug-guide.md.
|
||||||
|
|
||||||
Privacy Notice:
|
Privacy Notice:
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"sort"
|
"sort"
|
||||||
|
|
||||||
cmdenv "github.com/ipfs/go-ipfs/core/commands/cmdenv"
|
cmdenv "github.com/ipfs/kubo/core/commands/cmdenv"
|
||||||
mbase "github.com/multiformats/go-multibase"
|
mbase "github.com/multiformats/go-multibase"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
|
|
||||||
@ -336,7 +336,7 @@ TOPIC AND DATA ENCODING
|
|||||||
|
|
||||||
// TODO: move to cmdenv?
|
// TODO: move to cmdenv?
|
||||||
// Encode binary data to be passed as multibase string in URL arguments.
|
// Encode binary data to be passed as multibase string in URL arguments.
|
||||||
// (avoiding issues described in https://github.com/ipfs/go-ipfs/issues/7939)
|
// (avoiding issues described in https://github.com/ipfs/kubo/issues/7939)
|
||||||
func urlArgsEncoder(req *cmds.Request, env cmds.Environment) error {
|
func urlArgsEncoder(req *cmds.Request, env cmds.Environment) error {
|
||||||
encoder, _ := mbase.EncoderByName("base64url")
|
encoder, _ := mbase.EncoderByName("base64url")
|
||||||
for n, arg := range req.Arguments {
|
for n, arg := range req.Arguments {
|
||||||
@ -346,7 +346,7 @@ func urlArgsEncoder(req *cmds.Request, env cmds.Environment) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Decode binary data passed as multibase string in URL arguments.
|
// Decode binary data passed as multibase string in URL arguments.
|
||||||
// (avoiding issues described in https://github.com/ipfs/go-ipfs/issues/7939)
|
// (avoiding issues described in https://github.com/ipfs/kubo/issues/7939)
|
||||||
func urlArgsDecoder(req *cmds.Request, env cmds.Environment) error {
|
func urlArgsDecoder(req *cmds.Request, env cmds.Environment) error {
|
||||||
for n, arg := range req.Arguments {
|
for n, arg := range req.Arguments {
|
||||||
encoding, data, err := mbase.Decode(arg)
|
encoding, data, err := mbase.Decode(arg)
|
||||||
@ -355,7 +355,7 @@ func urlArgsDecoder(req *cmds.Request, env cmds.Environment) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Enforce URL-safe encoding is used for data passed via URL arguments
|
// Enforce URL-safe encoding is used for data passed via URL arguments
|
||||||
// - without this we get data corruption similar to https://github.com/ipfs/go-ipfs/issues/7939
|
// - without this we get data corruption similar to https://github.com/ipfs/kubo/issues/7939
|
||||||
// - we can't just deny base64, because there may be other bases that
|
// - we can't just deny base64, because there may be other bases that
|
||||||
// are not URL-safe – better to force base64url which is known to be
|
// are not URL-safe – better to force base64url which is known to be
|
||||||
// safe in URL context
|
// safe in URL context
|
||||||
|
@ -7,7 +7,7 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
cmdenv "github.com/ipfs/go-ipfs/core/commands/cmdenv"
|
cmdenv "github.com/ipfs/kubo/core/commands/cmdenv"
|
||||||
|
|
||||||
cid "github.com/ipfs/go-cid"
|
cid "github.com/ipfs/go-cid"
|
||||||
cidenc "github.com/ipfs/go-cidutil/cidenc"
|
cidenc "github.com/ipfs/go-cidutil/cidenc"
|
||||||
|
@ -11,12 +11,12 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
"text/tabwriter"
|
"text/tabwriter"
|
||||||
|
|
||||||
oldcmds "github.com/ipfs/go-ipfs/commands"
|
oldcmds "github.com/ipfs/kubo/commands"
|
||||||
cmdenv "github.com/ipfs/go-ipfs/core/commands/cmdenv"
|
cmdenv "github.com/ipfs/kubo/core/commands/cmdenv"
|
||||||
corerepo "github.com/ipfs/go-ipfs/core/corerepo"
|
corerepo "github.com/ipfs/kubo/core/corerepo"
|
||||||
fsrepo "github.com/ipfs/go-ipfs/repo/fsrepo"
|
fsrepo "github.com/ipfs/kubo/repo/fsrepo"
|
||||||
"github.com/ipfs/go-ipfs/repo/fsrepo/migrations"
|
"github.com/ipfs/kubo/repo/fsrepo/migrations"
|
||||||
"github.com/ipfs/go-ipfs/repo/fsrepo/migrations/ipfsfetcher"
|
"github.com/ipfs/kubo/repo/fsrepo/migrations/ipfsfetcher"
|
||||||
|
|
||||||
humanize "github.com/dustin/go-humanize"
|
humanize "github.com/dustin/go-humanize"
|
||||||
cid "github.com/ipfs/go-cid"
|
cid "github.com/ipfs/go-cid"
|
||||||
@ -227,7 +227,7 @@ Version string The repo version.
|
|||||||
}
|
}
|
||||||
|
|
||||||
var repoFsckCmd = &cmds.Command{
|
var repoFsckCmd = &cmds.Command{
|
||||||
Status: cmds.Deprecated, // https://github.com/ipfs/go-ipfs/issues/6435
|
Status: cmds.Deprecated, // https://github.com/ipfs/kubo/issues/6435
|
||||||
Helptext: cmds.HelpText{
|
Helptext: cmds.HelpText{
|
||||||
Tagline: "Remove repo lockfiles.",
|
Tagline: "Remove repo lockfiles.",
|
||||||
ShortDescription: `
|
ShortDescription: `
|
||||||
|
@ -7,9 +7,9 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
cmdenv "github.com/ipfs/go-ipfs/core/commands/cmdenv"
|
|
||||||
ncmd "github.com/ipfs/go-ipfs/core/commands/name"
|
|
||||||
ns "github.com/ipfs/go-namesys"
|
ns "github.com/ipfs/go-namesys"
|
||||||
|
cmdenv "github.com/ipfs/kubo/core/commands/cmdenv"
|
||||||
|
ncmd "github.com/ipfs/kubo/core/commands/name"
|
||||||
|
|
||||||
cidenc "github.com/ipfs/go-cidutil/cidenc"
|
cidenc "github.com/ipfs/go-cidutil/cidenc"
|
||||||
cmds "github.com/ipfs/go-ipfs-cmds"
|
cmds "github.com/ipfs/go-ipfs-cmds"
|
||||||
|
@ -3,12 +3,12 @@ package commands
|
|||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
cmdenv "github.com/ipfs/go-ipfs/core/commands/cmdenv"
|
cmdenv "github.com/ipfs/kubo/core/commands/cmdenv"
|
||||||
dag "github.com/ipfs/go-ipfs/core/commands/dag"
|
dag "github.com/ipfs/kubo/core/commands/dag"
|
||||||
name "github.com/ipfs/go-ipfs/core/commands/name"
|
name "github.com/ipfs/kubo/core/commands/name"
|
||||||
ocmd "github.com/ipfs/go-ipfs/core/commands/object"
|
ocmd "github.com/ipfs/kubo/core/commands/object"
|
||||||
"github.com/ipfs/go-ipfs/core/commands/pin"
|
"github.com/ipfs/kubo/core/commands/pin"
|
||||||
unixfs "github.com/ipfs/go-ipfs/core/commands/unixfs"
|
unixfs "github.com/ipfs/kubo/core/commands/unixfs"
|
||||||
|
|
||||||
cmds "github.com/ipfs/go-ipfs-cmds"
|
cmds "github.com/ipfs/go-ipfs-cmds"
|
||||||
logging "github.com/ipfs/go-log"
|
logging "github.com/ipfs/go-log"
|
||||||
|
@ -2,7 +2,7 @@ package commands
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
cmds "github.com/ipfs/go-ipfs-cmds"
|
cmds "github.com/ipfs/go-ipfs-cmds"
|
||||||
cmdenv "github.com/ipfs/go-ipfs/core/commands/cmdenv"
|
cmdenv "github.com/ipfs/kubo/core/commands/cmdenv"
|
||||||
)
|
)
|
||||||
|
|
||||||
var daemonShutdownCmd = &cmds.Command{
|
var daemonShutdownCmd = &cmds.Command{
|
||||||
|
@ -6,7 +6,7 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
cmdenv "github.com/ipfs/go-ipfs/core/commands/cmdenv"
|
cmdenv "github.com/ipfs/kubo/core/commands/cmdenv"
|
||||||
|
|
||||||
humanize "github.com/dustin/go-humanize"
|
humanize "github.com/dustin/go-humanize"
|
||||||
cmds "github.com/ipfs/go-ipfs-cmds"
|
cmds "github.com/ipfs/go-ipfs-cmds"
|
||||||
|
@ -6,7 +6,7 @@ import (
|
|||||||
"text/tabwriter"
|
"text/tabwriter"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
cmdenv "github.com/ipfs/go-ipfs/core/commands/cmdenv"
|
cmdenv "github.com/ipfs/kubo/core/commands/cmdenv"
|
||||||
|
|
||||||
cmds "github.com/ipfs/go-ipfs-cmds"
|
cmds "github.com/ipfs/go-ipfs-cmds"
|
||||||
"github.com/libp2p/go-libp2p-core/network"
|
"github.com/libp2p/go-libp2p-core/network"
|
||||||
|
@ -8,7 +8,7 @@ import (
|
|||||||
|
|
||||||
humanize "github.com/dustin/go-humanize"
|
humanize "github.com/dustin/go-humanize"
|
||||||
cmds "github.com/ipfs/go-ipfs-cmds"
|
cmds "github.com/ipfs/go-ipfs-cmds"
|
||||||
"github.com/ipfs/go-ipfs/core/commands/cmdenv"
|
"github.com/ipfs/kubo/core/commands/cmdenv"
|
||||||
|
|
||||||
"github.com/ipfs/go-ipfs-provider/batched"
|
"github.com/ipfs/go-ipfs-provider/batched"
|
||||||
)
|
)
|
||||||
|
@ -13,12 +13,12 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
files "github.com/ipfs/go-ipfs-files"
|
files "github.com/ipfs/go-ipfs-files"
|
||||||
"github.com/ipfs/go-ipfs/commands"
|
"github.com/ipfs/kubo/commands"
|
||||||
"github.com/ipfs/go-ipfs/config"
|
"github.com/ipfs/kubo/config"
|
||||||
"github.com/ipfs/go-ipfs/core/commands/cmdenv"
|
"github.com/ipfs/kubo/core/commands/cmdenv"
|
||||||
"github.com/ipfs/go-ipfs/core/node/libp2p"
|
"github.com/ipfs/kubo/core/node/libp2p"
|
||||||
"github.com/ipfs/go-ipfs/repo"
|
"github.com/ipfs/kubo/repo"
|
||||||
"github.com/ipfs/go-ipfs/repo/fsrepo"
|
"github.com/ipfs/kubo/repo/fsrepo"
|
||||||
|
|
||||||
cmds "github.com/ipfs/go-ipfs-cmds"
|
cmds "github.com/ipfs/go-ipfs-cmds"
|
||||||
inet "github.com/libp2p/go-libp2p-core/network"
|
inet "github.com/libp2p/go-libp2p-core/network"
|
||||||
|
@ -5,9 +5,9 @@ import (
|
|||||||
"path"
|
"path"
|
||||||
"runtime"
|
"runtime"
|
||||||
|
|
||||||
version "github.com/ipfs/go-ipfs"
|
version "github.com/ipfs/kubo"
|
||||||
"github.com/ipfs/go-ipfs/core"
|
"github.com/ipfs/kubo/core"
|
||||||
cmdenv "github.com/ipfs/go-ipfs/core/commands/cmdenv"
|
cmdenv "github.com/ipfs/kubo/core/commands/cmdenv"
|
||||||
|
|
||||||
cmds "github.com/ipfs/go-ipfs-cmds"
|
cmds "github.com/ipfs/go-ipfs-cmds"
|
||||||
manet "github.com/multiformats/go-multiaddr/net"
|
manet "github.com/multiformats/go-multiaddr/net"
|
||||||
|
@ -5,15 +5,15 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
|
|
||||||
cmds "github.com/ipfs/go-ipfs-cmds"
|
cmds "github.com/ipfs/go-ipfs-cmds"
|
||||||
"github.com/ipfs/go-ipfs/core/commands/cmdenv"
|
"github.com/ipfs/kubo/core/commands/cmdenv"
|
||||||
tar "github.com/ipfs/go-ipfs/tar"
|
tar "github.com/ipfs/kubo/tar"
|
||||||
|
|
||||||
dag "github.com/ipfs/go-merkledag"
|
dag "github.com/ipfs/go-merkledag"
|
||||||
path "github.com/ipfs/interface-go-ipfs-core/path"
|
path "github.com/ipfs/interface-go-ipfs-core/path"
|
||||||
)
|
)
|
||||||
|
|
||||||
var TarCmd = &cmds.Command{
|
var TarCmd = &cmds.Command{
|
||||||
Status: cmds.Deprecated, // https://github.com/ipfs/go-ipfs/issues/7951
|
Status: cmds.Deprecated, // https://github.com/ipfs/kubo/issues/7951
|
||||||
Helptext: cmds.HelpText{
|
Helptext: cmds.HelpText{
|
||||||
Tagline: "Utility functions for tar files in ipfs.",
|
Tagline: "Utility functions for tar files in ipfs.",
|
||||||
},
|
},
|
||||||
@ -25,7 +25,7 @@ var TarCmd = &cmds.Command{
|
|||||||
}
|
}
|
||||||
|
|
||||||
var tarAddCmd = &cmds.Command{
|
var tarAddCmd = &cmds.Command{
|
||||||
Status: cmds.Deprecated, // https://github.com/ipfs/go-ipfs/issues/7951
|
Status: cmds.Deprecated, // https://github.com/ipfs/kubo/issues/7951
|
||||||
Helptext: cmds.HelpText{
|
Helptext: cmds.HelpText{
|
||||||
Tagline: "Import a tar file into IPFS.",
|
Tagline: "Import a tar file into IPFS.",
|
||||||
ShortDescription: `
|
ShortDescription: `
|
||||||
@ -76,7 +76,7 @@ represent it.
|
|||||||
}
|
}
|
||||||
|
|
||||||
var tarCatCmd = &cmds.Command{
|
var tarCatCmd = &cmds.Command{
|
||||||
Status: cmds.Deprecated, // https://github.com/ipfs/go-ipfs/issues/7951
|
Status: cmds.Deprecated, // https://github.com/ipfs/kubo/issues/7951
|
||||||
Helptext: cmds.HelpText{
|
Helptext: cmds.HelpText{
|
||||||
Tagline: "Export a tar file from IPFS.",
|
Tagline: "Export a tar file from IPFS.",
|
||||||
ShortDescription: `
|
ShortDescription: `
|
||||||
|
@ -6,7 +6,7 @@ import (
|
|||||||
"sort"
|
"sort"
|
||||||
"text/tabwriter"
|
"text/tabwriter"
|
||||||
|
|
||||||
cmdenv "github.com/ipfs/go-ipfs/core/commands/cmdenv"
|
cmdenv "github.com/ipfs/kubo/core/commands/cmdenv"
|
||||||
|
|
||||||
cmds "github.com/ipfs/go-ipfs-cmds"
|
cmds "github.com/ipfs/go-ipfs-cmds"
|
||||||
merkledag "github.com/ipfs/go-merkledag"
|
merkledag "github.com/ipfs/go-merkledag"
|
||||||
@ -33,7 +33,7 @@ type LsOutput struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var LsCmd = &cmds.Command{
|
var LsCmd = &cmds.Command{
|
||||||
Status: cmds.Deprecated, // https://github.com/ipfs/go-ipfs/pull/7755
|
Status: cmds.Deprecated, // https://github.com/ipfs/kubo/pull/7755
|
||||||
Helptext: cmds.HelpText{
|
Helptext: cmds.HelpText{
|
||||||
Tagline: "List directory contents for Unix filesystem objects. Deprecated: Use 'ipfs ls' and 'ipfs files ls' instead.",
|
Tagline: "List directory contents for Unix filesystem objects. Deprecated: Use 'ipfs ls' and 'ipfs files ls' instead.",
|
||||||
ShortDescription: `
|
ShortDescription: `
|
||||||
|
@ -5,7 +5,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
var UnixFSCmd = &cmds.Command{
|
var UnixFSCmd = &cmds.Command{
|
||||||
Status: cmds.Deprecated, // https://github.com/ipfs/go-ipfs/pull/7755
|
Status: cmds.Deprecated, // https://github.com/ipfs/kubo/pull/7755
|
||||||
Helptext: cmds.HelpText{
|
Helptext: cmds.HelpText{
|
||||||
Tagline: "Interact with IPFS objects representing Unix filesystems.",
|
Tagline: "Interact with IPFS objects representing Unix filesystems.",
|
||||||
ShortDescription: `
|
ShortDescription: `
|
||||||
|
@ -6,7 +6,7 @@ import (
|
|||||||
"net/url"
|
"net/url"
|
||||||
|
|
||||||
filestore "github.com/ipfs/go-filestore"
|
filestore "github.com/ipfs/go-filestore"
|
||||||
cmdenv "github.com/ipfs/go-ipfs/core/commands/cmdenv"
|
cmdenv "github.com/ipfs/kubo/core/commands/cmdenv"
|
||||||
|
|
||||||
cmds "github.com/ipfs/go-ipfs-cmds"
|
cmds "github.com/ipfs/go-ipfs-cmds"
|
||||||
files "github.com/ipfs/go-ipfs-files"
|
files "github.com/ipfs/go-ipfs-files"
|
||||||
|
@ -6,7 +6,7 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
"runtime/debug"
|
"runtime/debug"
|
||||||
|
|
||||||
version "github.com/ipfs/go-ipfs"
|
version "github.com/ipfs/kubo"
|
||||||
|
|
||||||
cmds "github.com/ipfs/go-ipfs-cmds"
|
cmds "github.com/ipfs/go-ipfs-cmds"
|
||||||
)
|
)
|
||||||
|
14
core/core.go
14
core/core.go
@ -43,15 +43,15 @@ import (
|
|||||||
ma "github.com/multiformats/go-multiaddr"
|
ma "github.com/multiformats/go-multiaddr"
|
||||||
madns "github.com/multiformats/go-multiaddr-dns"
|
madns "github.com/multiformats/go-multiaddr-dns"
|
||||||
|
|
||||||
"github.com/ipfs/go-ipfs/core/bootstrap"
|
|
||||||
"github.com/ipfs/go-ipfs/core/node"
|
|
||||||
"github.com/ipfs/go-ipfs/core/node/libp2p"
|
|
||||||
"github.com/ipfs/go-ipfs/fuse/mount"
|
|
||||||
"github.com/ipfs/go-ipfs/p2p"
|
|
||||||
"github.com/ipfs/go-ipfs/peering"
|
|
||||||
"github.com/ipfs/go-ipfs/repo"
|
|
||||||
"github.com/ipfs/go-namesys"
|
"github.com/ipfs/go-namesys"
|
||||||
ipnsrp "github.com/ipfs/go-namesys/republisher"
|
ipnsrp "github.com/ipfs/go-namesys/republisher"
|
||||||
|
"github.com/ipfs/kubo/core/bootstrap"
|
||||||
|
"github.com/ipfs/kubo/core/node"
|
||||||
|
"github.com/ipfs/kubo/core/node/libp2p"
|
||||||
|
"github.com/ipfs/kubo/fuse/mount"
|
||||||
|
"github.com/ipfs/kubo/p2p"
|
||||||
|
"github.com/ipfs/kubo/peering"
|
||||||
|
"github.com/ipfs/kubo/repo"
|
||||||
)
|
)
|
||||||
|
|
||||||
var log = logging.Logger("core")
|
var log = logging.Logger("core")
|
||||||
|
@ -5,11 +5,11 @@ import (
|
|||||||
|
|
||||||
context "context"
|
context "context"
|
||||||
|
|
||||||
"github.com/ipfs/go-ipfs/repo"
|
"github.com/ipfs/kubo/repo"
|
||||||
|
|
||||||
datastore "github.com/ipfs/go-datastore"
|
datastore "github.com/ipfs/go-datastore"
|
||||||
syncds "github.com/ipfs/go-datastore/sync"
|
syncds "github.com/ipfs/go-datastore/sync"
|
||||||
config "github.com/ipfs/go-ipfs/config"
|
config "github.com/ipfs/kubo/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestInitialization(t *testing.T) {
|
func TestInitialization(t *testing.T) {
|
||||||
|
@ -15,8 +15,8 @@ import (
|
|||||||
"go.opentelemetry.io/otel/attribute"
|
"go.opentelemetry.io/otel/attribute"
|
||||||
"go.opentelemetry.io/otel/trace"
|
"go.opentelemetry.io/otel/trace"
|
||||||
|
|
||||||
util "github.com/ipfs/go-ipfs/blocks/blockstoreutil"
|
util "github.com/ipfs/kubo/blocks/blockstoreutil"
|
||||||
"github.com/ipfs/go-ipfs/tracing"
|
"github.com/ipfs/kubo/tracing"
|
||||||
)
|
)
|
||||||
|
|
||||||
type BlockAPI CoreAPI
|
type BlockAPI CoreAPI
|
||||||
|
@ -39,10 +39,10 @@ import (
|
|||||||
record "github.com/libp2p/go-libp2p-record"
|
record "github.com/libp2p/go-libp2p-record"
|
||||||
madns "github.com/multiformats/go-multiaddr-dns"
|
madns "github.com/multiformats/go-multiaddr-dns"
|
||||||
|
|
||||||
"github.com/ipfs/go-ipfs/core"
|
|
||||||
"github.com/ipfs/go-ipfs/core/node"
|
|
||||||
"github.com/ipfs/go-ipfs/repo"
|
|
||||||
"github.com/ipfs/go-namesys"
|
"github.com/ipfs/go-namesys"
|
||||||
|
"github.com/ipfs/kubo/core"
|
||||||
|
"github.com/ipfs/kubo/core/node"
|
||||||
|
"github.com/ipfs/kubo/repo"
|
||||||
)
|
)
|
||||||
|
|
||||||
type CoreAPI struct {
|
type CoreAPI struct {
|
||||||
|
@ -5,9 +5,9 @@ import (
|
|||||||
|
|
||||||
cid "github.com/ipfs/go-cid"
|
cid "github.com/ipfs/go-cid"
|
||||||
pin "github.com/ipfs/go-ipfs-pinner"
|
pin "github.com/ipfs/go-ipfs-pinner"
|
||||||
"github.com/ipfs/go-ipfs/tracing"
|
|
||||||
ipld "github.com/ipfs/go-ipld-format"
|
ipld "github.com/ipfs/go-ipld-format"
|
||||||
dag "github.com/ipfs/go-merkledag"
|
dag "github.com/ipfs/go-merkledag"
|
||||||
|
"github.com/ipfs/kubo/tracing"
|
||||||
"go.opentelemetry.io/otel/attribute"
|
"go.opentelemetry.io/otel/attribute"
|
||||||
"go.opentelemetry.io/otel/trace"
|
"go.opentelemetry.io/otel/trace"
|
||||||
)
|
)
|
||||||
|
@ -9,11 +9,11 @@ import (
|
|||||||
cidutil "github.com/ipfs/go-cidutil"
|
cidutil "github.com/ipfs/go-cidutil"
|
||||||
blockstore "github.com/ipfs/go-ipfs-blockstore"
|
blockstore "github.com/ipfs/go-ipfs-blockstore"
|
||||||
offline "github.com/ipfs/go-ipfs-exchange-offline"
|
offline "github.com/ipfs/go-ipfs-exchange-offline"
|
||||||
"github.com/ipfs/go-ipfs/tracing"
|
|
||||||
dag "github.com/ipfs/go-merkledag"
|
dag "github.com/ipfs/go-merkledag"
|
||||||
coreiface "github.com/ipfs/interface-go-ipfs-core"
|
coreiface "github.com/ipfs/interface-go-ipfs-core"
|
||||||
caopts "github.com/ipfs/interface-go-ipfs-core/options"
|
caopts "github.com/ipfs/interface-go-ipfs-core/options"
|
||||||
path "github.com/ipfs/interface-go-ipfs-core/path"
|
path "github.com/ipfs/interface-go-ipfs-core/path"
|
||||||
|
"github.com/ipfs/kubo/tracing"
|
||||||
peer "github.com/libp2p/go-libp2p-core/peer"
|
peer "github.com/libp2p/go-libp2p-core/peer"
|
||||||
routing "github.com/libp2p/go-libp2p-core/routing"
|
routing "github.com/libp2p/go-libp2p-core/routing"
|
||||||
"go.opentelemetry.io/otel/attribute"
|
"go.opentelemetry.io/otel/attribute"
|
||||||
|
@ -7,11 +7,11 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"sort"
|
"sort"
|
||||||
|
|
||||||
"github.com/ipfs/go-ipfs/tracing"
|
|
||||||
ipfspath "github.com/ipfs/go-path"
|
ipfspath "github.com/ipfs/go-path"
|
||||||
coreiface "github.com/ipfs/interface-go-ipfs-core"
|
coreiface "github.com/ipfs/interface-go-ipfs-core"
|
||||||
caopts "github.com/ipfs/interface-go-ipfs-core/options"
|
caopts "github.com/ipfs/interface-go-ipfs-core/options"
|
||||||
path "github.com/ipfs/interface-go-ipfs-core/path"
|
path "github.com/ipfs/interface-go-ipfs-core/path"
|
||||||
|
"github.com/ipfs/kubo/tracing"
|
||||||
crypto "github.com/libp2p/go-libp2p-core/crypto"
|
crypto "github.com/libp2p/go-libp2p-core/crypto"
|
||||||
peer "github.com/libp2p/go-libp2p-core/peer"
|
peer "github.com/libp2p/go-libp2p-core/peer"
|
||||||
"go.opentelemetry.io/otel/attribute"
|
"go.opentelemetry.io/otel/attribute"
|
||||||
|
@ -7,8 +7,8 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
keystore "github.com/ipfs/go-ipfs-keystore"
|
keystore "github.com/ipfs/go-ipfs-keystore"
|
||||||
"github.com/ipfs/go-ipfs/tracing"
|
|
||||||
"github.com/ipfs/go-namesys"
|
"github.com/ipfs/go-namesys"
|
||||||
|
"github.com/ipfs/kubo/tracing"
|
||||||
"go.opentelemetry.io/otel/attribute"
|
"go.opentelemetry.io/otel/attribute"
|
||||||
"go.opentelemetry.io/otel/trace"
|
"go.opentelemetry.io/otel/trace"
|
||||||
|
|
||||||
|
@ -12,7 +12,6 @@ import (
|
|||||||
|
|
||||||
cid "github.com/ipfs/go-cid"
|
cid "github.com/ipfs/go-cid"
|
||||||
pin "github.com/ipfs/go-ipfs-pinner"
|
pin "github.com/ipfs/go-ipfs-pinner"
|
||||||
"github.com/ipfs/go-ipfs/tracing"
|
|
||||||
ipld "github.com/ipfs/go-ipld-format"
|
ipld "github.com/ipfs/go-ipld-format"
|
||||||
dag "github.com/ipfs/go-merkledag"
|
dag "github.com/ipfs/go-merkledag"
|
||||||
"github.com/ipfs/go-merkledag/dagutils"
|
"github.com/ipfs/go-merkledag/dagutils"
|
||||||
@ -20,6 +19,7 @@ import (
|
|||||||
coreiface "github.com/ipfs/interface-go-ipfs-core"
|
coreiface "github.com/ipfs/interface-go-ipfs-core"
|
||||||
caopts "github.com/ipfs/interface-go-ipfs-core/options"
|
caopts "github.com/ipfs/interface-go-ipfs-core/options"
|
||||||
ipath "github.com/ipfs/interface-go-ipfs-core/path"
|
ipath "github.com/ipfs/interface-go-ipfs-core/path"
|
||||||
|
"github.com/ipfs/kubo/tracing"
|
||||||
"go.opentelemetry.io/otel/attribute"
|
"go.opentelemetry.io/otel/attribute"
|
||||||
"go.opentelemetry.io/otel/trace"
|
"go.opentelemetry.io/otel/trace"
|
||||||
)
|
)
|
||||||
|
@ -5,8 +5,8 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
gopath "path"
|
gopath "path"
|
||||||
|
|
||||||
"github.com/ipfs/go-ipfs/tracing"
|
|
||||||
"github.com/ipfs/go-namesys/resolve"
|
"github.com/ipfs/go-namesys/resolve"
|
||||||
|
"github.com/ipfs/kubo/tracing"
|
||||||
|
|
||||||
"go.opentelemetry.io/otel/attribute"
|
"go.opentelemetry.io/otel/attribute"
|
||||||
"go.opentelemetry.io/otel/trace"
|
"go.opentelemetry.io/otel/trace"
|
||||||
|
@ -8,11 +8,11 @@ import (
|
|||||||
"github.com/ipfs/go-cid"
|
"github.com/ipfs/go-cid"
|
||||||
offline "github.com/ipfs/go-ipfs-exchange-offline"
|
offline "github.com/ipfs/go-ipfs-exchange-offline"
|
||||||
pin "github.com/ipfs/go-ipfs-pinner"
|
pin "github.com/ipfs/go-ipfs-pinner"
|
||||||
"github.com/ipfs/go-ipfs/tracing"
|
|
||||||
"github.com/ipfs/go-merkledag"
|
"github.com/ipfs/go-merkledag"
|
||||||
coreiface "github.com/ipfs/interface-go-ipfs-core"
|
coreiface "github.com/ipfs/interface-go-ipfs-core"
|
||||||
caopts "github.com/ipfs/interface-go-ipfs-core/options"
|
caopts "github.com/ipfs/interface-go-ipfs-core/options"
|
||||||
"github.com/ipfs/interface-go-ipfs-core/path"
|
"github.com/ipfs/interface-go-ipfs-core/path"
|
||||||
|
"github.com/ipfs/kubo/tracing"
|
||||||
"go.opentelemetry.io/otel/attribute"
|
"go.opentelemetry.io/otel/attribute"
|
||||||
"go.opentelemetry.io/otel/trace"
|
"go.opentelemetry.io/otel/trace"
|
||||||
)
|
)
|
||||||
|
@ -4,9 +4,9 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"github.com/ipfs/go-ipfs/tracing"
|
|
||||||
coreiface "github.com/ipfs/interface-go-ipfs-core"
|
coreiface "github.com/ipfs/interface-go-ipfs-core"
|
||||||
caopts "github.com/ipfs/interface-go-ipfs-core/options"
|
caopts "github.com/ipfs/interface-go-ipfs-core/options"
|
||||||
|
"github.com/ipfs/kubo/tracing"
|
||||||
peer "github.com/libp2p/go-libp2p-core/peer"
|
peer "github.com/libp2p/go-libp2p-core/peer"
|
||||||
routing "github.com/libp2p/go-libp2p-core/routing"
|
routing "github.com/libp2p/go-libp2p-core/routing"
|
||||||
pubsub "github.com/libp2p/go-libp2p-pubsub"
|
pubsub "github.com/libp2p/go-libp2p-pubsub"
|
||||||
|
@ -5,8 +5,8 @@ import (
|
|||||||
"sort"
|
"sort"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/ipfs/go-ipfs/tracing"
|
|
||||||
coreiface "github.com/ipfs/interface-go-ipfs-core"
|
coreiface "github.com/ipfs/interface-go-ipfs-core"
|
||||||
|
"github.com/ipfs/kubo/tracing"
|
||||||
inet "github.com/libp2p/go-libp2p-core/network"
|
inet "github.com/libp2p/go-libp2p-core/network"
|
||||||
"github.com/libp2p/go-libp2p-core/peer"
|
"github.com/libp2p/go-libp2p-core/peer"
|
||||||
pstore "github.com/libp2p/go-libp2p-core/peerstore"
|
pstore "github.com/libp2p/go-libp2p-core/peerstore"
|
||||||
|
@ -10,18 +10,18 @@ import (
|
|||||||
|
|
||||||
"github.com/ipfs/go-filestore"
|
"github.com/ipfs/go-filestore"
|
||||||
keystore "github.com/ipfs/go-ipfs-keystore"
|
keystore "github.com/ipfs/go-ipfs-keystore"
|
||||||
"github.com/ipfs/go-ipfs/core"
|
"github.com/ipfs/kubo/core"
|
||||||
"github.com/ipfs/go-ipfs/core/bootstrap"
|
"github.com/ipfs/kubo/core/bootstrap"
|
||||||
"github.com/ipfs/go-ipfs/core/coreapi"
|
"github.com/ipfs/kubo/core/coreapi"
|
||||||
mock "github.com/ipfs/go-ipfs/core/mock"
|
mock "github.com/ipfs/kubo/core/mock"
|
||||||
"github.com/ipfs/go-ipfs/core/node/libp2p"
|
"github.com/ipfs/kubo/core/node/libp2p"
|
||||||
"github.com/ipfs/go-ipfs/repo"
|
"github.com/ipfs/kubo/repo"
|
||||||
|
|
||||||
"github.com/ipfs/go-datastore"
|
"github.com/ipfs/go-datastore"
|
||||||
syncds "github.com/ipfs/go-datastore/sync"
|
syncds "github.com/ipfs/go-datastore/sync"
|
||||||
"github.com/ipfs/go-ipfs/config"
|
|
||||||
coreiface "github.com/ipfs/interface-go-ipfs-core"
|
coreiface "github.com/ipfs/interface-go-ipfs-core"
|
||||||
"github.com/ipfs/interface-go-ipfs-core/tests"
|
"github.com/ipfs/interface-go-ipfs-core/tests"
|
||||||
|
"github.com/ipfs/kubo/config"
|
||||||
"github.com/libp2p/go-libp2p-core/crypto"
|
"github.com/libp2p/go-libp2p-core/crypto"
|
||||||
"github.com/libp2p/go-libp2p-core/peer"
|
"github.com/libp2p/go-libp2p-core/peer"
|
||||||
mocknet "github.com/libp2p/go-libp2p/p2p/net/mock"
|
mocknet "github.com/libp2p/go-libp2p/p2p/net/mock"
|
||||||
|
@ -5,12 +5,12 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/ipfs/go-ipfs/core"
|
"github.com/ipfs/kubo/core"
|
||||||
"github.com/ipfs/go-ipfs/tracing"
|
"github.com/ipfs/kubo/tracing"
|
||||||
"go.opentelemetry.io/otel/attribute"
|
"go.opentelemetry.io/otel/attribute"
|
||||||
"go.opentelemetry.io/otel/trace"
|
"go.opentelemetry.io/otel/trace"
|
||||||
|
|
||||||
"github.com/ipfs/go-ipfs/core/coreunix"
|
"github.com/ipfs/kubo/core/coreunix"
|
||||||
|
|
||||||
blockservice "github.com/ipfs/go-blockservice"
|
blockservice "github.com/ipfs/go-blockservice"
|
||||||
cid "github.com/ipfs/go-cid"
|
cid "github.com/ipfs/go-cid"
|
||||||
@ -96,7 +96,7 @@ func (api *UnixfsAPI) Add(ctx context.Context, files files.Node, opts ...options
|
|||||||
//}
|
//}
|
||||||
|
|
||||||
if settings.NoCopy && !(cfg.Experimental.FilestoreEnabled || cfg.Experimental.UrlstoreEnabled) {
|
if settings.NoCopy && !(cfg.Experimental.FilestoreEnabled || cfg.Experimental.UrlstoreEnabled) {
|
||||||
return nil, fmt.Errorf("either the filestore or the urlstore must be enabled to use nocopy, see: https://github.com/ipfs/go-ipfs/blob/master/docs/experimental-features.md#ipfs-filestore")
|
return nil, fmt.Errorf("either the filestore or the urlstore must be enabled to use nocopy, see: https://github.com/ipfs/kubo/blob/master/docs/experimental-features.md#ipfs-filestore")
|
||||||
}
|
}
|
||||||
|
|
||||||
addblockstore := api.blockstore
|
addblockstore := api.blockstore
|
||||||
|
@ -9,15 +9,15 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
version "github.com/ipfs/go-ipfs"
|
version "github.com/ipfs/kubo"
|
||||||
oldcmds "github.com/ipfs/go-ipfs/commands"
|
oldcmds "github.com/ipfs/kubo/commands"
|
||||||
"github.com/ipfs/go-ipfs/core"
|
"github.com/ipfs/kubo/core"
|
||||||
corecommands "github.com/ipfs/go-ipfs/core/commands"
|
corecommands "github.com/ipfs/kubo/core/commands"
|
||||||
|
|
||||||
cmds "github.com/ipfs/go-ipfs-cmds"
|
cmds "github.com/ipfs/go-ipfs-cmds"
|
||||||
cmdsHttp "github.com/ipfs/go-ipfs-cmds/http"
|
cmdsHttp "github.com/ipfs/go-ipfs-cmds/http"
|
||||||
config "github.com/ipfs/go-ipfs/config"
|
|
||||||
path "github.com/ipfs/go-path"
|
path "github.com/ipfs/go-path"
|
||||||
|
config "github.com/ipfs/kubo/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -11,8 +11,8 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
core "github.com/ipfs/go-ipfs/core"
|
|
||||||
logging "github.com/ipfs/go-log"
|
logging "github.com/ipfs/go-log"
|
||||||
|
core "github.com/ipfs/kubo/core"
|
||||||
"github.com/jbenet/goprocess"
|
"github.com/jbenet/goprocess"
|
||||||
periodicproc "github.com/jbenet/goprocess/periodic"
|
periodicproc "github.com/jbenet/goprocess/periodic"
|
||||||
ma "github.com/multiformats/go-multiaddr"
|
ma "github.com/multiformats/go-multiaddr"
|
||||||
|
@ -6,9 +6,9 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"sort"
|
"sort"
|
||||||
|
|
||||||
version "github.com/ipfs/go-ipfs"
|
version "github.com/ipfs/kubo"
|
||||||
core "github.com/ipfs/go-ipfs/core"
|
core "github.com/ipfs/kubo/core"
|
||||||
coreapi "github.com/ipfs/go-ipfs/core/coreapi"
|
coreapi "github.com/ipfs/kubo/core/coreapi"
|
||||||
"go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp"
|
"go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp"
|
||||||
|
|
||||||
options "github.com/ipfs/interface-go-ipfs-core/options"
|
options "github.com/ipfs/interface-go-ipfs-core/options"
|
||||||
|
@ -189,7 +189,7 @@ func newGatewaySummaryMetric(name string, help string) *prometheus.SummaryVec {
|
|||||||
|
|
||||||
func newGatewayHistogramMetric(name string, help string) *prometheus.HistogramVec {
|
func newGatewayHistogramMetric(name string, help string) *prometheus.HistogramVec {
|
||||||
// We can add buckets as a parameter in the future, but for now using static defaults
|
// We can add buckets as a parameter in the future, but for now using static defaults
|
||||||
// suggested in https://github.com/ipfs/go-ipfs/issues/8441
|
// suggested in https://github.com/ipfs/kubo/issues/8441
|
||||||
defaultBuckets := []float64{0.05, 0.1, 0.25, 0.5, 1, 2, 5, 10, 30, 60}
|
defaultBuckets := []float64{0.05, 0.1, 0.25, 0.5, 1, 2, 5, 10, 30, 60}
|
||||||
histogramMetric := prometheus.NewHistogramVec(
|
histogramMetric := prometheus.NewHistogramVec(
|
||||||
prometheus.HistogramOpts{
|
prometheus.HistogramOpts{
|
||||||
@ -666,11 +666,11 @@ func addCacheControlHeaders(w http.ResponseWriter, r *http.Request, contentPath
|
|||||||
// mutable namespaces such as /ipns/ can't be cached forever
|
// mutable namespaces such as /ipns/ can't be cached forever
|
||||||
|
|
||||||
/* For now we set Last-Modified to Now() to leverage caching heuristics built into modern browsers:
|
/* For now we set Last-Modified to Now() to leverage caching heuristics built into modern browsers:
|
||||||
* https://github.com/ipfs/go-ipfs/pull/8074#pullrequestreview-645196768
|
* https://github.com/ipfs/kubo/pull/8074#pullrequestreview-645196768
|
||||||
* but we should not set it to fake values and use Cache-Control based on TTL instead */
|
* but we should not set it to fake values and use Cache-Control based on TTL instead */
|
||||||
modtime = time.Now()
|
modtime = time.Now()
|
||||||
|
|
||||||
// TODO: set Cache-Control based on TTL of IPNS/DNSLink: https://github.com/ipfs/go-ipfs/issues/1818#issuecomment-1015849462
|
// TODO: set Cache-Control based on TTL of IPNS/DNSLink: https://github.com/ipfs/kubo/issues/1818#issuecomment-1015849462
|
||||||
// TODO: set Last-Modified based on /ipns/ publishing timestamp?
|
// TODO: set Last-Modified based on /ipns/ publishing timestamp?
|
||||||
} else {
|
} else {
|
||||||
// immutable! CACHE ALL THE THINGS, FOREVER! wolololol
|
// immutable! CACHE ALL THE THINGS, FOREVER! wolololol
|
||||||
@ -679,7 +679,7 @@ func addCacheControlHeaders(w http.ResponseWriter, r *http.Request, contentPath
|
|||||||
// Set modtime to 'zero time' to disable Last-Modified header (superseded by Cache-Control)
|
// Set modtime to 'zero time' to disable Last-Modified header (superseded by Cache-Control)
|
||||||
modtime = noModtime
|
modtime = noModtime
|
||||||
|
|
||||||
// TODO: set Last-Modified? - TBD - /ipfs/ modification metadata is present in unixfs 1.5 https://github.com/ipfs/go-ipfs/issues/6920?
|
// TODO: set Last-Modified? - TBD - /ipfs/ modification metadata is present in unixfs 1.5 https://github.com/ipfs/kubo/issues/6920?
|
||||||
}
|
}
|
||||||
|
|
||||||
return modtime
|
return modtime
|
||||||
@ -874,7 +874,7 @@ func getEtag(r *http.Request, cid cid.Cid) string {
|
|||||||
// Etag: "cid.foo" (gives us nice compression together with Content-Disposition in block (raw) and car responses)
|
// Etag: "cid.foo" (gives us nice compression together with Content-Disposition in block (raw) and car responses)
|
||||||
suffix = `.` + f + suffix
|
suffix = `.` + f + suffix
|
||||||
}
|
}
|
||||||
// TODO: include selector suffix when https://github.com/ipfs/go-ipfs/issues/8769 lands
|
// TODO: include selector suffix when https://github.com/ipfs/kubo/issues/8769 lands
|
||||||
return prefix + cid.String() + suffix
|
return prefix + cid.String() + suffix
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -957,10 +957,10 @@ func debugStr(path string) string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func handleUnsupportedHeaders(r *http.Request) (err *requestError) {
|
func handleUnsupportedHeaders(r *http.Request) (err *requestError) {
|
||||||
// X-Ipfs-Gateway-Prefix was removed (https://github.com/ipfs/go-ipfs/issues/7702)
|
// X-Ipfs-Gateway-Prefix was removed (https://github.com/ipfs/kubo/issues/7702)
|
||||||
// TODO: remove this after go-ipfs 0.13 ships
|
// TODO: remove this after go-ipfs 0.13 ships
|
||||||
if prfx := r.Header.Get("X-Ipfs-Gateway-Prefix"); prfx != "" {
|
if prfx := r.Header.Get("X-Ipfs-Gateway-Prefix"); prfx != "" {
|
||||||
err := fmt.Errorf("X-Ipfs-Gateway-Prefix support was removed: https://github.com/ipfs/go-ipfs/issues/7702")
|
err := fmt.Errorf("X-Ipfs-Gateway-Prefix support was removed: https://github.com/ipfs/kubo/issues/7702")
|
||||||
return newRequestError("unsupported HTTP header", err, http.StatusBadRequest)
|
return newRequestError("unsupported HTTP header", err, http.StatusBadRequest)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
@ -996,7 +996,7 @@ func handleProtocolHandlerRedirect(w http.ResponseWriter, r *http.Request, logge
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Disallow Service Worker registration on namespace roots
|
// Disallow Service Worker registration on namespace roots
|
||||||
// https://github.com/ipfs/go-ipfs/issues/4025
|
// https://github.com/ipfs/kubo/issues/4025
|
||||||
func handleServiceWorkerRegistration(r *http.Request) (err *requestError) {
|
func handleServiceWorkerRegistration(r *http.Request) (err *requestError) {
|
||||||
if r.Header.Get("Service-Worker") == "script" {
|
if r.Header.Get("Service-Worker") == "script" {
|
||||||
matched, _ := regexp.MatchString(`^/ip[fn]s/[^/]+$`, r.URL.Path)
|
matched, _ := regexp.MatchString(`^/ip[fn]s/[^/]+$`, r.URL.Path)
|
||||||
|
@ -7,8 +7,8 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/ipfs/go-ipfs/tracing"
|
|
||||||
ipath "github.com/ipfs/interface-go-ipfs-core/path"
|
ipath "github.com/ipfs/interface-go-ipfs-core/path"
|
||||||
|
"github.com/ipfs/kubo/tracing"
|
||||||
"go.opentelemetry.io/otel/attribute"
|
"go.opentelemetry.io/otel/attribute"
|
||||||
"go.opentelemetry.io/otel/trace"
|
"go.opentelemetry.io/otel/trace"
|
||||||
)
|
)
|
||||||
|
@ -8,9 +8,9 @@ import (
|
|||||||
|
|
||||||
blocks "github.com/ipfs/go-block-format"
|
blocks "github.com/ipfs/go-block-format"
|
||||||
cid "github.com/ipfs/go-cid"
|
cid "github.com/ipfs/go-cid"
|
||||||
"github.com/ipfs/go-ipfs/tracing"
|
|
||||||
coreiface "github.com/ipfs/interface-go-ipfs-core"
|
coreiface "github.com/ipfs/interface-go-ipfs-core"
|
||||||
ipath "github.com/ipfs/interface-go-ipfs-core/path"
|
ipath "github.com/ipfs/interface-go-ipfs-core/path"
|
||||||
|
"github.com/ipfs/kubo/tracing"
|
||||||
gocar "github.com/ipld/go-car"
|
gocar "github.com/ipld/go-car"
|
||||||
selectorparse "github.com/ipld/go-ipld-prime/traversal/selector/parse"
|
selectorparse "github.com/ipld/go-ipld-prime/traversal/selector/parse"
|
||||||
"go.opentelemetry.io/otel/attribute"
|
"go.opentelemetry.io/otel/attribute"
|
||||||
@ -71,7 +71,7 @@ func (i *gatewayHandler) serveCAR(ctx context.Context, w http.ResponseWriter, r
|
|||||||
// Same go-car settings as dag.export command
|
// Same go-car settings as dag.export command
|
||||||
store := dagStore{dag: i.api.Dag(), ctx: ctx}
|
store := dagStore{dag: i.api.Dag(), ctx: ctx}
|
||||||
|
|
||||||
// TODO: support selectors passed as request param: https://github.com/ipfs/go-ipfs/issues/8769
|
// TODO: support selectors passed as request param: https://github.com/ipfs/kubo/issues/8769
|
||||||
dag := gocar.Dag{Root: rootCid, Selector: selectorparse.CommonSelector_ExploreAllRecursively}
|
dag := gocar.Dag{Root: rootCid, Selector: selectorparse.CommonSelector_ExploreAllRecursively}
|
||||||
car := gocar.NewSelectiveCar(ctx, store, []gocar.Dag{dag}, gocar.TraverseLinksOnlyOnce())
|
car := gocar.NewSelectiveCar(ctx, store, []gocar.Dag{dag}, gocar.TraverseLinksOnlyOnce())
|
||||||
|
|
||||||
|
@ -8,8 +8,8 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
files "github.com/ipfs/go-ipfs-files"
|
files "github.com/ipfs/go-ipfs-files"
|
||||||
"github.com/ipfs/go-ipfs/tracing"
|
|
||||||
ipath "github.com/ipfs/interface-go-ipfs-core/path"
|
ipath "github.com/ipfs/interface-go-ipfs-core/path"
|
||||||
|
"github.com/ipfs/kubo/tracing"
|
||||||
"go.opentelemetry.io/otel/attribute"
|
"go.opentelemetry.io/otel/attribute"
|
||||||
"go.opentelemetry.io/otel/trace"
|
"go.opentelemetry.io/otel/trace"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
|
@ -11,12 +11,12 @@ import (
|
|||||||
"github.com/dustin/go-humanize"
|
"github.com/dustin/go-humanize"
|
||||||
cid "github.com/ipfs/go-cid"
|
cid "github.com/ipfs/go-cid"
|
||||||
files "github.com/ipfs/go-ipfs-files"
|
files "github.com/ipfs/go-ipfs-files"
|
||||||
"github.com/ipfs/go-ipfs/assets"
|
|
||||||
"github.com/ipfs/go-ipfs/tracing"
|
|
||||||
path "github.com/ipfs/go-path"
|
path "github.com/ipfs/go-path"
|
||||||
"github.com/ipfs/go-path/resolver"
|
"github.com/ipfs/go-path/resolver"
|
||||||
options "github.com/ipfs/interface-go-ipfs-core/options"
|
options "github.com/ipfs/interface-go-ipfs-core/options"
|
||||||
ipath "github.com/ipfs/interface-go-ipfs-core/path"
|
ipath "github.com/ipfs/interface-go-ipfs-core/path"
|
||||||
|
"github.com/ipfs/kubo/assets"
|
||||||
|
"github.com/ipfs/kubo/tracing"
|
||||||
"go.opentelemetry.io/otel/attribute"
|
"go.opentelemetry.io/otel/attribute"
|
||||||
"go.opentelemetry.io/otel/trace"
|
"go.opentelemetry.io/otel/trace"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
@ -81,7 +81,7 @@ func (i *gatewayHandler) serveDirectory(ctx context.Context, w http.ResponseWrit
|
|||||||
}
|
}
|
||||||
|
|
||||||
// See statusResponseWriter.WriteHeader
|
// See statusResponseWriter.WriteHeader
|
||||||
// and https://github.com/ipfs/go-ipfs/issues/7164
|
// and https://github.com/ipfs/kubo/issues/7164
|
||||||
// Note: this needs to occur before listingTemplate.Execute otherwise we get
|
// Note: this needs to occur before listingTemplate.Execute otherwise we get
|
||||||
// superfluous response.WriteHeader call from prometheus/client_golang
|
// superfluous response.WriteHeader call from prometheus/client_golang
|
||||||
if w.Header().Get("Location") != "" {
|
if w.Header().Get("Location") != "" {
|
||||||
@ -146,7 +146,7 @@ func (i *gatewayHandler) serveDirectory(ctx context.Context, w http.ResponseWrit
|
|||||||
}
|
}
|
||||||
|
|
||||||
// construct the correct back link
|
// construct the correct back link
|
||||||
// https://github.com/ipfs/go-ipfs/issues/1365
|
// https://github.com/ipfs/kubo/issues/1365
|
||||||
var backLink string = originalUrlPath
|
var backLink string = originalUrlPath
|
||||||
|
|
||||||
// don't go further up than /ipfs/$hash/
|
// don't go further up than /ipfs/$hash/
|
||||||
|
@ -12,8 +12,8 @@ import (
|
|||||||
|
|
||||||
"github.com/gabriel-vasile/mimetype"
|
"github.com/gabriel-vasile/mimetype"
|
||||||
files "github.com/ipfs/go-ipfs-files"
|
files "github.com/ipfs/go-ipfs-files"
|
||||||
"github.com/ipfs/go-ipfs/tracing"
|
|
||||||
ipath "github.com/ipfs/interface-go-ipfs-core/path"
|
ipath "github.com/ipfs/interface-go-ipfs-core/path"
|
||||||
|
"github.com/ipfs/kubo/tracing"
|
||||||
"go.opentelemetry.io/otel/attribute"
|
"go.opentelemetry.io/otel/attribute"
|
||||||
"go.opentelemetry.io/otel/trace"
|
"go.opentelemetry.io/otel/trace"
|
||||||
)
|
)
|
||||||
@ -54,7 +54,7 @@ func (i *gatewayHandler) serveFile(ctx context.Context, w http.ResponseWriter, r
|
|||||||
ctype = mime.TypeByExtension(gopath.Ext(name))
|
ctype = mime.TypeByExtension(gopath.Ext(name))
|
||||||
if ctype == "" {
|
if ctype == "" {
|
||||||
// uses https://github.com/gabriel-vasile/mimetype library to determine the content type.
|
// uses https://github.com/gabriel-vasile/mimetype library to determine the content type.
|
||||||
// Fixes https://github.com/ipfs/go-ipfs/issues/7252
|
// Fixes https://github.com/ipfs/kubo/issues/7252
|
||||||
mimeType, err := mimetype.DetectReader(content)
|
mimeType, err := mimetype.DetectReader(content)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
http.Error(w, fmt.Sprintf("cannot detect content-type: %s", err.Error()), http.StatusInternalServerError)
|
http.Error(w, fmt.Sprintf("cannot detect content-type: %s", err.Error()), http.StatusInternalServerError)
|
||||||
@ -71,7 +71,7 @@ func (i *gatewayHandler) serveFile(ctx context.Context, w http.ResponseWriter, r
|
|||||||
// Strip the encoding from the HTML Content-Type header and let the
|
// Strip the encoding from the HTML Content-Type header and let the
|
||||||
// browser figure it out.
|
// browser figure it out.
|
||||||
//
|
//
|
||||||
// Fixes https://github.com/ipfs/go-ipfs/issues/2203
|
// Fixes https://github.com/ipfs/kubo/issues/2203
|
||||||
if strings.HasPrefix(ctype, "text/html;") {
|
if strings.HasPrefix(ctype, "text/html;") {
|
||||||
ctype = "text/html"
|
ctype = "text/html"
|
||||||
}
|
}
|
||||||
|
@ -6,8 +6,8 @@ import (
|
|||||||
"path"
|
"path"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/ipfs/go-ipfs/assets"
|
|
||||||
ipfspath "github.com/ipfs/go-path"
|
ipfspath "github.com/ipfs/go-path"
|
||||||
|
"github.com/ipfs/kubo/assets"
|
||||||
)
|
)
|
||||||
|
|
||||||
// structs for directory listing
|
// structs for directory listing
|
||||||
|
@ -11,20 +11,20 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
version "github.com/ipfs/go-ipfs"
|
|
||||||
core "github.com/ipfs/go-ipfs/core"
|
|
||||||
"github.com/ipfs/go-ipfs/core/coreapi"
|
|
||||||
repo "github.com/ipfs/go-ipfs/repo"
|
|
||||||
namesys "github.com/ipfs/go-namesys"
|
namesys "github.com/ipfs/go-namesys"
|
||||||
|
version "github.com/ipfs/kubo"
|
||||||
|
core "github.com/ipfs/kubo/core"
|
||||||
|
"github.com/ipfs/kubo/core/coreapi"
|
||||||
|
repo "github.com/ipfs/kubo/repo"
|
||||||
|
|
||||||
datastore "github.com/ipfs/go-datastore"
|
datastore "github.com/ipfs/go-datastore"
|
||||||
syncds "github.com/ipfs/go-datastore/sync"
|
syncds "github.com/ipfs/go-datastore/sync"
|
||||||
files "github.com/ipfs/go-ipfs-files"
|
files "github.com/ipfs/go-ipfs-files"
|
||||||
config "github.com/ipfs/go-ipfs/config"
|
|
||||||
path "github.com/ipfs/go-path"
|
path "github.com/ipfs/go-path"
|
||||||
iface "github.com/ipfs/interface-go-ipfs-core"
|
iface "github.com/ipfs/interface-go-ipfs-core"
|
||||||
nsopts "github.com/ipfs/interface-go-ipfs-core/options/namesys"
|
nsopts "github.com/ipfs/interface-go-ipfs-core/options/namesys"
|
||||||
ipath "github.com/ipfs/interface-go-ipfs-core/path"
|
ipath "github.com/ipfs/interface-go-ipfs-core/path"
|
||||||
|
config "github.com/ipfs/kubo/config"
|
||||||
ci "github.com/libp2p/go-libp2p-core/crypto"
|
ci "github.com/libp2p/go-libp2p-core/crypto"
|
||||||
id "github.com/libp2p/go-libp2p/p2p/protocol/identify"
|
id "github.com/libp2p/go-libp2p/p2p/protocol/identify"
|
||||||
)
|
)
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user