Skip to content

index

datahop index

Index datahop node content

Synopsis

This command is used to get the index of tag-content

Example:

To pretty print the index in json format

$ datahop index -j -p

{
    "/go1.17.linux-amd64.tar.gz": {
        "Size": 134787877,
        "Type": "application/gzip",
        "Name": "go1.17.linux-amd64.tar.gz",
        "Hash": {
            "/": "bafybeia4ssmbshzjwcuhq6xl3b7pjmfapy6buaaheh75hf7qzjzvs4rogq"
        },
        "Timestamp": 1632207586,
        "Owner": "QmXpiaCz3M7bRz47ZRUP3uq1WUfquqTNrfzi3j24eNXpe5"
    },
    "/golang_latest": {
        "Size": 134787877,
        "Type": "application/gzip",
        "Name": "go1.17.linux-amd64.tar.gz",
        "Hash": {
            "/": "bafybeia4ssmbshzjwcuhq6xl3b7pjmfapy6buaaheh75hf7qzjzvs4rogq"
        },
        "Timestamp": 1632207767,
        "Owner": "QmXpiaCz3M7bRz47ZRUP3uq1WUfquqTNrfzi3j24eNXpe5"
    },
}
datahop index [flags]

Options

  -h, --help   help for index

Options inherited from parent commands

  -j, --json     json output
  -p, --pretty   pretty json output

SEE ALSO

  • datahop - This is datahop cli client
Auto generated by spf13/cobra on 21-Sep-2021