Skip to content

Commit a1e987c

Browse files
committed
Updated all doc.go files to latest status, should reflect pluto's current capabilities now.
1 parent 3ef955b commit a1e987c

File tree

7 files changed

+28
-23
lines changed

7 files changed

+28
-23
lines changed

auth/doc.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
/*
22
Package auth defines potentially multiple mechanisms to determine whether supplied
3-
user credentials via an IMAP session can be found in a defined user information system.
4-
Examples include an authenticator based on a user database in a PostgreSQL database and
5-
a simple lookup function if username and password match.
3+
user credentials in an IMAP session can be found in a defined user information system.
4+
Examples include an authenticator based on a user table in a PostgreSQL database and
5+
a simple (potentially insecure) plain user text file. It is easily possible to implement
6+
new authenticators that fit specific requirements.
67
*/
78
package auth

comm/doc.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
/*
2-
Package comm implements network communication that is reliable and causally-ordered to
3-
a group of nodes and respective receiving parts.
2+
Package comm implements network communication capabilities that are reliable and
3+
causally-ordered among multiple nodes. Vector clocks are used to ensure causality.
4+
Currently, communication is blocking on a sending node that fails to deliver an
5+
earlier message. Numerous message formats and required parses are provided to
6+
transform received marshalled CRDT messages into structured ones.
47
*/
58
package comm

config/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
22
Package config provides functions to read in various configuration files into definded types.
3-
This includes the main configuration file specifying all details about the distributed setup of pluto.
3+
This includes the main configuration file specifying all details about a distributed setup of pluto.
44
*/
55
package config

crdt/doc.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/*
2-
Package crdt implements the needed operation-based observed-removed set (ORSet) structure
3-
upon that the CmRDT parts of pluto are built. Please note, that for correct operation
2+
Package crdt implements the operation-based observed-removed set (ORSet) structure
3+
upon that the CmRDT parts of pluto are built. Please note that for correct operation
44
and results we expect the broadcast communication to all other replicas to be reliable
5-
and causally-ordered.
5+
and causally-ordered as provided by pluto's package comm.
66
7-
The operation-based ORSet implementation of this package is a practical derivation from
8-
its specification by Shapiro, Preguiça, Baquero and Zawirski, available under:
7+
The operation-based ORSet implementation of this package is a practical derivation
8+
from its specification by Shapiro, Preguiça, Baquero and Zawirski, available under:
99
https://hal.inria.fr/inria-00555588/document
1010
*/
1111
package crdt

crypto/doc.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/*
2-
Package crypto provides the basis for secure communication in pluto. Other than making proper TLS
3-
configurations for public as well as internal usage available, it also provides a script to set up
4-
the needed internal PKI for secure and authenticated communication between pluto's nodes.
2+
Package crypto provides the basis for secure communication in pluto. Other than defining
3+
proper TLS configurations for public as well as internal use, it also provides a script
4+
to set up major parts of a PKI used internally for secure and authenticated communication
5+
among the pluto nodes.
56
*/
67
package crypto

imap/doc.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
/*
2-
Package imap implements all three node types a pluto setup consists of: a distributor node,
3-
multiple worker nodes and a storage node.
2+
Package imap implements all three node types a pluto setup consists of: distributor, worker,
3+
and storage.
44
55
Handler functions for the various implemented IMAP commands usually return a boolean value
66
indicating whether correct communication between pluto and connected clients was achieved
7-
but not whether commands could been handled correct according to IMAP semantics. This means,
8-
that if a fatal error occurred during handling e.g. a LOGIN request which prevents the system
9-
with a high probability to handle future commands correctly as well, the responsible handler
10-
function would return false. But in case an user error occurred such as a missing name and/or
7+
but not whether commands were handled correctly according to IMAP semantics. This means that
8+
if a fatal error occurred during handling e.g. a LOGIN request which prevents the system with
9+
a high probability from handling future commands correctly as well, the responsible handler
10+
function will return false. But in case an user error occurred such as a missing name and/or
1111
password accompanying the LOGIN command and pluto was able to send back a useful error message
12-
to the client, this function would still return true because communications went according to
13-
planned handling pipeline.
12+
to the client, this function returns true because communication went according to planned
13+
handling pipeline.
1414
1515
Please refer to https://tools.ietf.org/html/rfc3501#section-3 for full documentation
1616
on the states and https://tools.ietf.org/html/rfc3501 for the full IMAP v4 rev1 RFC.

utils/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
22
Package utils provides smaller and independent helper functions which are needed
3-
at various places throughout the code base.
3+
in various places throughout the code base.
44
*/
55
package utils

0 commit comments

Comments
 (0)