Documentation ¶
Overview ¶
Package svcv1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterCerbosAdminServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterCerbosAdminServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CerbosAdminServiceClient) error
- func RegisterCerbosAdminServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterCerbosAdminServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server CerbosAdminServiceServer) error
- func RegisterCerbosAdminServiceServer(s grpc.ServiceRegistrar, srv CerbosAdminServiceServer)
- func RegisterCerbosPlaygroundServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterCerbosPlaygroundServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, ...) error
- func RegisterCerbosPlaygroundServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterCerbosPlaygroundServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, ...) error
- func RegisterCerbosPlaygroundServiceServer(s grpc.ServiceRegistrar, srv CerbosPlaygroundServiceServer)
- func RegisterCerbosServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterCerbosServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CerbosServiceClient) error
- func RegisterCerbosServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterCerbosServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server CerbosServiceServer) error
- func RegisterCerbosServiceServer(s grpc.ServiceRegistrar, srv CerbosServiceServer)
- type CerbosAdminServiceClient
- type CerbosAdminServiceServer
- type CerbosAdminService_ListAuditLogEntriesClient
- type CerbosAdminService_ListAuditLogEntriesServer
- type CerbosPlaygroundServiceClient
- type CerbosPlaygroundServiceServer
- type CerbosServiceClient
- type CerbosServiceServer
- type UnimplementedCerbosAdminServiceServer
- func (UnimplementedCerbosAdminServiceServer) AddOrUpdatePolicy(context.Context, *v1.AddOrUpdatePolicyRequest) (*v11.AddOrUpdatePolicyResponse, error)
- func (UnimplementedCerbosAdminServiceServer) AddOrUpdateSchema(context.Context, *v1.AddOrUpdateSchemaRequest) (*v11.AddOrUpdateSchemaResponse, error)
- func (UnimplementedCerbosAdminServiceServer) DeleteSchema(context.Context, *v1.DeleteSchemaRequest) (*v11.DeleteSchemaResponse, error)
- func (UnimplementedCerbosAdminServiceServer) DisablePolicy(context.Context, *v1.DisablePolicyRequest) (*v11.DisablePolicyResponse, error)
- func (UnimplementedCerbosAdminServiceServer) EnablePolicy(context.Context, *v1.EnablePolicyRequest) (*v11.EnablePolicyResponse, error)
- func (UnimplementedCerbosAdminServiceServer) GetPolicy(context.Context, *v1.GetPolicyRequest) (*v11.GetPolicyResponse, error)
- func (UnimplementedCerbosAdminServiceServer) GetSchema(context.Context, *v1.GetSchemaRequest) (*v11.GetSchemaResponse, error)
- func (UnimplementedCerbosAdminServiceServer) InspectPolicies(context.Context, *v1.InspectPoliciesRequest) (*v11.InspectPoliciesResponse, error)
- func (UnimplementedCerbosAdminServiceServer) ListAuditLogEntries(*v1.ListAuditLogEntriesRequest, CerbosAdminService_ListAuditLogEntriesServer) error
- func (UnimplementedCerbosAdminServiceServer) ListPolicies(context.Context, *v1.ListPoliciesRequest) (*v11.ListPoliciesResponse, error)
- func (UnimplementedCerbosAdminServiceServer) ListSchemas(context.Context, *v1.ListSchemasRequest) (*v11.ListSchemasResponse, error)
- func (UnimplementedCerbosAdminServiceServer) ReloadStore(context.Context, *v1.ReloadStoreRequest) (*v11.ReloadStoreResponse, error)
- type UnimplementedCerbosPlaygroundServiceServer
- func (UnimplementedCerbosPlaygroundServiceServer) PlaygroundEvaluate(context.Context, *v1.PlaygroundEvaluateRequest) (*v11.PlaygroundEvaluateResponse, error)
- func (UnimplementedCerbosPlaygroundServiceServer) PlaygroundProxy(context.Context, *v1.PlaygroundProxyRequest) (*v11.PlaygroundProxyResponse, error)
- func (UnimplementedCerbosPlaygroundServiceServer) PlaygroundTest(context.Context, *v1.PlaygroundTestRequest) (*v11.PlaygroundTestResponse, error)
- func (UnimplementedCerbosPlaygroundServiceServer) PlaygroundValidate(context.Context, *v1.PlaygroundValidateRequest) (*v11.PlaygroundValidateResponse, error)
- type UnimplementedCerbosServiceServer
- func (UnimplementedCerbosServiceServer) CheckResourceBatch(context.Context, *v1.CheckResourceBatchRequest) (*v11.CheckResourceBatchResponse, error)
- func (UnimplementedCerbosServiceServer) CheckResourceSet(context.Context, *v1.CheckResourceSetRequest) (*v11.CheckResourceSetResponse, error)
- func (UnimplementedCerbosServiceServer) CheckResources(context.Context, *v1.CheckResourcesRequest) (*v11.CheckResourcesResponse, error)
- func (UnimplementedCerbosServiceServer) PlanResources(context.Context, *v1.PlanResourcesRequest) (*v11.PlanResourcesResponse, error)
- func (UnimplementedCerbosServiceServer) ServerInfo(context.Context, *v1.ServerInfoRequest) (*v11.ServerInfoResponse, error)
- type UnsafeCerbosAdminServiceServer
- type UnsafeCerbosPlaygroundServiceServer
- type UnsafeCerbosServiceServer
Constants ¶
const ( CerbosService_CheckResourceSet_FullMethodName = "/cerbos.svc.v1.CerbosService/CheckResourceSet" CerbosService_CheckResourceBatch_FullMethodName = "/cerbos.svc.v1.CerbosService/CheckResourceBatch" CerbosService_CheckResources_FullMethodName = "/cerbos.svc.v1.CerbosService/CheckResources" CerbosService_ServerInfo_FullMethodName = "/cerbos.svc.v1.CerbosService/ServerInfo" CerbosService_PlanResources_FullMethodName = "/cerbos.svc.v1.CerbosService/PlanResources" )
const ( CerbosAdminService_AddOrUpdatePolicy_FullMethodName = "/cerbos.svc.v1.CerbosAdminService/AddOrUpdatePolicy" CerbosAdminService_InspectPolicies_FullMethodName = "/cerbos.svc.v1.CerbosAdminService/InspectPolicies" CerbosAdminService_ListPolicies_FullMethodName = "/cerbos.svc.v1.CerbosAdminService/ListPolicies" CerbosAdminService_GetPolicy_FullMethodName = "/cerbos.svc.v1.CerbosAdminService/GetPolicy" CerbosAdminService_DisablePolicy_FullMethodName = "/cerbos.svc.v1.CerbosAdminService/DisablePolicy" CerbosAdminService_EnablePolicy_FullMethodName = "/cerbos.svc.v1.CerbosAdminService/EnablePolicy" CerbosAdminService_ListAuditLogEntries_FullMethodName = "/cerbos.svc.v1.CerbosAdminService/ListAuditLogEntries" CerbosAdminService_AddOrUpdateSchema_FullMethodName = "/cerbos.svc.v1.CerbosAdminService/AddOrUpdateSchema" CerbosAdminService_ListSchemas_FullMethodName = "/cerbos.svc.v1.CerbosAdminService/ListSchemas" CerbosAdminService_GetSchema_FullMethodName = "/cerbos.svc.v1.CerbosAdminService/GetSchema" CerbosAdminService_DeleteSchema_FullMethodName = "/cerbos.svc.v1.CerbosAdminService/DeleteSchema" CerbosAdminService_ReloadStore_FullMethodName = "/cerbos.svc.v1.CerbosAdminService/ReloadStore" )
const ( CerbosPlaygroundService_PlaygroundValidate_FullMethodName = "/cerbos.svc.v1.CerbosPlaygroundService/PlaygroundValidate" CerbosPlaygroundService_PlaygroundTest_FullMethodName = "/cerbos.svc.v1.CerbosPlaygroundService/PlaygroundTest" CerbosPlaygroundService_PlaygroundEvaluate_FullMethodName = "/cerbos.svc.v1.CerbosPlaygroundService/PlaygroundEvaluate" CerbosPlaygroundService_PlaygroundProxy_FullMethodName = "/cerbos.svc.v1.CerbosPlaygroundService/PlaygroundProxy" )
Variables ¶
var CerbosAdminService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "cerbos.svc.v1.CerbosAdminService", HandlerType: (*CerbosAdminServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "AddOrUpdatePolicy", Handler: _CerbosAdminService_AddOrUpdatePolicy_Handler, }, { MethodName: "InspectPolicies", Handler: _CerbosAdminService_InspectPolicies_Handler, }, { MethodName: "ListPolicies", Handler: _CerbosAdminService_ListPolicies_Handler, }, { MethodName: "GetPolicy", Handler: _CerbosAdminService_GetPolicy_Handler, }, { MethodName: "DisablePolicy", Handler: _CerbosAdminService_DisablePolicy_Handler, }, { MethodName: "EnablePolicy", Handler: _CerbosAdminService_EnablePolicy_Handler, }, { MethodName: "AddOrUpdateSchema", Handler: _CerbosAdminService_AddOrUpdateSchema_Handler, }, { MethodName: "ListSchemas", Handler: _CerbosAdminService_ListSchemas_Handler, }, { MethodName: "GetSchema", Handler: _CerbosAdminService_GetSchema_Handler, }, { MethodName: "DeleteSchema", Handler: _CerbosAdminService_DeleteSchema_Handler, }, { MethodName: "ReloadStore", Handler: _CerbosAdminService_ReloadStore_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "ListAuditLogEntries", Handler: _CerbosAdminService_ListAuditLogEntries_Handler, ServerStreams: true, }, }, Metadata: "cerbos/svc/v1/svc.proto", }
CerbosAdminService_ServiceDesc is the grpc.ServiceDesc for CerbosAdminService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var CerbosPlaygroundService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "cerbos.svc.v1.CerbosPlaygroundService", HandlerType: (*CerbosPlaygroundServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "PlaygroundValidate", Handler: _CerbosPlaygroundService_PlaygroundValidate_Handler, }, { MethodName: "PlaygroundTest", Handler: _CerbosPlaygroundService_PlaygroundTest_Handler, }, { MethodName: "PlaygroundEvaluate", Handler: _CerbosPlaygroundService_PlaygroundEvaluate_Handler, }, { MethodName: "PlaygroundProxy", Handler: _CerbosPlaygroundService_PlaygroundProxy_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "cerbos/svc/v1/svc.proto", }
CerbosPlaygroundService_ServiceDesc is the grpc.ServiceDesc for CerbosPlaygroundService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var CerbosService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "cerbos.svc.v1.CerbosService", HandlerType: (*CerbosServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CheckResourceSet", Handler: _CerbosService_CheckResourceSet_Handler, }, { MethodName: "CheckResourceBatch", Handler: _CerbosService_CheckResourceBatch_Handler, }, { MethodName: "CheckResources", Handler: _CerbosService_CheckResources_Handler, }, { MethodName: "ServerInfo", Handler: _CerbosService_ServerInfo_Handler, }, { MethodName: "PlanResources", Handler: _CerbosService_PlanResources_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "cerbos/svc/v1/svc.proto", }
CerbosService_ServiceDesc is the grpc.ServiceDesc for CerbosService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_cerbos_svc_v1_svc_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCerbosAdminServiceHandler ¶
func RegisterCerbosAdminServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterCerbosAdminServiceHandler registers the http handlers for service CerbosAdminService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterCerbosAdminServiceHandlerClient ¶
func RegisterCerbosAdminServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CerbosAdminServiceClient) error
RegisterCerbosAdminServiceHandlerClient registers the http handlers for service CerbosAdminService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "CerbosAdminServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "CerbosAdminServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "CerbosAdminServiceClient" to call the correct interceptors.
func RegisterCerbosAdminServiceHandlerFromEndpoint ¶
func RegisterCerbosAdminServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterCerbosAdminServiceHandlerFromEndpoint is same as RegisterCerbosAdminServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterCerbosAdminServiceHandlerServer ¶
func RegisterCerbosAdminServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server CerbosAdminServiceServer) error
RegisterCerbosAdminServiceHandlerServer registers the http handlers for service CerbosAdminService to "mux". UnaryRPC :call CerbosAdminServiceServer 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 RegisterCerbosAdminServiceHandlerFromEndpoint instead.
func RegisterCerbosAdminServiceServer ¶
func RegisterCerbosAdminServiceServer(s grpc.ServiceRegistrar, srv CerbosAdminServiceServer)
func RegisterCerbosPlaygroundServiceHandler ¶
func RegisterCerbosPlaygroundServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterCerbosPlaygroundServiceHandler registers the http handlers for service CerbosPlaygroundService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterCerbosPlaygroundServiceHandlerClient ¶
func RegisterCerbosPlaygroundServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CerbosPlaygroundServiceClient) error
RegisterCerbosPlaygroundServiceHandlerClient registers the http handlers for service CerbosPlaygroundService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "CerbosPlaygroundServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "CerbosPlaygroundServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "CerbosPlaygroundServiceClient" to call the correct interceptors.
func RegisterCerbosPlaygroundServiceHandlerFromEndpoint ¶
func RegisterCerbosPlaygroundServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterCerbosPlaygroundServiceHandlerFromEndpoint is same as RegisterCerbosPlaygroundServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterCerbosPlaygroundServiceHandlerServer ¶
func RegisterCerbosPlaygroundServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server CerbosPlaygroundServiceServer) error
RegisterCerbosPlaygroundServiceHandlerServer registers the http handlers for service CerbosPlaygroundService to "mux". UnaryRPC :call CerbosPlaygroundServiceServer 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 RegisterCerbosPlaygroundServiceHandlerFromEndpoint instead.
func RegisterCerbosPlaygroundServiceServer ¶
func RegisterCerbosPlaygroundServiceServer(s grpc.ServiceRegistrar, srv CerbosPlaygroundServiceServer)
func RegisterCerbosServiceHandler ¶
func RegisterCerbosServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterCerbosServiceHandler registers the http handlers for service CerbosService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterCerbosServiceHandlerClient ¶
func RegisterCerbosServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CerbosServiceClient) error
RegisterCerbosServiceHandlerClient registers the http handlers for service CerbosService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "CerbosServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "CerbosServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "CerbosServiceClient" to call the correct interceptors.
func RegisterCerbosServiceHandlerFromEndpoint ¶
func RegisterCerbosServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterCerbosServiceHandlerFromEndpoint is same as RegisterCerbosServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterCerbosServiceHandlerServer ¶
func RegisterCerbosServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server CerbosServiceServer) error
RegisterCerbosServiceHandlerServer registers the http handlers for service CerbosService to "mux". UnaryRPC :call CerbosServiceServer 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 RegisterCerbosServiceHandlerFromEndpoint instead.
func RegisterCerbosServiceServer ¶
func RegisterCerbosServiceServer(s grpc.ServiceRegistrar, srv CerbosServiceServer)
Types ¶
type CerbosAdminServiceClient ¶
type CerbosAdminServiceClient interface { AddOrUpdatePolicy(ctx context.Context, in *v1.AddOrUpdatePolicyRequest, opts ...grpc.CallOption) (*v11.AddOrUpdatePolicyResponse, error) InspectPolicies(ctx context.Context, in *v1.InspectPoliciesRequest, opts ...grpc.CallOption) (*v11.InspectPoliciesResponse, error) ListPolicies(ctx context.Context, in *v1.ListPoliciesRequest, opts ...grpc.CallOption) (*v11.ListPoliciesResponse, error) GetPolicy(ctx context.Context, in *v1.GetPolicyRequest, opts ...grpc.CallOption) (*v11.GetPolicyResponse, error) DisablePolicy(ctx context.Context, in *v1.DisablePolicyRequest, opts ...grpc.CallOption) (*v11.DisablePolicyResponse, error) EnablePolicy(ctx context.Context, in *v1.EnablePolicyRequest, opts ...grpc.CallOption) (*v11.EnablePolicyResponse, error) ListAuditLogEntries(ctx context.Context, in *v1.ListAuditLogEntriesRequest, opts ...grpc.CallOption) (CerbosAdminService_ListAuditLogEntriesClient, error) AddOrUpdateSchema(ctx context.Context, in *v1.AddOrUpdateSchemaRequest, opts ...grpc.CallOption) (*v11.AddOrUpdateSchemaResponse, error) ListSchemas(ctx context.Context, in *v1.ListSchemasRequest, opts ...grpc.CallOption) (*v11.ListSchemasResponse, error) GetSchema(ctx context.Context, in *v1.GetSchemaRequest, opts ...grpc.CallOption) (*v11.GetSchemaResponse, error) DeleteSchema(ctx context.Context, in *v1.DeleteSchemaRequest, opts ...grpc.CallOption) (*v11.DeleteSchemaResponse, error) ReloadStore(ctx context.Context, in *v1.ReloadStoreRequest, opts ...grpc.CallOption) (*v11.ReloadStoreResponse, error) }
CerbosAdminServiceClient is the client API for CerbosAdminService 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 NewCerbosAdminServiceClient ¶
func NewCerbosAdminServiceClient(cc grpc.ClientConnInterface) CerbosAdminServiceClient
type CerbosAdminServiceServer ¶
type CerbosAdminServiceServer interface { AddOrUpdatePolicy(context.Context, *v1.AddOrUpdatePolicyRequest) (*v11.AddOrUpdatePolicyResponse, error) InspectPolicies(context.Context, *v1.InspectPoliciesRequest) (*v11.InspectPoliciesResponse, error) ListPolicies(context.Context, *v1.ListPoliciesRequest) (*v11.ListPoliciesResponse, error) GetPolicy(context.Context, *v1.GetPolicyRequest) (*v11.GetPolicyResponse, error) DisablePolicy(context.Context, *v1.DisablePolicyRequest) (*v11.DisablePolicyResponse, error) EnablePolicy(context.Context, *v1.EnablePolicyRequest) (*v11.EnablePolicyResponse, error) ListAuditLogEntries(*v1.ListAuditLogEntriesRequest, CerbosAdminService_ListAuditLogEntriesServer) error AddOrUpdateSchema(context.Context, *v1.AddOrUpdateSchemaRequest) (*v11.AddOrUpdateSchemaResponse, error) ListSchemas(context.Context, *v1.ListSchemasRequest) (*v11.ListSchemasResponse, error) GetSchema(context.Context, *v1.GetSchemaRequest) (*v11.GetSchemaResponse, error) DeleteSchema(context.Context, *v1.DeleteSchemaRequest) (*v11.DeleteSchemaResponse, error) ReloadStore(context.Context, *v1.ReloadStoreRequest) (*v11.ReloadStoreResponse, error) // contains filtered or unexported methods }
CerbosAdminServiceServer is the server API for CerbosAdminService service. All implementations must embed UnimplementedCerbosAdminServiceServer for forward compatibility
type CerbosAdminService_ListAuditLogEntriesClient ¶
type CerbosAdminService_ListAuditLogEntriesClient interface { Recv() (*v11.ListAuditLogEntriesResponse, error) grpc.ClientStream }
type CerbosAdminService_ListAuditLogEntriesServer ¶
type CerbosAdminService_ListAuditLogEntriesServer interface { Send(*v11.ListAuditLogEntriesResponse) error grpc.ServerStream }
type CerbosPlaygroundServiceClient ¶
type CerbosPlaygroundServiceClient interface { PlaygroundValidate(ctx context.Context, in *v1.PlaygroundValidateRequest, opts ...grpc.CallOption) (*v11.PlaygroundValidateResponse, error) PlaygroundTest(ctx context.Context, in *v1.PlaygroundTestRequest, opts ...grpc.CallOption) (*v11.PlaygroundTestResponse, error) PlaygroundEvaluate(ctx context.Context, in *v1.PlaygroundEvaluateRequest, opts ...grpc.CallOption) (*v11.PlaygroundEvaluateResponse, error) PlaygroundProxy(ctx context.Context, in *v1.PlaygroundProxyRequest, opts ...grpc.CallOption) (*v11.PlaygroundProxyResponse, error) }
CerbosPlaygroundServiceClient is the client API for CerbosPlaygroundService 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 NewCerbosPlaygroundServiceClient ¶
func NewCerbosPlaygroundServiceClient(cc grpc.ClientConnInterface) CerbosPlaygroundServiceClient
type CerbosPlaygroundServiceServer ¶
type CerbosPlaygroundServiceServer interface { PlaygroundValidate(context.Context, *v1.PlaygroundValidateRequest) (*v11.PlaygroundValidateResponse, error) PlaygroundTest(context.Context, *v1.PlaygroundTestRequest) (*v11.PlaygroundTestResponse, error) PlaygroundEvaluate(context.Context, *v1.PlaygroundEvaluateRequest) (*v11.PlaygroundEvaluateResponse, error) PlaygroundProxy(context.Context, *v1.PlaygroundProxyRequest) (*v11.PlaygroundProxyResponse, error) // contains filtered or unexported methods }
CerbosPlaygroundServiceServer is the server API for CerbosPlaygroundService service. All implementations must embed UnimplementedCerbosPlaygroundServiceServer for forward compatibility
type CerbosServiceClient ¶
type CerbosServiceClient interface { CheckResourceSet(ctx context.Context, in *v1.CheckResourceSetRequest, opts ...grpc.CallOption) (*v11.CheckResourceSetResponse, error) CheckResourceBatch(ctx context.Context, in *v1.CheckResourceBatchRequest, opts ...grpc.CallOption) (*v11.CheckResourceBatchResponse, error) CheckResources(ctx context.Context, in *v1.CheckResourcesRequest, opts ...grpc.CallOption) (*v11.CheckResourcesResponse, error) ServerInfo(ctx context.Context, in *v1.ServerInfoRequest, opts ...grpc.CallOption) (*v11.ServerInfoResponse, error) PlanResources(ctx context.Context, in *v1.PlanResourcesRequest, opts ...grpc.CallOption) (*v11.PlanResourcesResponse, error) }
CerbosServiceClient is the client API for CerbosService 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 NewCerbosServiceClient ¶
func NewCerbosServiceClient(cc grpc.ClientConnInterface) CerbosServiceClient
type CerbosServiceServer ¶
type CerbosServiceServer interface { CheckResourceSet(context.Context, *v1.CheckResourceSetRequest) (*v11.CheckResourceSetResponse, error) CheckResourceBatch(context.Context, *v1.CheckResourceBatchRequest) (*v11.CheckResourceBatchResponse, error) CheckResources(context.Context, *v1.CheckResourcesRequest) (*v11.CheckResourcesResponse, error) ServerInfo(context.Context, *v1.ServerInfoRequest) (*v11.ServerInfoResponse, error) PlanResources(context.Context, *v1.PlanResourcesRequest) (*v11.PlanResourcesResponse, error) // contains filtered or unexported methods }
CerbosServiceServer is the server API for CerbosService service. All implementations must embed UnimplementedCerbosServiceServer for forward compatibility
type UnimplementedCerbosAdminServiceServer ¶
type UnimplementedCerbosAdminServiceServer struct { }
UnimplementedCerbosAdminServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedCerbosAdminServiceServer) AddOrUpdatePolicy ¶
func (UnimplementedCerbosAdminServiceServer) AddOrUpdatePolicy(context.Context, *v1.AddOrUpdatePolicyRequest) (*v11.AddOrUpdatePolicyResponse, error)
func (UnimplementedCerbosAdminServiceServer) AddOrUpdateSchema ¶
func (UnimplementedCerbosAdminServiceServer) AddOrUpdateSchema(context.Context, *v1.AddOrUpdateSchemaRequest) (*v11.AddOrUpdateSchemaResponse, error)
func (UnimplementedCerbosAdminServiceServer) DeleteSchema ¶
func (UnimplementedCerbosAdminServiceServer) DeleteSchema(context.Context, *v1.DeleteSchemaRequest) (*v11.DeleteSchemaResponse, error)
func (UnimplementedCerbosAdminServiceServer) DisablePolicy ¶
func (UnimplementedCerbosAdminServiceServer) DisablePolicy(context.Context, *v1.DisablePolicyRequest) (*v11.DisablePolicyResponse, error)
func (UnimplementedCerbosAdminServiceServer) EnablePolicy ¶
func (UnimplementedCerbosAdminServiceServer) EnablePolicy(context.Context, *v1.EnablePolicyRequest) (*v11.EnablePolicyResponse, error)
func (UnimplementedCerbosAdminServiceServer) GetPolicy ¶
func (UnimplementedCerbosAdminServiceServer) GetPolicy(context.Context, *v1.GetPolicyRequest) (*v11.GetPolicyResponse, error)
func (UnimplementedCerbosAdminServiceServer) GetSchema ¶
func (UnimplementedCerbosAdminServiceServer) GetSchema(context.Context, *v1.GetSchemaRequest) (*v11.GetSchemaResponse, error)
func (UnimplementedCerbosAdminServiceServer) InspectPolicies ¶ added in v0.35.0
func (UnimplementedCerbosAdminServiceServer) InspectPolicies(context.Context, *v1.InspectPoliciesRequest) (*v11.InspectPoliciesResponse, error)
func (UnimplementedCerbosAdminServiceServer) ListAuditLogEntries ¶
func (UnimplementedCerbosAdminServiceServer) ListAuditLogEntries(*v1.ListAuditLogEntriesRequest, CerbosAdminService_ListAuditLogEntriesServer) error
func (UnimplementedCerbosAdminServiceServer) ListPolicies ¶
func (UnimplementedCerbosAdminServiceServer) ListPolicies(context.Context, *v1.ListPoliciesRequest) (*v11.ListPoliciesResponse, error)
func (UnimplementedCerbosAdminServiceServer) ListSchemas ¶
func (UnimplementedCerbosAdminServiceServer) ListSchemas(context.Context, *v1.ListSchemasRequest) (*v11.ListSchemasResponse, error)
func (UnimplementedCerbosAdminServiceServer) ReloadStore ¶
func (UnimplementedCerbosAdminServiceServer) ReloadStore(context.Context, *v1.ReloadStoreRequest) (*v11.ReloadStoreResponse, error)
type UnimplementedCerbosPlaygroundServiceServer ¶
type UnimplementedCerbosPlaygroundServiceServer struct { }
UnimplementedCerbosPlaygroundServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedCerbosPlaygroundServiceServer) PlaygroundEvaluate ¶
func (UnimplementedCerbosPlaygroundServiceServer) PlaygroundEvaluate(context.Context, *v1.PlaygroundEvaluateRequest) (*v11.PlaygroundEvaluateResponse, error)
func (UnimplementedCerbosPlaygroundServiceServer) PlaygroundProxy ¶
func (UnimplementedCerbosPlaygroundServiceServer) PlaygroundProxy(context.Context, *v1.PlaygroundProxyRequest) (*v11.PlaygroundProxyResponse, error)
func (UnimplementedCerbosPlaygroundServiceServer) PlaygroundTest ¶
func (UnimplementedCerbosPlaygroundServiceServer) PlaygroundTest(context.Context, *v1.PlaygroundTestRequest) (*v11.PlaygroundTestResponse, error)
func (UnimplementedCerbosPlaygroundServiceServer) PlaygroundValidate ¶
func (UnimplementedCerbosPlaygroundServiceServer) PlaygroundValidate(context.Context, *v1.PlaygroundValidateRequest) (*v11.PlaygroundValidateResponse, error)
type UnimplementedCerbosServiceServer ¶
type UnimplementedCerbosServiceServer struct { }
UnimplementedCerbosServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedCerbosServiceServer) CheckResourceBatch ¶
func (UnimplementedCerbosServiceServer) CheckResourceBatch(context.Context, *v1.CheckResourceBatchRequest) (*v11.CheckResourceBatchResponse, error)
func (UnimplementedCerbosServiceServer) CheckResourceSet ¶
func (UnimplementedCerbosServiceServer) CheckResourceSet(context.Context, *v1.CheckResourceSetRequest) (*v11.CheckResourceSetResponse, error)
func (UnimplementedCerbosServiceServer) CheckResources ¶
func (UnimplementedCerbosServiceServer) CheckResources(context.Context, *v1.CheckResourcesRequest) (*v11.CheckResourcesResponse, error)
func (UnimplementedCerbosServiceServer) PlanResources ¶
func (UnimplementedCerbosServiceServer) PlanResources(context.Context, *v1.PlanResourcesRequest) (*v11.PlanResourcesResponse, error)
func (UnimplementedCerbosServiceServer) ServerInfo ¶
func (UnimplementedCerbosServiceServer) ServerInfo(context.Context, *v1.ServerInfoRequest) (*v11.ServerInfoResponse, error)
type UnsafeCerbosAdminServiceServer ¶
type UnsafeCerbosAdminServiceServer interface {
// contains filtered or unexported methods
}
UnsafeCerbosAdminServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CerbosAdminServiceServer will result in compilation errors.
type UnsafeCerbosPlaygroundServiceServer ¶
type UnsafeCerbosPlaygroundServiceServer interface {
// contains filtered or unexported methods
}
UnsafeCerbosPlaygroundServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CerbosPlaygroundServiceServer will result in compilation errors.
type UnsafeCerbosServiceServer ¶
type UnsafeCerbosServiceServer interface {
// contains filtered or unexported methods
}
UnsafeCerbosServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CerbosServiceServer will result in compilation errors.