Interface MirrorAccessController
public interface MirrorAccessController
A mirror access controller that can allow or disallow access to the remote repositories for mirroring.
-
Method Summary
Modifier and TypeMethodDescriptionAllow access to a Git repository URI that matches the specified pattern.Disallow access to a Git repository URI that matches the specified pattern.default CompletableFuture
<Boolean> Check whether the specifiedMirror
is allowed to be mirrored.Check whether the specified Git repository URIs are allowed to be mirrored.Check whether the specified Git repository URI is allowed to be mirrored.default CompletableFuture
<Boolean> Check whether the specified Git repository URI is allowed to be mirrored.
-
Method Details
-
allow
Allow access to a Git repository URI that matches the specified pattern.- Parameters:
targetPattern
- the pattern to match the Git repository URIreason
- the reason for allowing accessorder
- the order of the access control. The lower the order, the higher the priority.
-
disallow
Disallow access to a Git repository URI that matches the specified pattern.- Parameters:
targetPattern
- the pattern to match the Git repository URIreason
- the reason for disallowing accessorder
- the order of the access control. The lower the order, the higher the priority.
-
isAllowed
Check whether the specified Git repository URI is allowed to be mirrored. -
isAllowed
Check whether the specified Git repository URI is allowed to be mirrored. -
isAllowed
Check whether the specifiedMirror
is allowed to be mirrored. -
isAllowed
Check whether the specified Git repository URIs are allowed to be mirrored.
-