Documentation ¶
Index ¶
- type ApiKey
- type Endpoints
- type Failure
- type FailureError
- type KeyInfo
- type MetaData
- type PaginationParams
- type Pin
- type PinFileResponse
- type PinResults
- type PinStatus
- type PinnedTotal
- type PolicyParam
- type Scope
- type ScopeData
- type ScopePinning
- type ScopePins
- type SearchPinParam
- type Status
- type TextMatchingStrategy
- type UploadParam
- type UploadResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Endpoints ¶
type Endpoints struct { Pins ScopePins `json:"pins"` Data ScopeData `json:"data"` Pinning ScopePinning `json:"pinning"` }
type Failure ¶
type Failure struct {
Error FailureError `json:"error"`
}
Failure - Response for a failed request
type FailureError ¶
type PaginationParams ¶
type Pin ¶
type Pin struct { // Content Identifier (CID) to be pinned recursively Cid string `json:"cid" example:"QmCIDToBePinned"` // Optional name for pinned data; can be used for lookups later Name string `json:"name,omitempty" maximum:"255" example:"PreciousData.pdf"` // Optional list of multiaddrs known to provide the data Origins []string `` /* 133-byte string literal not displayed */ // Optional metadata for pin object Meta map[string]string `json:"meta,omitempty" example:"app_id:99986338-1113-4706-8302-4420da6158aa"` }
Pin - Pin object
type PinFileResponse ¶
type PinResults ¶
type PinStatus ¶
type PinStatus struct { // Globally unique identifier of the pin request; can be used to check the status of ongoing pinning, or pin removal Requestid string `json:"requestid" example:"UniqueIdOfPinRequest"` Status Status `json:"status" example:"queued"` // Immutable timestamp indicating when a pin request entered a pinning service; can be used for filtering results and pagination Created common.UTCTime `json:"created" example:"2020-07-27T17:32:28Z"` Pin Pin `json:"pin"` // List of multiaddrs designated by pinning service for transferring any new data from external peers Delegates []string `json:"delegates" example:"/ip4/203.0.113.1/tcp/4001/p2p/QmServicePeerId"` // Optional info for PinStatus response Info map[string]string `json:"info,omitempty" example:"status_details:Queue position 7 of 9"` }
PinStatus - Pin object with status
type PinnedTotal ¶
type PolicyParam ¶
type ScopePinning ¶
type SearchPinParam ¶
type SearchPinParam struct { Cid []string `json:"cid,omitempty"` Name string `json:"name,omitempty"` Match TextMatchingStrategy `json:"match"` Status []Status `json:"status"` Before *common.UTCTime `json:"before,omitempty"` After *common.UTCTime `json:"after,omitempty"` Meta map[string]string `json:"meta,omitempty"` Limit int `json:"limit"` Page int `json:"page,omitempty"` // Paging if set it }
type TextMatchingStrategy ¶
type TextMatchingStrategy string
TextMatchingStrategy : Alternative text matching strategy
const ( EXACT TextMatchingStrategy = "exact" IEXACT TextMatchingStrategy = "iexact" PARTIAL TextMatchingStrategy = "partial" IPARTIAL TextMatchingStrategy = "ipartial" )
List of TextMatchingStrategy
type UploadParam ¶
type UploadResponse ¶
Click to show internal directories.
Click to hide internal directories.