Skip to content

Commit a80f247

Browse files
committed
rename Docs directory, add Security page
1 parent 0cbfc23 commit a80f247

23 files changed

+106
-17
lines changed

InternalPlugins/FishyDocs/Plugins/FishyDocsPlugin/plugin.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import PackagePlugin
44
@main struct FishyDocsBuildPlugin: BuildToolPlugin {
55
func createBuildCommands(context: PluginContext, target: Target) async throws -> [Command] {
66
let genSourcesDir = context.pluginWorkDirectory
7-
let doccBasePath = "\(context.package.directory)/Sources/DistributedActors/DistributedActors.docc"
7+
let doccBasePath = "\(context.package.directory)/Sources/DistributedActors/Docs.docc"
88

99
let mdFiles = try FileManager.default
1010
.contentsOfDirectory(atPath: doccBasePath)

Sources/DistributedActors/ClusterSystem.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ public class ClusterSystem: DistributedActorSystem, @unchecked Sendable {
460460
}
461461
}
462462

463-
/// Suspends until the ``ClusterSystem`` is terminated by a call to ``shutdown(queue:)``.
463+
/// Suspends until the ``ClusterSystem`` is terminated by a call to ``shutdown()``.
464464
public var terminated: Void {
465465
get async throws {
466466
try await Shutdown(receptacle: self.shutdownReceptacle).wait()

Sources/DistributedActors/ClusterSystemSettings.swift

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,17 @@ public struct ClusterSystemSettings {
175175
// ==== ------------------------------------------------------------------------------------------------------------
176176
// MARK: TLS & Security settings
177177

178-
/// If set, all communication with other nodes will be secured using TLS
178+
/// If set, all communication with other nodes will be secured using TLS.
179+
///
180+
/// The configuration is a `NIOSSL.TLSConfiguration`, so please refer to
181+
/// [swift-nio-ssl](https://github.com/apple/swift-nio-ssl) documentation for more details about it.
182+
///
183+
/// - SeeAlso: `NIOSSL.NIOSSLContext`
179184
public var tls: TLSConfiguration?
180185

186+
/// Callback invoked when a passphrase is required for TLS.
187+
///
188+
/// - SeeAlso: `NIOSSL.NIOSSLContext`
181189
public var tlsPassphraseCallback: NIOSSLPassphraseCallback<[UInt8]>?
182190

183191
// ==== ------------------------------------------------------------------------------------------------------------

Sources/DistributedActors/DistributedActors.docc/ClusterSingleton.md renamed to Sources/DistributedActors/Docs.docc/ClusterSingleton.md

File renamed without changes.

Sources/DistributedActors/DistributedActors.docc/Clustering.md renamed to Sources/DistributedActors/Docs.docc/Clustering.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ design your distributed actors with idempotency (the resilience of a method bein
193193

194194
By default, to avoid "hanging" a remote caller forever on a suspended remote call as the recipient node fails to reply to it,
195195
for example because it (or the network itself), is currently unresponsive, remote calls have a default timeout configured.
196-
If no reply is received within this duration, the call will fail with a ``RemoteCallError/timedOut(_:_:)``.
196+
If no reply is received within this duration, the call will fail with a ``RemoteCallError``.
197197

198198
You can configure the default timeout used by the cluster system during its initialization:
199199

Sources/DistributedActors/DistributedActors.docc/Introduction.md renamed to Sources/DistributedActors/Docs.docc/Introduction.md

File renamed without changes.

Sources/DistributedActors/DistributedActors.docc/Lifecycle.md renamed to Sources/DistributedActors/Docs.docc/Lifecycle.md

File renamed without changes.

Sources/DistributedActors/DistributedActors.docc/Observability.md renamed to Sources/DistributedActors/Docs.docc/Observability.md

File renamed without changes.

Sources/DistributedActors/DistributedActors.docc/Receptionist.md renamed to Sources/DistributedActors/Docs.docc/Receptionist.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,3 @@ distributed actor Boss: LifecycleWatch {
101101
}
102102
```
103103

104-
## Topics
105-
106-
### <!--@START_MENU_TOKEN@-->Group<!--@END_MENU_TOKEN@-->
107-
108-
- <!--@START_MENU_TOKEN@-->``Symbol``<!--@END_MENU_TOKEN@-->

Sources/DistributedActors/DistributedActors.docc/Resources/cluster_lifecycle copy.png renamed to Sources/DistributedActors/Docs.docc/Resources/cluster_lifecycle copy.png

File renamed without changes.

0 commit comments

Comments
 (0)