Documentation ¶
Index ¶
- Constants
- Variables
- func SetPoolPasswordHash(password string) error
- type FileSystemAttributes
- type KeyPieceMap
- type KeyPieceStore
- func (ks KeyPieceStore) AddPiece(generation int64, nodeUUID string, piece *keyman.KeyPiece) error
- func (ks KeyPieceStore) DeleteGeneration(generation int64) error
- func (ks KeyPieceStore) DeletePiece(generation int64, nodeUUID string) error
- func (ks KeyPieceStore) GetPiece(generation int64, nodeUUID string) *keyman.KeyPiece
- func (ks KeyPieceStore) SaveToDisk() error
- type Node
Constants ¶
View Source
const (
PASSWORD_SALT_LENGTH int = 64
)
Variables ¶
View Source
var BootTime time.Time
Time at which PFSD started. Used for calculating uptime.
View Source
var DiscoveryAddr string
DiscoveryAddr contains the connection sting to the discovery server
View Source
var Encrypted bool
Global key used by this instance of PFSD
View Source
var EncryptionKey *keyman.Key
View Source
var HeldKeyPieces = make(KeyPieceStore)
View Source
var KeyGenerated bool
View Source
var Log *logger.ParanoidLogger
View Source
var MountPoint string
View Source
var NetworkOff bool
View Source
var Nodes = nodes{/* contains filtered or unexported fields */}
Nodes instance which controls all the information about other pfsd instances
View Source
var ParanoidDir string
View Source
var PoolPasswordHash []byte
The hash of the password required to join the raft cluster
View Source
var PoolPasswordSalt []byte
View Source
var Quit = make(chan bool) // Doesn't matter what the channel holds
View Source
var RaftNetworkServer *raft.RaftNetworkServer
View Source
var ResetInterval time.Duration
ResetInterval containing how often the Renew function has to be called
View Source
var ShuttingDown bool
View Source
var TLSEnabled bool
If true, TLS is being used in all connections to and from PFSD
View Source
var TLSSkipVerify bool
If true, PFSD will not verify the TLS credentials of anything it connects to
View Source
var UPnPEnabled bool
If UPnP is enabled and a port mapping has been establised.
View Source
var Wait sync.WaitGroup
Global waitgroup for all goroutines in PFSD
Functions ¶
func SetPoolPasswordHash ¶
Types ¶
type FileSystemAttributes ¶
type KeyPieceMap ¶
type KeyPieceStore ¶
type KeyPieceStore map[int64]KeyPieceMap
func (KeyPieceStore) DeleteGeneration ¶
func (ks KeyPieceStore) DeleteGeneration(generation int64) error
func (KeyPieceStore) DeletePiece ¶
func (ks KeyPieceStore) DeletePiece(generation int64, nodeUUID string) error
func (KeyPieceStore) GetPiece ¶
func (ks KeyPieceStore) GetPiece(generation int64, nodeUUID string) *keyman.KeyPiece
Returns nil if the piece is not found
func (KeyPieceStore) SaveToDisk ¶
func (ks KeyPieceStore) SaveToDisk() error
Click to show internal directories.
Click to hide internal directories.