Documentation
¶
Overview ¶
Package adminserver provides a HTTP server that allows to perform administrative operations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnectReq ¶
type ConnectReq struct {
Maddr string `json:"maddr"`
}
ConnectReq request to connect to a given multiaddr.
type ConnectRes ¶
type ConnectRes struct {
}
ConnectRes represents successful response to ConnectReq request.
type ImportCarReq ¶
type ImportCarReq struct {
// The path to the CAR file
Path string `json:"path"`
// The optional key associated to the CAR. If not provided, one will be generated.
Key []byte `json:"key"`
// The optional metadata.
Metadata stiapi.Metadata `json:"metadata"`
}
ImportCarReq represents a request for importing a CAR file.
type ImportCarRes ¶
type ImportCarRes struct {
// The lookup Key associated to the imported CAR.
Key []byte `json:"key"`
// The CID of the advertisement generated as a result of import.
AdvId cid.Cid `json:"adv_id"`
}
ImportCarRes represents the response to an ImportCarReq.
type RemoveCarReq ¶
type RemoveCarReq struct {
// The key associated to the CAR.
Key []byte `json:"key"`
}
RemoveCarReq represents a request for removing a CAR file.
type RemoveCarRes ¶
type RemoveCarRes struct {
// The CID of the advertisement generated as a result of removal.
AdvId cid.Cid `json:"adv_id"`
}
RemoveCarRes represents the response to a RemoveCarReq
Click to show internal directories.
Click to hide internal directories.