Documentation ¶
Index ¶
- Constants
- Variables
- type AddOptiondeprecated
- type Clientdeprecated
- func (c *Client) Add(ctx context.Context, cid cid.Cid, opts ...AddOption) (PinStatusGetter, error)
- func (c *Client) DeleteByID(ctx context.Context, pinID string) error
- func (c *Client) GetStatusByID(ctx context.Context, pinID string) (PinStatusGetter, error)
- func (c *Client) Ls(ctx context.Context, opts ...LsOption) (chan PinStatusGetter, chan error)
- func (c *Client) LsBatchSync(ctx context.Context, opts ...LsOption) ([]PinStatusGetter, int, error)
- func (c *Client) LsSync(ctx context.Context, opts ...LsOption) ([]PinStatusGetter, error)
- func (c *Client) Replace(ctx context.Context, pinID string, cid cid.Cid, opts ...AddOption) (PinStatusGetter, error)
- type LsOptiondeprecated
- type PinGetterdeprecated
- type PinStatusGetterdeprecated
- type Statusdeprecated
Constants ¶
View Source
const UserAgent = "go-pinning-service-http-client"
Deprecated: use github.com/ipfs/boxo/pinning/remote/client.UserAgent
Variables ¶
View Source
var PinOpts = pinOpts{}
Deprecated: use github.com/ipfs/boxo/pinning/remote/client.PinOpts
Functions ¶
This section is empty.
Types ¶
type Client
deprecated
type Client struct {
// contains filtered or unexported fields
}
Deprecated: use github.com/ipfs/boxo/pinning/remote/client.Client
func (*Client) GetStatusByID ¶
func (*Client) LsBatchSync ¶ added in v0.1.0
Manual version of Ls that returns a single batch of results and int with total count
type PinGetter
deprecated
type PinGetter interface { fmt.Stringer json.Marshaler // CID to be pinned recursively GetCid() cid.Cid // Optional name for pinned data; can be used for lookups later GetName() string // Optional list of multiaddrs known to provide the data GetOrigins() []string // Optional metadata for pin object GetMeta() map[string]string }
PinGetter Getter for Pin object
Deprecated: use github.com/ipfs/boxo/pinning/remote/client.PinGetter
type PinStatusGetter
deprecated
type PinStatusGetter interface { fmt.Stringer json.Marshaler // Globally unique ID of the pin request; can be used to check the status of ongoing pinning, modification of pin object, or pin removal GetRequestId() string GetStatus() Status // Immutable timestamp indicating when a pin request entered a pinning service; can be used for filtering results and pagination GetCreated() time.Time GetPin() PinGetter // List of multiaddrs designated by pinning service for transferring any new data from external peers GetDelegates() []multiaddr.Multiaddr // Optional info for PinStatus response GetInfo() map[string]string }
PinStatusGetter Getter for Pin object with status
Deprecated: use github.com/ipfs/boxo/pinning/remote/client.PinStatusGetter
type Status
deprecated
type Status string
Deprecated: use github.com/ipfs/boxo/pinning/remote/client.Status
const ( // Deprecated: use github.com/ipfs/boxo/pinning/remote/client.StatusUnknown StatusUnknown Status = "" // Deprecated: use github.com/ipfs/boxo/pinning/remote/client.StatusQueued StatusQueued Status = Status(openapi.QUEUED) // Deprecated: use github.com/ipfs/boxo/pinning/remote/client.StatusPinning StatusPinning Status = Status(openapi.PINNING) // Deprecated: use github.com/ipfs/boxo/pinning/remote/client.StatusPinned StatusPinned Status = Status(openapi.PINNED) // Deprecated: use github.com/ipfs/boxo/pinning/remote/client.StatusFailed StatusFailed Status = Status(openapi.FAILED) )
Click to show internal directories.
Click to hide internal directories.