C# Class Ipfs.Commands.IpfsObject

Inheritance: Ipfs.Json.IpfsCommand
Datei anzeigen Open project: TrekDev/net-ipfs-api

Public Methods

Method Description
Data ( string key ) : Task

Outputs the raw bytes in an IPFS object ipfs data is a plumbing command for retreiving the raw bytes stored in a DAG node.It outputs to stdout, and is a base58 encoded multihash.

Get ( string key, IpfsEncoding encoding ) : Task

Get and serialize the DAG node named by 'ipfs object get' is a plumbing command for retreiving DAG nodes. It serializes the DAG node to the format specified by the "--encoding" flag.It outputs to stdout, and is a base58 encoded multihash.

Links ( string key ) : Task

Outputs the links pointed to by the specified object 'ipfs object links' is a plumbing command for retreiving the links from a DAG node.It outputs to stdout, and is a base58 encoded multihash.

Put ( MerkleNode node ) : Task

Stores input as a DAG object, outputs its key 'ipfs object put' is a plumbing command for storing DAG nodes. It reads from stdin, and the output is a base58 encoded multihash.

Stat ( string key ) : Task

Get stats for the DAG node named by 'ipfs object stat' is a plumbing command to print DAG node statistics. is a base58 encoded multihash.It outputs to stdout:

Private Methods

Method Description
GetIpfsEncodingValue ( IpfsEncoding encoding ) : string
IpfsObject ( Uri commandUri, HttpClient httpClient, IJsonSerializer jsonSerializer ) : Ipfs.Json

Method Details

Data() public method

Outputs the raw bytes in an IPFS object ipfs data is a plumbing command for retreiving the raw bytes stored in a DAG node.It outputs to stdout, and is a base58 encoded multihash.
public Data ( string key ) : Task
key string Key of the object to retrieve, in base58-encoded multihash format
return Task

Get() public method

Get and serialize the DAG node named by 'ipfs object get' is a plumbing command for retreiving DAG nodes. It serializes the DAG node to the format specified by the "--encoding" flag.It outputs to stdout, and is a base58 encoded multihash.
public Get ( string key, IpfsEncoding encoding ) : Task
key string Key of the object to retrieve (in base58-encoded multihash format)
encoding IpfsEncoding The encoding of the data
return Task

Links() public method

Outputs the links pointed to by the specified object 'ipfs object links' is a plumbing command for retreiving the links from a DAG node.It outputs to stdout, and is a base58 encoded multihash.
public Links ( string key ) : Task
key string Key of the object to retrieve, in base58-encoded multihash format
return Task

Put() public method

Stores input as a DAG object, outputs its key 'ipfs object put' is a plumbing command for storing DAG nodes. It reads from stdin, and the output is a base58 encoded multihash.
public Put ( MerkleNode node ) : Task
node MerkleNode Node to be stored as a DAG object
return Task

Stat() public method

Get stats for the DAG node named by 'ipfs object stat' is a plumbing command to print DAG node statistics. is a base58 encoded multihash.It outputs to stdout:
public Stat ( string key ) : Task
key string Key of the object to retrieve (in base58-encoded multihash format)
return Task