Module: CommandTower::Messaging::Endpoints
- Defined in:
- app/services/command_tower/messaging/endpoints.rb,
app/services/command_tower/messaging/endpoints/error.rb,
app/services/command_tower/messaging/endpoints/query.rb,
app/services/command_tower/messaging/endpoints/create.rb,
app/services/command_tower/messaging/endpoints/revoke.rb,
app/services/command_tower/messaging/endpoints/replace.rb,
app/services/command_tower/messaging/endpoints/lifecycle.rb,
app/services/command_tower/messaging/endpoints/safe_view.rb,
app/services/command_tower/messaging/endpoints/secret_box.rb,
app/services/command_tower/messaging/endpoints/validators.rb,
app/services/command_tower/messaging/endpoints/persistence.rb,
app/services/command_tower/messaging/endpoints/channel_gate.rb,
app/services/command_tower/messaging/endpoints/mark_invalid.rb,
app/services/command_tower/messaging/endpoints/verification.rb,
app/services/command_tower/messaging/endpoints/fingerprinter.rb,
app/services/command_tower/messaging/endpoints/mark_verified.rb,
app/services/command_tower/messaging/endpoints/secret_reader.rb,
app/services/command_tower/messaging/endpoints/conflict_error.rb,
app/services/command_tower/messaging/endpoints/not_found_error.rb,
app/services/command_tower/messaging/endpoints/pushover/verify.rb,
app/services/command_tower/messaging/endpoints/validators/push.rb,
app/services/command_tower/messaging/endpoints/validation_error.rb,
app/services/command_tower/messaging/endpoints/begin_verification.rb,
app/services/command_tower/messaging/endpoints/reset_verification.rb,
app/services/command_tower/messaging/endpoints/validators/pushover.rb,
app/services/command_tower/messaging/endpoints/verification_transition.rb,
app/services/command_tower/messaging/endpoints/invalid_transition_error.rb,
app/services/command_tower/messaging/endpoints/mark_verification_failed.rb,
app/services/command_tower/messaging/endpoints/verification_failed_error.rb
Overview
Safe owner-facing Endpoint Platform façade.
Decrypt-at-use lives on Endpoints::SecretReader (internal).
Defined Under Namespace
Modules: ChannelGate, Fingerprinter, Lifecycle, Persistence, Pushover, Validators, Verification
Classes: BeginVerification, ConflictError, Create, Error, InvalidTransitionError, MarkInvalid, MarkVerificationFailed, MarkVerified, NotFoundError, Query, Replace, ResetVerification, Revoke, SafeView, SecretBox, SecretReader, ValidationError, VerificationFailedError, VerificationTransition
Class Method Summary
collapse
-
.begin_verification(owner_user_id:, endpoint_id:) ⇒ Object
-
.create(owner_user_id:, channel_key:, address: nil, credentials: nil) ⇒ Object
-
.list(owner_user_id:, channel_key: nil) ⇒ Object
-
.mark_invalid(owner_user_id:, endpoint_id:) ⇒ Object
-
.mark_verification_failed(owner_user_id:, endpoint_id:) ⇒ Object
-
.mark_verified(owner_user_id:, endpoint_id:) ⇒ Object
-
.replace(owner_user_id:, channel_key: nil, endpoint_id: nil, address: nil, credentials: nil) ⇒ Object
-
.reset_verification(owner_user_id:, endpoint_id:) ⇒ Object
-
.revoke(owner_user_id:, endpoint_id:) ⇒ Object
-
.show(owner_user_id:, endpoint_id:) ⇒ Object
-
.verify_pushover!(owner_user_id:, endpoint_id:) ⇒ Object
Class Method Details
.begin_verification(owner_user_id:, endpoint_id:) ⇒ Object
34
35
36
|
# File 'app/services/command_tower/messaging/endpoints.rb', line 34
def begin_verification(owner_user_id:, endpoint_id:)
BeginVerification.call(owner_user_id:, endpoint_id:)
end
|
.create(owner_user_id:, channel_key:, address: nil, credentials: nil) ⇒ Object
10
11
12
|
# File 'app/services/command_tower/messaging/endpoints.rb', line 10
def create(owner_user_id:, channel_key:, address: nil, credentials: nil)
Create.call(owner_user_id:, channel_key:, address:, credentials:)
end
|
.list(owner_user_id:, channel_key: nil) ⇒ Object
22
23
24
|
# File 'app/services/command_tower/messaging/endpoints.rb', line 22
def list(owner_user_id:, channel_key: nil)
Query.list(owner_user_id:, channel_key:)
end
|
.mark_invalid(owner_user_id:, endpoint_id:) ⇒ Object
30
31
32
|
# File 'app/services/command_tower/messaging/endpoints.rb', line 30
def mark_invalid(owner_user_id:, endpoint_id:)
MarkInvalid.call(owner_user_id:, endpoint_id:)
end
|
.mark_verification_failed(owner_user_id:, endpoint_id:) ⇒ Object
42
43
44
|
# File 'app/services/command_tower/messaging/endpoints.rb', line 42
def mark_verification_failed(owner_user_id:, endpoint_id:)
MarkVerificationFailed.call(owner_user_id:, endpoint_id:)
end
|
.mark_verified(owner_user_id:, endpoint_id:) ⇒ Object
38
39
40
|
# File 'app/services/command_tower/messaging/endpoints.rb', line 38
def mark_verified(owner_user_id:, endpoint_id:)
MarkVerified.call(owner_user_id:, endpoint_id:)
end
|
.replace(owner_user_id:, channel_key: nil, endpoint_id: nil, address: nil, credentials: nil) ⇒ Object
14
15
16
|
# File 'app/services/command_tower/messaging/endpoints.rb', line 14
def replace(owner_user_id:, channel_key: nil, endpoint_id: nil, address: nil, credentials: nil)
Replace.call(owner_user_id:, channel_key:, endpoint_id:, address:, credentials:)
end
|
.reset_verification(owner_user_id:, endpoint_id:) ⇒ Object
46
47
48
|
# File 'app/services/command_tower/messaging/endpoints.rb', line 46
def reset_verification(owner_user_id:, endpoint_id:)
ResetVerification.call(owner_user_id:, endpoint_id:)
end
|
.revoke(owner_user_id:, endpoint_id:) ⇒ Object
18
19
20
|
# File 'app/services/command_tower/messaging/endpoints.rb', line 18
def revoke(owner_user_id:, endpoint_id:)
Revoke.call(owner_user_id:, endpoint_id:)
end
|
.show(owner_user_id:, endpoint_id:) ⇒ Object
26
27
28
|
# File 'app/services/command_tower/messaging/endpoints.rb', line 26
def show(owner_user_id:, endpoint_id:)
Query.show(owner_user_id:, endpoint_id:)
end
|
.verify_pushover!(owner_user_id:, endpoint_id:) ⇒ Object
50
51
52
|
# File 'app/services/command_tower/messaging/endpoints.rb', line 50
def verify_pushover!(owner_user_id:, endpoint_id:)
Pushover::Verify.call(owner_user_id:, endpoint_id:)
end
|