daemon

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2019 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package daemon provides the ipfs-orchestrator's server

Index

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

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) Ping

func (d *Daemon) Ping(
	c context.Context,
	req *nexus.Empty,
) (*nexus.Empty, error)

Ping is useful for checking client-server connection

func (*Daemon) RemoveNetwork

func (d *Daemon) RemoveNetwork(
	ctx context.Context,
	req *nexus.NetworkRequest,
) (*nexus.Empty, error)

RemoveNetwork removes assets for requested node

func (*Daemon) Run

func (d *Daemon) Run(ctx context.Context, cfg config.API) error

Run spins up daemon server

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

Jump to

Keyboard shortcuts

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