Documentation ¶
Overview ¶
Package decision_logs is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterDecisionLogsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterDecisionLogsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client DecisionLogsClient) error
- func RegisterDecisionLogsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterDecisionLogsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server DecisionLogsServer) error
- func RegisterDecisionLogsServer(s grpc.ServiceRegistrar, srv DecisionLogsServer)
- type Decision
- func (*Decision) Descriptor() ([]byte, []int)deprecated
- func (x *Decision) GetId() string
- func (x *Decision) GetOutcomes() map[string]bool
- func (x *Decision) GetPath() string
- func (x *Decision) GetPolicy() *DecisionPolicy
- func (x *Decision) GetResource() *structpb.Struct
- func (x *Decision) GetTenantId() string
- func (x *Decision) GetTimestamp() *timestamppb.Timestamp
- func (x *Decision) GetUser() *DecisionUser
- func (*Decision) ProtoMessage()
- func (x *Decision) ProtoReflect() protoreflect.Message
- func (x *Decision) Reset()
- func (x *Decision) String() string
- type DecisionLog
- type DecisionLogItem
- type DecisionLogsClient
- type DecisionLogsServer
- type DecisionLogs_GetDecisionsClient
- type DecisionLogs_GetDecisionsServer
- type DecisionPolicy
- func (*DecisionPolicy) Descriptor() ([]byte, []int)deprecated
- func (x *DecisionPolicy) GetContext() *v1.PolicyContext
- func (x *DecisionPolicy) GetRegistryDigest() string
- func (x *DecisionPolicy) GetRegistryImage() string
- func (x *DecisionPolicy) GetRegistryService() string
- func (x *DecisionPolicy) GetRegistryTag() string
- func (*DecisionPolicy) ProtoMessage()
- func (x *DecisionPolicy) ProtoReflect() protoreflect.Message
- func (x *DecisionPolicy) Reset()
- func (x *DecisionPolicy) String() string
- type DecisionUser
- func (*DecisionUser) Descriptor() ([]byte, []int)deprecated
- func (x *DecisionUser) GetContext() *v1.IdentityContext
- func (x *DecisionUser) GetEmail() string
- func (x *DecisionUser) GetId() string
- func (*DecisionUser) ProtoMessage()
- func (x *DecisionUser) ProtoReflect() protoreflect.Message
- func (x *DecisionUser) Reset()
- func (x *DecisionUser) String() string
- type ExecuteQueryRequest
- func (*ExecuteQueryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ExecuteQueryRequest) GetPage() *v1.PaginationRequest
- func (x *ExecuteQueryRequest) GetPolicyId() string
- func (x *ExecuteQueryRequest) GetTopN() int64
- func (*ExecuteQueryRequest) ProtoMessage()
- func (x *ExecuteQueryRequest) ProtoReflect() protoreflect.Message
- func (x *ExecuteQueryRequest) Reset()
- func (x *ExecuteQueryRequest) String() string
- type ExecuteQueryResponse
- func (*ExecuteQueryResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ExecuteQueryResponse) GetPage() *v1.PaginationResponse
- func (x *ExecuteQueryResponse) GetResults() []*Result
- func (*ExecuteQueryResponse) ProtoMessage()
- func (x *ExecuteQueryResponse) ProtoReflect() protoreflect.Message
- func (x *ExecuteQueryResponse) Reset()
- func (x *ExecuteQueryResponse) String() string
- type GetDecisionLogRequest
- func (*GetDecisionLogRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetDecisionLogRequest) GetName() string
- func (*GetDecisionLogRequest) ProtoMessage()
- func (x *GetDecisionLogRequest) ProtoReflect() protoreflect.Message
- func (x *GetDecisionLogRequest) Reset()
- func (x *GetDecisionLogRequest) String() string
- type GetDecisionLogResponse
- func (*GetDecisionLogResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetDecisionLogResponse) GetLog() *DecisionLog
- func (*GetDecisionLogResponse) ProtoMessage()
- func (x *GetDecisionLogResponse) ProtoReflect() protoreflect.Message
- func (x *GetDecisionLogResponse) Reset()
- func (x *GetDecisionLogResponse) String() string
- type GetDecisionsRequest
- func (*GetDecisionsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetDecisionsRequest) GetPolicyId() string
- func (x *GetDecisionsRequest) GetSince() *timestamppb.Timestamp
- func (*GetDecisionsRequest) ProtoMessage()
- func (x *GetDecisionsRequest) ProtoReflect() protoreflect.Message
- func (x *GetDecisionsRequest) Reset()
- func (x *GetDecisionsRequest) String() string
- type GetDecisionsResponse
- func (*GetDecisionsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetDecisionsResponse) GetDecision() *Decision
- func (*GetDecisionsResponse) ProtoMessage()
- func (x *GetDecisionsResponse) ProtoReflect() protoreflect.Message
- func (x *GetDecisionsResponse) Reset()
- func (x *GetDecisionsResponse) String() string
- type GetUserRequest
- type GetUserResponse
- type ListDecisionLogsRequest
- func (*ListDecisionLogsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListDecisionLogsRequest) GetPage() *v1.PaginationRequest
- func (x *ListDecisionLogsRequest) GetPolicies() []string
- func (*ListDecisionLogsRequest) ProtoMessage()
- func (x *ListDecisionLogsRequest) ProtoReflect() protoreflect.Message
- func (x *ListDecisionLogsRequest) Reset()
- func (x *ListDecisionLogsRequest) String() string
- type ListDecisionLogsResponse
- func (*ListDecisionLogsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListDecisionLogsResponse) GetPage() *v1.PaginationResponse
- func (x *ListDecisionLogsResponse) GetResults() []*DecisionLogItem
- func (*ListDecisionLogsResponse) ProtoMessage()
- func (x *ListDecisionLogsResponse) ProtoReflect() protoreflect.Message
- func (x *ListDecisionLogsResponse) Reset()
- func (x *ListDecisionLogsResponse) String() string
- type ListUsersRequest
- func (*ListUsersRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListUsersRequest) GetPage() *v1.PaginationRequest
- func (*ListUsersRequest) ProtoMessage()
- func (x *ListUsersRequest) ProtoReflect() protoreflect.Message
- func (x *ListUsersRequest) Reset()
- func (x *ListUsersRequest) String() string
- type ListUsersResponse
- func (*ListUsersResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListUsersResponse) GetPage() *v1.PaginationResponse
- func (x *ListUsersResponse) GetResults() []*UserItem
- func (*ListUsersResponse) ProtoMessage()
- func (x *ListUsersResponse) ProtoReflect() protoreflect.Message
- func (x *ListUsersResponse) Reset()
- func (x *ListUsersResponse) String() string
- type Result
- type UnimplementedDecisionLogsServer
- func (UnimplementedDecisionLogsServer) ExecuteQuery(context.Context, *ExecuteQueryRequest) (*ExecuteQueryResponse, error)
- func (UnimplementedDecisionLogsServer) GetDecisionLog(context.Context, *GetDecisionLogRequest) (*GetDecisionLogResponse, error)
- func (UnimplementedDecisionLogsServer) GetDecisions(*GetDecisionsRequest, DecisionLogs_GetDecisionsServer) error
- func (UnimplementedDecisionLogsServer) GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error)
- func (UnimplementedDecisionLogsServer) ListDecisionLogs(context.Context, *ListDecisionLogsRequest) (*ListDecisionLogsResponse, error)
- func (UnimplementedDecisionLogsServer) ListUsers(context.Context, *ListUsersRequest) (*ListUsersResponse, error)
- type UnsafeDecisionLogsServer
- type User
- type UserItem
Constants ¶
This section is empty.
Variables ¶
var DecisionLogs_ServiceDesc = grpc.ServiceDesc{ ServiceName: "aserto.decision_logs.v1.DecisionLogs", HandlerType: (*DecisionLogsServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListDecisionLogs", Handler: _DecisionLogs_ListDecisionLogs_Handler, }, { MethodName: "GetDecisionLog", Handler: _DecisionLogs_GetDecisionLog_Handler, }, { MethodName: "ListUsers", Handler: _DecisionLogs_ListUsers_Handler, }, { MethodName: "GetUser", Handler: _DecisionLogs_GetUser_Handler, }, { MethodName: "ExecuteQuery", Handler: _DecisionLogs_ExecuteQuery_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "GetDecisions", Handler: _DecisionLogs_GetDecisions_Handler, ServerStreams: true, }, }, Metadata: "aserto/decision_logs/v1/decision_logs.proto", }
DecisionLogs_ServiceDesc is the grpc.ServiceDesc for DecisionLogs service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_aserto_decision_logs_v1_decision_logs_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDecisionLogsHandler ¶
func RegisterDecisionLogsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterDecisionLogsHandler registers the http handlers for service DecisionLogs to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterDecisionLogsHandlerClient ¶
func RegisterDecisionLogsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client DecisionLogsClient) error
RegisterDecisionLogsHandlerClient registers the http handlers for service DecisionLogs to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "DecisionLogsClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "DecisionLogsClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "DecisionLogsClient" to call the correct interceptors.
func RegisterDecisionLogsHandlerFromEndpoint ¶
func RegisterDecisionLogsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterDecisionLogsHandlerFromEndpoint is same as RegisterDecisionLogsHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterDecisionLogsHandlerServer ¶
func RegisterDecisionLogsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server DecisionLogsServer) error
RegisterDecisionLogsHandlerServer registers the http handlers for service DecisionLogs to "mux". UnaryRPC :call DecisionLogsServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterDecisionLogsHandlerFromEndpoint instead.
func RegisterDecisionLogsServer ¶
func RegisterDecisionLogsServer(s grpc.ServiceRegistrar, srv DecisionLogsServer)
Types ¶
type Decision ¶ added in v0.8.4
type Decision struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // unique id, replay a decision starting with this, also useful to de-dup Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // UTC time when the decision was made Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` // Policy path used in decision User *DecisionUser `protobuf:"bytes,4,opt,name=user,proto3" json:"user,omitempty"` // info about user for whom the decision as made Policy *DecisionPolicy `protobuf:"bytes,5,opt,name=policy,proto3" json:"policy,omitempty"` // info about policy used for the decision Outcomes map[string]bool `` // outcome of the decisions specified in the policy context /* 158-byte string literal not displayed */ Resource *structpb.Struct `protobuf:"bytes,7,opt,name=resource,proto3" json:"resource,omitempty"` // the resource context used in a decision TenantId string `protobuf:"bytes,8,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"` // id of the tenant that generated the decision // contains filtered or unexported fields }
represents a decision that an authorizer performed in the past
func (*Decision) Descriptor
deprecated
added in
v0.8.4
func (*Decision) GetOutcomes ¶ added in v0.8.4
func (*Decision) GetPolicy ¶ added in v0.8.4
func (x *Decision) GetPolicy() *DecisionPolicy
func (*Decision) GetResource ¶ added in v0.8.4
func (*Decision) GetTenantId ¶ added in v0.8.49
func (*Decision) GetTimestamp ¶ added in v0.8.4
func (x *Decision) GetTimestamp() *timestamppb.Timestamp
func (*Decision) GetUser ¶ added in v0.8.4
func (x *Decision) GetUser() *DecisionUser
func (*Decision) ProtoMessage ¶ added in v0.8.4
func (*Decision) ProtoMessage()
func (*Decision) ProtoReflect ¶ added in v0.8.4
func (x *Decision) ProtoReflect() protoreflect.Message
type DecisionLog ¶
type DecisionLog struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` // contains filtered or unexported fields }
func (*DecisionLog) Descriptor
deprecated
func (*DecisionLog) Descriptor() ([]byte, []int)
Deprecated: Use DecisionLog.ProtoReflect.Descriptor instead.
func (*DecisionLog) GetUrl ¶
func (x *DecisionLog) GetUrl() string
func (*DecisionLog) ProtoMessage ¶
func (*DecisionLog) ProtoMessage()
func (*DecisionLog) ProtoReflect ¶
func (x *DecisionLog) ProtoReflect() protoreflect.Message
func (*DecisionLog) Reset ¶
func (x *DecisionLog) Reset()
func (*DecisionLog) String ¶
func (x *DecisionLog) String() string
type DecisionLogItem ¶
type DecisionLogItem struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*DecisionLogItem) Descriptor
deprecated
func (*DecisionLogItem) Descriptor() ([]byte, []int)
Deprecated: Use DecisionLogItem.ProtoReflect.Descriptor instead.
func (*DecisionLogItem) GetName ¶
func (x *DecisionLogItem) GetName() string
func (*DecisionLogItem) ProtoMessage ¶
func (*DecisionLogItem) ProtoMessage()
func (*DecisionLogItem) ProtoReflect ¶
func (x *DecisionLogItem) ProtoReflect() protoreflect.Message
func (*DecisionLogItem) Reset ¶
func (x *DecisionLogItem) Reset()
func (*DecisionLogItem) String ¶
func (x *DecisionLogItem) String() string
type DecisionLogsClient ¶
type DecisionLogsClient interface { ListDecisionLogs(ctx context.Context, in *ListDecisionLogsRequest, opts ...grpc.CallOption) (*ListDecisionLogsResponse, error) GetDecisionLog(ctx context.Context, in *GetDecisionLogRequest, opts ...grpc.CallOption) (*GetDecisionLogResponse, error) ListUsers(ctx context.Context, in *ListUsersRequest, opts ...grpc.CallOption) (*ListUsersResponse, error) GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserResponse, error) ExecuteQuery(ctx context.Context, in *ExecuteQueryRequest, opts ...grpc.CallOption) (*ExecuteQueryResponse, error) GetDecisions(ctx context.Context, in *GetDecisionsRequest, opts ...grpc.CallOption) (DecisionLogs_GetDecisionsClient, error) }
DecisionLogsClient is the client API for DecisionLogs service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewDecisionLogsClient ¶
func NewDecisionLogsClient(cc grpc.ClientConnInterface) DecisionLogsClient
type DecisionLogsServer ¶
type DecisionLogsServer interface { ListDecisionLogs(context.Context, *ListDecisionLogsRequest) (*ListDecisionLogsResponse, error) GetDecisionLog(context.Context, *GetDecisionLogRequest) (*GetDecisionLogResponse, error) ListUsers(context.Context, *ListUsersRequest) (*ListUsersResponse, error) GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error) ExecuteQuery(context.Context, *ExecuteQueryRequest) (*ExecuteQueryResponse, error) GetDecisions(*GetDecisionsRequest, DecisionLogs_GetDecisionsServer) error }
DecisionLogsServer is the server API for DecisionLogs service. All implementations should embed UnimplementedDecisionLogsServer for forward compatibility
type DecisionLogs_GetDecisionsClient ¶ added in v0.8.4
type DecisionLogs_GetDecisionsClient interface { Recv() (*GetDecisionsResponse, error) grpc.ClientStream }
type DecisionLogs_GetDecisionsServer ¶ added in v0.8.4
type DecisionLogs_GetDecisionsServer interface { Send(*GetDecisionsResponse) error grpc.ServerStream }
type DecisionPolicy ¶ added in v0.8.4
type DecisionPolicy struct { Context *v1.PolicyContext `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` // policy context used in the decision RegistryService string `protobuf:"bytes,2,opt,name=registry_service,json=registryService,proto3" json:"registry_service,omitempty"` // registry service where policy was retrieved from (e.g. opcr.io) RegistryImage string `protobuf:"bytes,3,opt,name=registry_image,json=registryImage,proto3" json:"registry_image,omitempty"` // image of the policy in the registry, including org (e.g. acmecorp/peoplefinder-abac) RegistryTag string `protobuf:"bytes,4,opt,name=registry_tag,json=registryTag,proto3" json:"registry_tag,omitempty"` // tag of the policy image (e.g. 0.8.2 or latest) RegistryDigest string `protobuf:"bytes,5,opt,name=registry_digest,json=registryDigest,proto3" json:"registry_digest,omitempty"` // digest of the policy image // contains filtered or unexported fields }
information about a policy used in a decision
func (*DecisionPolicy) Descriptor
deprecated
added in
v0.8.4
func (*DecisionPolicy) Descriptor() ([]byte, []int)
Deprecated: Use DecisionPolicy.ProtoReflect.Descriptor instead.
func (*DecisionPolicy) GetContext ¶ added in v0.8.4
func (x *DecisionPolicy) GetContext() *v1.PolicyContext
func (*DecisionPolicy) GetRegistryDigest ¶ added in v0.8.4
func (x *DecisionPolicy) GetRegistryDigest() string
func (*DecisionPolicy) GetRegistryImage ¶ added in v0.8.4
func (x *DecisionPolicy) GetRegistryImage() string
func (*DecisionPolicy) GetRegistryService ¶ added in v0.8.4
func (x *DecisionPolicy) GetRegistryService() string
func (*DecisionPolicy) GetRegistryTag ¶ added in v0.8.4
func (x *DecisionPolicy) GetRegistryTag() string
func (*DecisionPolicy) ProtoMessage ¶ added in v0.8.4
func (*DecisionPolicy) ProtoMessage()
func (*DecisionPolicy) ProtoReflect ¶ added in v0.8.4
func (x *DecisionPolicy) ProtoReflect() protoreflect.Message
func (*DecisionPolicy) Reset ¶ added in v0.8.4
func (x *DecisionPolicy) Reset()
func (*DecisionPolicy) String ¶ added in v0.8.4
func (x *DecisionPolicy) String() string
type DecisionUser ¶ added in v0.8.4
type DecisionUser struct { Context *v1.IdentityContext `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` // identity context used in the decision Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // id of the user the identity resolved to Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` // convinience human-readable identifier // contains filtered or unexported fields }
information about a user on behalf of whom a decision was made
func (*DecisionUser) Descriptor
deprecated
added in
v0.8.4
func (*DecisionUser) Descriptor() ([]byte, []int)
Deprecated: Use DecisionUser.ProtoReflect.Descriptor instead.
func (*DecisionUser) GetContext ¶ added in v0.8.4
func (x *DecisionUser) GetContext() *v1.IdentityContext
func (*DecisionUser) GetEmail ¶ added in v0.8.4
func (x *DecisionUser) GetEmail() string
func (*DecisionUser) GetId ¶ added in v0.8.4
func (x *DecisionUser) GetId() string
func (*DecisionUser) ProtoMessage ¶ added in v0.8.4
func (*DecisionUser) ProtoMessage()
func (*DecisionUser) ProtoReflect ¶ added in v0.8.4
func (x *DecisionUser) ProtoReflect() protoreflect.Message
func (*DecisionUser) Reset ¶ added in v0.8.4
func (x *DecisionUser) Reset()
func (*DecisionUser) String ¶ added in v0.8.4
func (x *DecisionUser) String() string
type ExecuteQueryRequest ¶
type ExecuteQueryRequest struct { Page *v1.PaginationRequest `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"` PolicyId string `protobuf:"bytes,2,opt,name=policy_id,json=policyId,proto3" json:"policy_id,omitempty"` TopN int64 `protobuf:"varint,3,opt,name=top_n,json=topN,proto3" json:"top_n,omitempty"` // contains filtered or unexported fields }
func (*ExecuteQueryRequest) Descriptor
deprecated
func (*ExecuteQueryRequest) Descriptor() ([]byte, []int)
Deprecated: Use ExecuteQueryRequest.ProtoReflect.Descriptor instead.
func (*ExecuteQueryRequest) GetPage ¶
func (x *ExecuteQueryRequest) GetPage() *v1.PaginationRequest
func (*ExecuteQueryRequest) GetPolicyId ¶
func (x *ExecuteQueryRequest) GetPolicyId() string
func (*ExecuteQueryRequest) GetTopN ¶
func (x *ExecuteQueryRequest) GetTopN() int64
func (*ExecuteQueryRequest) ProtoMessage ¶
func (*ExecuteQueryRequest) ProtoMessage()
func (*ExecuteQueryRequest) ProtoReflect ¶
func (x *ExecuteQueryRequest) ProtoReflect() protoreflect.Message
func (*ExecuteQueryRequest) Reset ¶
func (x *ExecuteQueryRequest) Reset()
func (*ExecuteQueryRequest) String ¶
func (x *ExecuteQueryRequest) String() string
type ExecuteQueryResponse ¶
type ExecuteQueryResponse struct { Page *v1.PaginationResponse `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"` Results []*Result `protobuf:"bytes,2,rep,name=results,proto3" json:"results,omitempty"` // contains filtered or unexported fields }
func (*ExecuteQueryResponse) Descriptor
deprecated
func (*ExecuteQueryResponse) Descriptor() ([]byte, []int)
Deprecated: Use ExecuteQueryResponse.ProtoReflect.Descriptor instead.
func (*ExecuteQueryResponse) GetPage ¶
func (x *ExecuteQueryResponse) GetPage() *v1.PaginationResponse
func (*ExecuteQueryResponse) GetResults ¶
func (x *ExecuteQueryResponse) GetResults() []*Result
func (*ExecuteQueryResponse) ProtoMessage ¶
func (*ExecuteQueryResponse) ProtoMessage()
func (*ExecuteQueryResponse) ProtoReflect ¶
func (x *ExecuteQueryResponse) ProtoReflect() protoreflect.Message
func (*ExecuteQueryResponse) Reset ¶
func (x *ExecuteQueryResponse) Reset()
func (*ExecuteQueryResponse) String ¶
func (x *ExecuteQueryResponse) String() string
type GetDecisionLogRequest ¶
type GetDecisionLogRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*GetDecisionLogRequest) Descriptor
deprecated
func (*GetDecisionLogRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetDecisionLogRequest.ProtoReflect.Descriptor instead.
func (*GetDecisionLogRequest) GetName ¶
func (x *GetDecisionLogRequest) GetName() string
func (*GetDecisionLogRequest) ProtoMessage ¶
func (*GetDecisionLogRequest) ProtoMessage()
func (*GetDecisionLogRequest) ProtoReflect ¶
func (x *GetDecisionLogRequest) ProtoReflect() protoreflect.Message
func (*GetDecisionLogRequest) Reset ¶
func (x *GetDecisionLogRequest) Reset()
func (*GetDecisionLogRequest) String ¶
func (x *GetDecisionLogRequest) String() string
type GetDecisionLogResponse ¶
type GetDecisionLogResponse struct { Log *DecisionLog `protobuf:"bytes,1,opt,name=log,proto3" json:"log,omitempty"` // contains filtered or unexported fields }
func (*GetDecisionLogResponse) Descriptor
deprecated
func (*GetDecisionLogResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetDecisionLogResponse.ProtoReflect.Descriptor instead.
func (*GetDecisionLogResponse) GetLog ¶
func (x *GetDecisionLogResponse) GetLog() *DecisionLog
func (*GetDecisionLogResponse) ProtoMessage ¶
func (*GetDecisionLogResponse) ProtoMessage()
func (*GetDecisionLogResponse) ProtoReflect ¶
func (x *GetDecisionLogResponse) ProtoReflect() protoreflect.Message
func (*GetDecisionLogResponse) Reset ¶
func (x *GetDecisionLogResponse) Reset()
func (*GetDecisionLogResponse) String ¶
func (x *GetDecisionLogResponse) String() string
type GetDecisionsRequest ¶ added in v0.8.4
type GetDecisionsRequest struct { PolicyId string `protobuf:"bytes,1,opt,name=policy_id,json=policyId,proto3" json:"policy_id,omitempty"` Since *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=since,proto3" json:"since,omitempty"` // contains filtered or unexported fields }
func (*GetDecisionsRequest) Descriptor
deprecated
added in
v0.8.4
func (*GetDecisionsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetDecisionsRequest.ProtoReflect.Descriptor instead.
func (*GetDecisionsRequest) GetPolicyId ¶ added in v0.8.4
func (x *GetDecisionsRequest) GetPolicyId() string
func (*GetDecisionsRequest) GetSince ¶ added in v0.8.4
func (x *GetDecisionsRequest) GetSince() *timestamppb.Timestamp
func (*GetDecisionsRequest) ProtoMessage ¶ added in v0.8.4
func (*GetDecisionsRequest) ProtoMessage()
func (*GetDecisionsRequest) ProtoReflect ¶ added in v0.8.4
func (x *GetDecisionsRequest) ProtoReflect() protoreflect.Message
func (*GetDecisionsRequest) Reset ¶ added in v0.8.4
func (x *GetDecisionsRequest) Reset()
func (*GetDecisionsRequest) String ¶ added in v0.8.4
func (x *GetDecisionsRequest) String() string
type GetDecisionsResponse ¶ added in v0.8.4
type GetDecisionsResponse struct { Decision *Decision `protobuf:"bytes,1,opt,name=decision,proto3" json:"decision,omitempty"` // contains filtered or unexported fields }
func (*GetDecisionsResponse) Descriptor
deprecated
added in
v0.8.4
func (*GetDecisionsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetDecisionsResponse.ProtoReflect.Descriptor instead.
func (*GetDecisionsResponse) GetDecision ¶ added in v0.8.4
func (x *GetDecisionsResponse) GetDecision() *Decision
func (*GetDecisionsResponse) ProtoMessage ¶ added in v0.8.4
func (*GetDecisionsResponse) ProtoMessage()
func (*GetDecisionsResponse) ProtoReflect ¶ added in v0.8.4
func (x *GetDecisionsResponse) ProtoReflect() protoreflect.Message
func (*GetDecisionsResponse) Reset ¶ added in v0.8.4
func (x *GetDecisionsResponse) Reset()
func (*GetDecisionsResponse) String ¶ added in v0.8.4
func (x *GetDecisionsResponse) String() string
type GetUserRequest ¶
type GetUserRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetUserRequest) Descriptor
deprecated
func (*GetUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.
func (*GetUserRequest) GetId ¶
func (x *GetUserRequest) GetId() string
func (*GetUserRequest) ProtoMessage ¶
func (*GetUserRequest) ProtoMessage()
func (*GetUserRequest) ProtoReflect ¶
func (x *GetUserRequest) ProtoReflect() protoreflect.Message
func (*GetUserRequest) Reset ¶
func (x *GetUserRequest) Reset()
func (*GetUserRequest) String ¶
func (x *GetUserRequest) String() string
type GetUserResponse ¶
type GetUserResponse struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*GetUserResponse) Descriptor
deprecated
func (*GetUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetUserResponse.ProtoReflect.Descriptor instead.
func (*GetUserResponse) GetUser ¶
func (x *GetUserResponse) GetUser() *User
func (*GetUserResponse) ProtoMessage ¶
func (*GetUserResponse) ProtoMessage()
func (*GetUserResponse) ProtoReflect ¶
func (x *GetUserResponse) ProtoReflect() protoreflect.Message
func (*GetUserResponse) Reset ¶
func (x *GetUserResponse) Reset()
func (*GetUserResponse) String ¶
func (x *GetUserResponse) String() string
type ListDecisionLogsRequest ¶
type ListDecisionLogsRequest struct { Page *v1.PaginationRequest `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"` Policies []string `protobuf:"bytes,2,rep,name=policies,proto3" json:"policies,omitempty"` // contains filtered or unexported fields }
func (*ListDecisionLogsRequest) Descriptor
deprecated
func (*ListDecisionLogsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListDecisionLogsRequest.ProtoReflect.Descriptor instead.
func (*ListDecisionLogsRequest) GetPage ¶
func (x *ListDecisionLogsRequest) GetPage() *v1.PaginationRequest
func (*ListDecisionLogsRequest) GetPolicies ¶ added in v0.0.37
func (x *ListDecisionLogsRequest) GetPolicies() []string
func (*ListDecisionLogsRequest) ProtoMessage ¶
func (*ListDecisionLogsRequest) ProtoMessage()
func (*ListDecisionLogsRequest) ProtoReflect ¶
func (x *ListDecisionLogsRequest) ProtoReflect() protoreflect.Message
func (*ListDecisionLogsRequest) Reset ¶
func (x *ListDecisionLogsRequest) Reset()
func (*ListDecisionLogsRequest) String ¶
func (x *ListDecisionLogsRequest) String() string
type ListDecisionLogsResponse ¶
type ListDecisionLogsResponse struct { Page *v1.PaginationResponse `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"` Results []*DecisionLogItem `protobuf:"bytes,2,rep,name=results,proto3" json:"results,omitempty"` // contains filtered or unexported fields }
func (*ListDecisionLogsResponse) Descriptor
deprecated
func (*ListDecisionLogsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListDecisionLogsResponse.ProtoReflect.Descriptor instead.
func (*ListDecisionLogsResponse) GetPage ¶
func (x *ListDecisionLogsResponse) GetPage() *v1.PaginationResponse
func (*ListDecisionLogsResponse) GetResults ¶
func (x *ListDecisionLogsResponse) GetResults() []*DecisionLogItem
func (*ListDecisionLogsResponse) ProtoMessage ¶
func (*ListDecisionLogsResponse) ProtoMessage()
func (*ListDecisionLogsResponse) ProtoReflect ¶
func (x *ListDecisionLogsResponse) ProtoReflect() protoreflect.Message
func (*ListDecisionLogsResponse) Reset ¶
func (x *ListDecisionLogsResponse) Reset()
func (*ListDecisionLogsResponse) String ¶
func (x *ListDecisionLogsResponse) String() string
type ListUsersRequest ¶
type ListUsersRequest struct { Page *v1.PaginationRequest `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"` // contains filtered or unexported fields }
func (*ListUsersRequest) Descriptor
deprecated
func (*ListUsersRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListUsersRequest.ProtoReflect.Descriptor instead.
func (*ListUsersRequest) GetPage ¶
func (x *ListUsersRequest) GetPage() *v1.PaginationRequest
func (*ListUsersRequest) ProtoMessage ¶
func (*ListUsersRequest) ProtoMessage()
func (*ListUsersRequest) ProtoReflect ¶
func (x *ListUsersRequest) ProtoReflect() protoreflect.Message
func (*ListUsersRequest) Reset ¶
func (x *ListUsersRequest) Reset()
func (*ListUsersRequest) String ¶
func (x *ListUsersRequest) String() string
type ListUsersResponse ¶
type ListUsersResponse struct { Page *v1.PaginationResponse `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"` Results []*UserItem `protobuf:"bytes,2,rep,name=results,proto3" json:"results,omitempty"` // contains filtered or unexported fields }
func (*ListUsersResponse) Descriptor
deprecated
func (*ListUsersResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListUsersResponse.ProtoReflect.Descriptor instead.
func (*ListUsersResponse) GetPage ¶
func (x *ListUsersResponse) GetPage() *v1.PaginationResponse
func (*ListUsersResponse) GetResults ¶
func (x *ListUsersResponse) GetResults() []*UserItem
func (*ListUsersResponse) ProtoMessage ¶
func (*ListUsersResponse) ProtoMessage()
func (*ListUsersResponse) ProtoReflect ¶
func (x *ListUsersResponse) ProtoReflect() protoreflect.Message
func (*ListUsersResponse) Reset ¶
func (x *ListUsersResponse) Reset()
func (*ListUsersResponse) String ¶
func (x *ListUsersResponse) String() string
type Result ¶
type Result struct { // Deprecated: Do not use. Log string `protobuf:"bytes,1,opt,name=log,proto3" json:"log,omitempty"` Event *Decision `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` // contains filtered or unexported fields }
func (*Result) Descriptor
deprecated
func (*Result) ProtoMessage ¶
func (*Result) ProtoMessage()
func (*Result) ProtoReflect ¶
func (x *Result) ProtoReflect() protoreflect.Message
type UnimplementedDecisionLogsServer ¶
type UnimplementedDecisionLogsServer struct { }
UnimplementedDecisionLogsServer should be embedded to have forward compatible implementations.
func (UnimplementedDecisionLogsServer) ExecuteQuery ¶
func (UnimplementedDecisionLogsServer) ExecuteQuery(context.Context, *ExecuteQueryRequest) (*ExecuteQueryResponse, error)
func (UnimplementedDecisionLogsServer) GetDecisionLog ¶
func (UnimplementedDecisionLogsServer) GetDecisionLog(context.Context, *GetDecisionLogRequest) (*GetDecisionLogResponse, error)
func (UnimplementedDecisionLogsServer) GetDecisions ¶ added in v0.8.4
func (UnimplementedDecisionLogsServer) GetDecisions(*GetDecisionsRequest, DecisionLogs_GetDecisionsServer) error
func (UnimplementedDecisionLogsServer) GetUser ¶
func (UnimplementedDecisionLogsServer) GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error)
func (UnimplementedDecisionLogsServer) ListDecisionLogs ¶
func (UnimplementedDecisionLogsServer) ListDecisionLogs(context.Context, *ListDecisionLogsRequest) (*ListDecisionLogsResponse, error)
func (UnimplementedDecisionLogsServer) ListUsers ¶
func (UnimplementedDecisionLogsServer) ListUsers(context.Context, *ListUsersRequest) (*ListUsersResponse, error)
type UnsafeDecisionLogsServer ¶
type UnsafeDecisionLogsServer interface {
// contains filtered or unexported methods
}
UnsafeDecisionLogsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DecisionLogsServer will result in compilation errors.
type User ¶
type User struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type UserItem ¶
type UserItem struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // contains filtered or unexported fields }
func (*UserItem) Descriptor
deprecated
func (*UserItem) GetUpdatedAt ¶
func (x *UserItem) GetUpdatedAt() *timestamppb.Timestamp
func (*UserItem) ProtoMessage ¶
func (*UserItem) ProtoMessage()
func (*UserItem) ProtoReflect ¶
func (x *UserItem) ProtoReflect() protoreflect.Message