C# 클래스 Ipfs.Commands.IpfsPin

상속: Ipfs.Json.IpfsCommand
파일 보기 프로젝트 열기: TrekDev/net-ipfs-api

공개 메소드들

메소드 설명
Add ( string ipfsPath, bool recursive = false ) : Task>

Pins objects to local storage Retrieves the object named by and stores it locally on disk.

Ls ( IpfsType type = null ) : Task

List objects pinned to local storage Returns a list of hashes of objects being pinned. Objects that are indirectly or recursively pinned are not included in the list.

Rm ( string ipfsPath, bool recursive = false ) : Task

Unpin an object from local storage Removes the pin from the given object allowing it to be garbage collected if needed.

비공개 메소드들

메소드 설명
IpfsPin ( Uri commandUri, HttpClient httpClient, IJsonSerializer jsonSerializer ) : System

메소드 상세

Add() 공개 메소드

Pins objects to local storage Retrieves the object named by and stores it locally on disk.
public Add ( string ipfsPath, bool recursive = false ) : Task>
ipfsPath string Path to object(s) to be pinned
recursive bool Recursively pin the object linked to by the specified object(s)
리턴 Task>

Ls() 공개 메소드

List objects pinned to local storage Returns a list of hashes of objects being pinned. Objects that are indirectly or recursively pinned are not included in the list.
public Ls ( IpfsType type = null ) : Task
type IpfsType The type of pinned keys to list. Can be "direct", "indirect", "recursive", or "all". Defaults to "direct"
리턴 Task

Rm() 공개 메소드

Unpin an object from local storage Removes the pin from the given object allowing it to be garbage collected if needed.
public Rm ( string ipfsPath, bool recursive = false ) : Task
ipfsPath string Path to object(s) to be unpinned
recursive bool Recursively unpin the object linked to by the specified object(s)
리턴 Task