Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type AddPinOutput ¶
type PinLsObject ¶
type PinLsObject struct { Cid string `json:",omitempty"` Name string `json:",omitempty"` Type string `json:",omitempty"` }
PinLsObject contains the description of a pin
type PinLsOutputWrapper ¶
type PinLsOutputWrapper struct { PinLsList PinLsObject }
PinLsOutputWrapper is the output type of the pin ls command. Pin ls needs to output two different type depending on if it's streamed or not. We use this to bypass the cmds lib refusing to have interface{}
type PinServicesList ¶
type PinServicesList struct {
RemoteServices []ServiceDetails
}
Struct returned by ipfs pin remote service ls --enc=json | jq
func (PinServicesList) Len ¶
func (l PinServicesList) Len() int
func (PinServicesList) Less ¶
func (l PinServicesList) Less(i, j int) bool
func (PinServicesList) Swap ¶
func (l PinServicesList) Swap(i, j int)
type PinVerifyRes ¶
type PinVerifyRes struct { Cid string `json:",omitempty"` Err string `json:",omitempty"` PinStatus }
PinVerifyRes is the result returned for each pin checked in "pin verify"
func (PinVerifyRes) Format ¶
func (r PinVerifyRes) Format(out io.Writer)
Format formats PinVerifyRes
type RemotePinOutput ¶
type ServiceDetails ¶
Click to show internal directories.
Click to hide internal directories.