Documentation ¶
Index ¶
- func IsLoopback(ma multiaddr.Multiaddr) (bool, error)
- func MultiaddrContains(ma multiaddr.Multiaddr, component *multiaddr.Component) (bool, error)
- func Must(err error)
- func Must2[V any](v V, err error) V
- func ProcMust(res *cluster.ProcessResult, err error) error
- func RemoveLocalAddrs(ai *peer.AddrInfo) error
- type Cluster
- type Daemon
- type Node
- func (n *Node) APIAddr() (multiaddr.Multiaddr, error)
- func (n *Node) AddrInfo() (*peer.AddrInfo, error)
- func (n *Node) ConfigureForLocal() error
- func (n *Node) ConfigureForRemote() error
- func (n *Node) Context(ctx context.Context) *Node
- func (n *Node) GatewayURL() (*url.URL, error)
- func (n *Node) IPFSBin() string
- func (n *Node) IPFSPath() string
- func (n *Node) Init() error
- func (n *Node) LoadBinary() error
- func (n *Node) MustVersion() string
- func (n *Node) RPCAPIClient() (*shell.Shell, error)
- func (n *Node) RPCHTTPClient() (*httpapi.HttpApi, error)
- func (n *Node) ReadConfig() (*config.Config, error)
- func (n *Node) RemoteAddrInfo() (*peer.AddrInfo, error)
- func (n *Node) RunKubo(req cluster.StartProcRequest) (*cluster.ProcessResult, error)
- func (n *Node) SetConfig(cfg map[string]string) error
- func (n *Node) StartDaemon() (*Daemon, error)
- func (n *Node) StartDaemonAndWaitForAPI() (*Daemon, error)
- func (n *Node) StartKubo(req cluster.StartProcRequest) (*basic.Process, error)
- func (n *Node) UpdateConfig(f func(cfg *config.Config)) error
- func (n *Node) Version() (string, error)
- func (n *Node) WaitOnAPI() error
- func (n *Node) WithKuboVersion(version string) *Node
- func (n *Node) WithLocalKuboBin(binPath string) *Node
- func (n *Node) WithNodeLogger(l *zap.SugaredLogger) *Node
- func (n *Node) WriteConfig(c *config.Config) error
- type StopFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsLoopback ¶
func MultiaddrContains ¶
func RemoveLocalAddrs ¶
Types ¶
type Cluster ¶
func (*Cluster) MustNewNodes ¶
type Node ¶
type Node struct { *basic.Node Ctx context.Context Log *zap.SugaredLogger HTTPClient *http.Client BinLoader bin.Loader // contains filtered or unexported fields }
func (*Node) ConfigureForLocal ¶
func (*Node) ConfigureForRemote ¶
func (*Node) LoadBinary ¶
func (*Node) MustVersion ¶
func (*Node) RPCAPIClient ¶
RPCClient returns an RPC client configured for this node (https://github.com/ipfs/go-ipfs-api) We call this the "API Client" to distinguish it from the "HTTP Client". Both are very similar, but slightly different.
func (*Node) RPCHTTPClient ¶
RPCHTTPClient returns an HTTP RPC client configured for this node (https://github.com/ipfs/go-ipfs-http-client) We call this the "HTTP Client" to distinguish it from the "API Client". Both are very similar, but slightly different.
func (*Node) RunKubo ¶
func (n *Node) RunKubo(req cluster.StartProcRequest) (*cluster.ProcessResult, error)
func (*Node) StartDaemon ¶
func (*Node) StartDaemonAndWaitForAPI ¶
func (*Node) WithKuboVersion ¶
WithKuboVersion configures the node to use a specific version of Kubo from dist.ipfs.io.
func (*Node) WithLocalKuboBin ¶
WithLocalKuboBin configures the node to use a Kubo binary on the local filesystem.
func (*Node) WithNodeLogger ¶
func (n *Node) WithNodeLogger(l *zap.SugaredLogger) *Node
Click to show internal directories.
Click to hide internal directories.