# Functions
AllocConnection will allocate a Connection.
AllocSession will allocate a Session.
AllocSessionHostSet will allocate a SessionHostSetHost.
AllocSessionTargetAddress will allocate a SessionTargetAddress.
AllocSessionWorkerProtocol will allocate a SessionHostSetHost.
AuthorizeConnection is a domain service function that will create a Connection for a session if the following criteria are met: * The session is active.
CloseConnections is a domain service function that: * closes requested connections * uses the sessionId of the connection to see if the session meets conditions for termination.
ConnectionStatusFromProtoVal is the reverse of ConnectionStatus.ProtoVal.
No description provided by the author
DeriveED25519Key generates a key based on the project's session DEK, the requesting user, and the generated job ID.
List lists up to page size sessions, filtering out entries that do not pass the filter item function.
ListPage lists up to page size sessions, filtering out entries that do not pass the filter item function.
ListRefresh lists up to page size sessions, filtering out entries that do not pass the filter item function.
ListRefreshPage lists up to page size sessions, filtering out entries that do not pass the filter item function.
New creates a new in memory session.
NewConnection creates a new in memory connection.
NewConnectionRepository creates a new session Connection Repository.
NewDynamicCredential creates a new in memory Credential representing the relationship between session and a credential library.
NewRepository creates a new session Repository.
NewSessionHostSetHost creates a new in memory session to host set & host association.
NewSessionTargetAddress creates a new in memory session target address.
NewSessionWorkerProtocol creates a new in-memory session to protocol worker association.
NewState creates a new in memory session state.
NewStaticCredential creates a new in memory Credential representing the relationship between session a credential and the purpose of the credential.
RegisterJobs registers session related jobs with the provided scheduler.
TestCert is a temporary test func that intentionally doesn't take testing.T as a parameter.
TestConnection creates a test connection for the sessionId in the repository.
TestDefaultSession creates a test session in the repository using defaults.
TestListSessions returns a list of sessions and the timestamp of the query for testing purposes.
TestSession creates a test session composed of c in the repository.
TestSessionHostSetHost creates a test session to host set host association for the sessionId in the repository.
TestSessionParams returns an initialized ComposedOf which can be used to create a session in the repository.
TestSessionTargetAddress creates a test session to target address association for the sessionId in the repository.
No description provided by the author
No description provided by the author
TestState creates a test state for the sessionId in the repository.
TestTofu will create a test "trust on first use" token.
WithDbOpts passes through given DB options to the DB layer.
WithExpirationTime allows specifying an expiration time for the session.
WithIgnoreDecryptionFailures is used to ignore decryption failures when doing lookups.
WithLimit provides an option to provide a limit.
WithOrderByCreateTime provides an option to specify ordering by the CreateTime field.
WithPermissions is used to include user permissions when constructing a Repository.
WithProjectIds allows specifying a project ID criteria for the function.
WithRandomReader is used to configure the random source to use when generating secrets.
WithSessionIds allows the specification of the session ids to use for the operation.
WithStartPageAfterItem is used to paginate over the results.
WithTerminated is used to include terminated sessions in a list request.
WithTestTofu allows specifying a test tofu for a test session.
WithUserId allows specifying a user ID criteria for the function.
WithWorkerStateDelay is used by queries to account for a delay in state propagation between worker and controller.
WorkerStatusReport is a domain service function that, given a Worker's session state reports, performs a few tasks: 1.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ConnectionPrefix for connection PK ids.
ConnectionStatePrefix for connection state PK ids.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
StatePrefix for state PK ids.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Utility state not valid in the DB.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
CloseWith defines the boundary data that is saved in the repo when the worker closes a connection between the client and the endpoint.
ComposedOf defines the boundary data that is referenced to compose a session.
Connection contains information about session's connection to a target.
ConnectionRepository is the session connection database repository.
ConnectWith defines the boundary data that is saved in the repo when the worker has established a connection between the client and the endpoint.
A DynamicCredential represents the relationship between a session, a credential, and the credential library where the credential was retrieved plus the purpose of the credential.
Repository is the session database repository.
Session contains information about a user's session with a target.
SessionHostSetHost contains information about a user's session with a target that has a host source association.
SessionTargetAddress contains information about a user's session with a target that has a direct network address association.
SessionWorkerProtocol contains information about a chosen protocol-aware worker for a session.
State of the session.
StateReport is used to report on the state of a Session.
A StaticCredential represents the relationship between a session, a credential and the purpose of the credential.
# Interfaces
Clonable provides a cloning interface.
# Type aliases
ClosedReason of the connection.
ConnectionStatus of the connection's state.
Credential represents the credential data which is sent to the worker.
Option - how Options are passed as arguments.
RepositoryFactory is a function that creates a Repository.
Status of the session's state.
TerminationReason of the session.