package
0.0.0-20240422041829-e8c9bfedff66
Repository: https://github.com/nttdots/go-dots.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
* Activate data channel acl with activationType = 'activate-when-mitigating'
*/.
* Check conflict with data channel acl accept list
* return
* true: if existed Acl contains action is accept and source prefix same with source prefix of call home
* false: if Acl doesn't contain action is accept and source prefix same with source prefix of call home
*/.
* Create or update a mitigation from client PUT request
* Create mitigation:
* Have no any mitigation in DB that match with request customerId, cuid and mid.
* DeActivate data channel acl
*/.
* Set default configured values to session config and return
*/.
* Delete mitigation out of DB after terminating process
* parameter:
* customerId the customer id
* cuid the client identifier
* mid the mitigation id
* mitigationScopeId the mitigation scope id
* return:
* err the error
*/.
* Get all active mitigations with appended alias data (if have)
* return:
* scopes: list of active mitigations scope
* err: error
*/.
* Get session config by customer
*/.
* Handle Signal Channel Control Filtering
* parameter:
* customer the client
* cuid the id of the client
* aclList list of acl that need to be updated
* return:
* res the response
* err error
*/.
No description provided by the author
* Reset to default values for session configuration that are expired
* Params:
* lifetimeInterval the interval time for checking session configuration
*/.
No description provided by the author
* Re-check ip-address range for mitigation requests by customer id
* parameter:
* customerId the id of updated customer
* return:
* err error
*/.
* Trigger mitigation mechanism: activate all pre-configured mitigations (status = 8: triggered) when session lost
* parameter:
* customer current requesting client
*/.
* Update mitigation status (active -> inactive: Cancel protection, inactive -> active: call Blocker)
* Active status: 1: InProgress, 2: SuccessfullyMitigated, 3: Stopped, 4: ActiveButTerminating
* Inactive status: 6: Terminated, 7: Withdrawn, 8: Triggered
* parameter:
* customerId the customer id
* cuid the client identifier
* mid the mitigation id
* mitigationScopeId the mitigation scope id
* newStatus the mitigation status to update
* isCheckActiveProtection the isCheckActiveProtection
* return:
* error the error
*/.
* Validate request mitigation scope and check overlap for it with other active mitigations
* parameter:
* customer current requesting client
* requestScope request mitigation scope
* currentScope current mitigation scope that has the same ids (customer-id, cuid, mid) with request mitigation
* aliases list of alias scope data received from data channel
* return:
* bool result of validating and checking process
* ConflictInformation conflict information when overlap occur
* err error
*/.
# Structs
* Controller super class.
* Error API response
*/.
* Controller for the mitigationRequest API.
No description provided by the author
* Regular API request
*/.
* Regular API response
*/.
* Controller for the session_configuration API.
* Parent controller for the mitigationRequest and sessionConfiguration APIs
*/.
* Controller for the telemetryPreMitigationRequest API.
* Controller for the telemetryRequest API.
# Interfaces
* Controller API interface.
# Type aliases
No description provided by the author