Documentation
¶
Index ¶
- Constants
- Variables
- type EstuaryPinManager
- func (pm *EstuaryPinManager) GetPin(param GetPinParam) (*IpfsPinStatusResponse, error)
- func (pm *EstuaryPinManager) PinCid(eCtx echo.Context, param PinCidParam) (*IpfsPinStatusResponse, error)
- func (m *EstuaryPinManager) PinContent(ctx context.Context, user uint, obj cid.Cid, filename string, ...) (*IpfsPinStatusResponse, error)
- func (m *EstuaryPinManager) PinDelegatesForContent(cont util.Content) []string
- func (m *EstuaryPinManager) PinStatus(cont util.Content, origins []*peer.AddrInfo) (*IpfsPinStatusResponse, error)
- type GetPinParam
- type IEstuaryPinManager
- type IPinManager
- type IpfsListPinStatusResponse
- type IpfsPin
- type IpfsPinStatusResponse
- type PinCidParam
- type PinFunc
- type PinManager
- type PinManagerOpts
- type PinStatusFunc
- type PinningOperationData
- type ShuttleManager
Constants ¶
View Source
const (
ColDir string = "dir"
)
Variables ¶
View Source
var DefaultOpts = &PinManagerOpts{
MaxActivePerUser: 15,
QueueDataDir: "/tmp/",
}
Functions ¶
This section is empty.
Types ¶
type EstuaryPinManager ¶ added in v0.3.0
type EstuaryPinManager struct { *PinManager // contains filtered or unexported fields }
func (*EstuaryPinManager) GetPin ¶ added in v0.4.0
func (pm *EstuaryPinManager) GetPin(param GetPinParam) (*IpfsPinStatusResponse, error)
GetPinStatus returns the status of a pin operation
func (*EstuaryPinManager) PinCid ¶ added in v0.4.0
func (pm *EstuaryPinManager) PinCid(eCtx echo.Context, param PinCidParam) (*IpfsPinStatusResponse, error)
PinCidAndQueue adds a cid to the pin queue, and pins it if possible
func (*EstuaryPinManager) PinContent ¶ added in v0.4.0
func (m *EstuaryPinManager) PinContent(ctx context.Context, user uint, obj cid.Cid, filename string, cols []*collections.CollectionRef, origins []*peer.AddrInfo, replaceID uint, meta map[string]interface{}, replication int, makeDeal bool) (*IpfsPinStatusResponse, error)
func (*EstuaryPinManager) PinDelegatesForContent ¶ added in v0.4.0
func (m *EstuaryPinManager) PinDelegatesForContent(cont util.Content) []string
func (*EstuaryPinManager) PinStatus ¶ added in v0.4.0
func (m *EstuaryPinManager) PinStatus(cont util.Content, origins []*peer.AddrInfo) (*IpfsPinStatusResponse, error)
type GetPinParam ¶ added in v0.3.9
type IEstuaryPinManager ¶ added in v0.4.0
type IEstuaryPinManager interface { IPinManager PinContent(ctx context.Context, user uint, obj cid.Cid, filename string, cols []*collections.CollectionRef, origins []*peer.AddrInfo, replaceID uint, meta map[string]interface{}, replication int, makeDeal bool) (*IpfsPinStatusResponse, error) PinCid(eCtx echo.Context, param PinCidParam) (*IpfsPinStatusResponse, error) PinDelegatesForContent(cont util.Content) []string PinStatus(cont util.Content, origins []*peer.AddrInfo) (*IpfsPinStatusResponse, error) GetPin(param GetPinParam) (*IpfsPinStatusResponse, error) }
func NewEstuaryPinManager ¶ added in v0.3.0
type IPinManager ¶ added in v0.4.0
type IpfsListPinStatusResponse ¶ added in v0.4.0
type IpfsListPinStatusResponse struct { Count int `json:"count"` Results []*IpfsPinStatusResponse `json:"results"` }
type IpfsPinStatusResponse ¶ added in v0.4.0
type PinCidParam ¶ added in v0.3.9
type PinManager ¶
type PinManager struct { RunPinFunc PinFunc StatusChangeFunc PinStatusFunc QueueDataDir string // contains filtered or unexported fields }
func NewShuttlePinManager ¶ added in v0.3.0
func NewShuttlePinManager(pinfunc PinFunc, scf PinStatusFunc, opts *PinManagerOpts, log *zap.SugaredLogger) *PinManager
func (*PinManager) Add ¶
func (pm *PinManager) Add(op *operation.PinningOperation)
func (*PinManager) PinQueueSize ¶
func (pm *PinManager) PinQueueSize() int
func (*PinManager) Run ¶
func (pm *PinManager) Run(workers int)
type PinManagerOpts ¶
type PinStatusFunc ¶
type PinStatusFunc func(contID uint64, location string, status status.PinningStatus) error
type PinningOperationData ¶ added in v0.1.11
type PinningOperationData struct {
ContId uint64
}
type ShuttleManager ¶ added in v0.3.0
type ShuttleManager struct {
*PinManager
}
Click to show internal directories.
Click to hide internal directories.