Package uniffi.cedarling_uniffi
Class Cedarling
-
- All Implemented Interfaces:
-
java.lang.AutoCloseable
,uniffi.cedarling_uniffi.CedarlingInterface
,uniffi.cedarling_uniffi.Disposable
public class Cedarling implements Disposable, AutoCloseable, CedarlingInterface
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
Cedarling.Companion
-
Field Summary
Fields Modifier and Type Field Description public final static Cedarling.Companion
Companion
-
Method Summary
Modifier and Type Method Description Unit
destroy()
Unit
close()
final Pointer
uniffiClonePointer()
AuthorizeResult
authorize(Map<String, String> tokens, String action, EntityData resource, String context)
AuthorizeResult
authorizeUnsigned(List<EntityData> principals, String action, EntityData resource, String context)
String
getLogById(String id)
List<String>
getLogIds()
List<String>
getLogsByRequestId(String requestId)
Get logs by request_id. List<String>
getLogsByRequestIdAndTag(String requestId, String tag)
Get log by request_id and tag, like composite key request_id
+log_kind
.List<String>
getLogsByTag(String tag)
Get logs by tag, like log_kind
orlog level
.List<String>
popLogs()
Unit
shutDown()
Closes the connections to the Lock Server and pushes all available logs. -
-
Method Detail
-
uniffiClonePointer
final Pointer uniffiClonePointer()
-
authorize
AuthorizeResult authorize(Map<String, String> tokens, String action, EntityData resource, String context)
-
authorizeUnsigned
AuthorizeResult authorizeUnsigned(List<EntityData> principals, String action, EntityData resource, String context)
-
getLogById
String getLogById(String id)
-
getLogsByRequestId
List<String> getLogsByRequestId(String requestId)
Get logs by request_id. Return log entries that match the given request_id.
-
getLogsByRequestIdAndTag
List<String> getLogsByRequestIdAndTag(String requestId, String tag)
Get log by request_id and tag, like composite key
request_id
+log_kind
. Tag can belog_kind
,log_level
. Return log entries that match the given request_id and tag.
-
getLogsByTag
List<String> getLogsByTag(String tag)
Get logs by tag, like
log_kind
orlog level
. Tag can belog_kind
,log_level
.
-
-
-
-