adminapi

package
v0.0.0-...-7a4b066 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 3, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package adminapi - contains the the adminapi code.

Package adminapi - contains the the adminapi code.

Package adminapi - contains the the adminapi code.

Package adminapi - contains the the adminapi code.

Package adminapi - contains the the adminapi code.

Package adminapi - contains the the adminapi code.

Package adminapi - contains the the adminapi code.

Package adminapi - contains the the adminapi code.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RequestCacheOfferByDigest

func RequestCacheOfferByDigest(adminURL string, adminKey string, digest string, cid string) (
	bool,
	string,
	error,
)

RequestCacheOfferByDigest caches an offer by given digest, given cid by a managed gateway

func RequestChangePeerStatus

func RequestChangePeerStatus(adminURL string, adminKey string, targetID string, block bool, unblock bool) (
	bool,
	string,
	error,
)

RequestChangePeerStatus requests a managed gateway to change given peer's status

func RequestForceSync

func RequestForceSync(adminURL string, adminKey string) (
	bool,
	string,
	error,
)

RequestForceSync requests a force sync

func RequestGetOfferByCID

func RequestGetOfferByCID(adminURL string, adminKey string, cid string) (
	[]string,
	[]string,
	[]string,
	[]int64,
	[]uint64,
	error,
)

RequestGetOfferByCID gets offers containing given cid from a managed gateway

func RequestInitiasation

func RequestInitiasation(
	adminURL string,
	adminKey string,
	p2pPrivKey string,
	p2pPort int,
	networkAddr string,
	rootPrivKey string,
	lotusAPIAddr string,
	lotusAuthToken string,
	registerPrivKey string,
	registerAPIAddr string,
	registerAuthToken string,
	regionCode string,
) (
	bool,
	string,
	error,
)

RequestInitiasation initialises a given gateway

func RequestInspectPeer

func RequestInspectPeer(adminURL string, adminKey string, targetID string) (
	int64,
	bool,
	bool,
	[]string,
	error,
)

RequestInspectPeer inspects a given peer from a managed gateway

func RequestListCIDFrequency

func RequestListCIDFrequency(adminURL string, adminKey string, from uint, to uint) (
	[]string,
	[]int,
	error,
)

RequestListCIDFrequency lists the cid frequency from a managed gateway

func RequestListPeers

func RequestListPeers(adminURL string, adminKey string) (
	[]string,
	[]int64,
	[]bool,
	[]bool,
	[]string,
	error,
)

RequestListPeers lists all the peers a given gateway is having a business relationship with.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL