Documentation ¶
Overview ¶
Package daemon provides the ipfs-orchestrator's server
Index ¶
- type Daemon
- func (d *Daemon) NetworkDiagnostics(ctx context.Context, req *nexus.NetworkRequest) (*nexus.NetworkDiagnosticsResponse, error)
- func (d *Daemon) NetworkStats(ctx context.Context, req *nexus.NetworkRequest) (*nexus.NetworkStatusReponse, error)
- func (d *Daemon) Ping(c context.Context, req *nexus.Empty) (*nexus.Empty, error)
- func (d *Daemon) RemoveNetwork(ctx context.Context, req *nexus.NetworkRequest) (*nexus.Empty, error)
- func (d *Daemon) Run(ctx context.Context, cfg config.API) error
- func (d *Daemon) StartNetwork(ctx context.Context, req *nexus.NetworkRequest) (*nexus.StartNetworkResponse, error)
- func (d *Daemon) StopNetwork(ctx context.Context, req *nexus.NetworkRequest) (*nexus.Empty, error)
- func (d *Daemon) UpdateNetwork(ctx context.Context, req *nexus.NetworkRequest) (*nexus.Empty, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Daemon ¶
type Daemon struct {
// contains filtered or unexported fields
}
Daemon exposes orchestrator functionality via a gRPC API
func New ¶
func New(logger *zap.SugaredLogger, o *orchestrator.Orchestrator) *Daemon
New initializes a new Daemon
func (*Daemon) NetworkDiagnostics ¶
func (d *Daemon) NetworkDiagnostics( ctx context.Context, req *nexus.NetworkRequest, ) (*nexus.NetworkDiagnosticsResponse, error)
NetworkDiagnostics retrieves detailed diagnostic details about the requested network node
func (*Daemon) NetworkStats ¶
func (d *Daemon) NetworkStats( ctx context.Context, req *nexus.NetworkRequest, ) (*nexus.NetworkStatusReponse, error)
NetworkStats retrieves stats about the requested node
func (*Daemon) RemoveNetwork ¶
func (d *Daemon) RemoveNetwork( ctx context.Context, req *nexus.NetworkRequest, ) (*nexus.Empty, error)
RemoveNetwork removes assets for requested node
func (*Daemon) StartNetwork ¶
func (d *Daemon) StartNetwork( ctx context.Context, req *nexus.NetworkRequest, ) (*nexus.StartNetworkResponse, error)
StartNetwork brings a node for the requested network online
func (*Daemon) StopNetwork ¶
func (d *Daemon) StopNetwork( ctx context.Context, req *nexus.NetworkRequest, ) (*nexus.Empty, error)
StopNetwork brings a node for the requested network offline
func (*Daemon) UpdateNetwork ¶
func (d *Daemon) UpdateNetwork( ctx context.Context, req *nexus.NetworkRequest, ) (*nexus.Empty, error)
UpdateNetwork updates the configuration of the given network
Click to show internal directories.
Click to hide internal directories.