Documentation
¶
Index ¶
Constants ¶
View Source
const LockFile = "daemon.lock"
LockFile is the filename of the daemon lock, relative to config dir
Variables ¶
View Source
var ErrDaemonNotRunning = errors.New("daemon not running")
ErrDaemonNotRunning is returned when attempting to retrieve the daemon's address and the daemon is not actually running.
Functions ¶
func SendCommand ¶
SendCommand attempts to run the command over a currently-running daemon. If there is no running daemon, returns ErrDaemonNotRunning. This is done over network RPC API. The address of the daemon is retrieved from the config directory, where live daemons write their addresses to special files.
Types ¶
type Command ¶
Command accepts user input and can be sent to the running IPFS node
func NewCommand ¶
func NewCommand() *Command
type DaemonListener ¶
type DaemonListener struct {
// contains filtered or unexported fields
}
DaemonListener listens to an initialized IPFS node and can send it commands instead of starting up a new set of connections
func NewDaemonListener ¶
func (*DaemonListener) Close ¶
func (dl *DaemonListener) Close() error
func (*DaemonListener) Listen ¶
func (dl *DaemonListener) Listen()
Click to show internal directories.
Click to hide internal directories.