console

package
v1.16.1 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2020 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	ID storj.NodeID
	// APISecret is a secret issued by storagenode, that will be main auth mechanism in MND <-> SNO api. is a secret issued by storagenode, that will be main auth mechanism in MND <-> SNO api.
	APISecret     []byte
	PublicAddress string

	Logo []byte
	// Tag is configured by used and could be used to group nodes. // TODO: should node have multiple tags?
	Tag string // TODO: create enum or type in future.
}

Node is a representation of storeganode, that SNO could add to the Multinode Dashboard.

type Nodes added in v1.15.1

type Nodes interface {
	// Add creates new node in NodesDB.
	Add(ctx context.Context, id storj.NodeID, apiSecret []byte, publicAddress string) error
	// GetByID return node from NodesDB by its id.
	GetByID(ctx context.Context, id storj.NodeID) (Node, error)
	// Remove removed node from NodesDB.
	Remove(ctx context.Context, id storj.NodeID) error
}

Nodes exposes needed by MND NodesDB functionality.

architecture: Database

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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