Documentation ¶
Index ¶
- Constants
- func NewAuthzServiceHandler(svc AuthzServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- func NewEvaluationServiceHandler(svc EvaluationServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- func NewHealthServiceHandler(svc HealthServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- func NewPolicyServiceHandler(svc PolicyServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- type AuthzServiceClient
- type AuthzServiceHandler
- type EvaluationServiceClient
- type EvaluationServiceHandler
- type HealthServiceClient
- type HealthServiceHandler
- type PolicyServiceClient
- type PolicyServiceHandler
- type UnimplementedAuthzServiceHandler
- type UnimplementedEvaluationServiceHandler
- type UnimplementedHealthServiceHandler
- type UnimplementedPolicyServiceHandler
- func (UnimplementedPolicyServiceHandler) CreatePolicySet(context.Context, *connect.Request[v1alpha1.CreatePolicySetRequest]) (*connect.Response[v1alpha1.CreatePolicySetResponse], error)
- func (UnimplementedPolicyServiceHandler) DeletePolicySet(context.Context, *connect.Request[v1alpha1.DeletePolicySetRequest]) (*connect.Response[v1alpha1.DeletePolicySetResponse], error)
- func (UnimplementedPolicyServiceHandler) GetPolicySet(context.Context, *connect.Request[v1alpha1.GetPolicySetRequest]) (*connect.Response[v1alpha1.GetPolicySetResponse], error)
- func (UnimplementedPolicyServiceHandler) ListPolicySets(context.Context, *connect.Request[v1alpha1.ListPolicySetsRequest]) (*connect.Response[v1alpha1.ListPolicySetsResponse], error)
- func (UnimplementedPolicyServiceHandler) UpdatePolicySet(context.Context, *connect.Request[v1alpha1.UpdatePolicySetRequest]) (*connect.Response[v1alpha1.UpdatePolicySetResponse], error)
Constants ¶
const ( // PolicyServiceCreatePolicySetProcedure is the fully-qualified name of the PolicyService's // CreatePolicySet RPC. PolicyServiceCreatePolicySetProcedure = "/commonfate.authz.v1alpha1.PolicyService/CreatePolicySet" // PolicyServiceUpdatePolicySetProcedure is the fully-qualified name of the PolicyService's // UpdatePolicySet RPC. PolicyServiceUpdatePolicySetProcedure = "/commonfate.authz.v1alpha1.PolicyService/UpdatePolicySet" // PolicyServiceListPolicySetsProcedure is the fully-qualified name of the PolicyService's // ListPolicySets RPC. PolicyServiceListPolicySetsProcedure = "/commonfate.authz.v1alpha1.PolicyService/ListPolicySets" // PolicyServiceGetPolicySetProcedure is the fully-qualified name of the PolicyService's // GetPolicySet RPC. PolicyServiceGetPolicySetProcedure = "/commonfate.authz.v1alpha1.PolicyService/GetPolicySet" // PolicyServiceDeletePolicySetProcedure is the fully-qualified name of the PolicyService's // DeletePolicySet RPC. PolicyServiceDeletePolicySetProcedure = "/commonfate.authz.v1alpha1.PolicyService/DeletePolicySet" )
These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.
Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.
const ( // AuthzServiceBatchAuthorizeProcedure is the fully-qualified name of the AuthzService's // BatchAuthorize RPC. AuthzServiceBatchAuthorizeProcedure = "/commonfate.authz.v1alpha1.AuthzService/BatchAuthorize" )
These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.
Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.
const (
// AuthzServiceName is the fully-qualified name of the AuthzService service.
AuthzServiceName = "commonfate.authz.v1alpha1.AuthzService"
)
const ( // EvaluationServiceDebugEvaluationProcedure is the fully-qualified name of the EvaluationService's // DebugEvaluation RPC. EvaluationServiceDebugEvaluationProcedure = "/commonfate.authz.v1alpha1.EvaluationService/DebugEvaluation" )
These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.
Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.
const (
// EvaluationServiceName is the fully-qualified name of the EvaluationService service.
EvaluationServiceName = "commonfate.authz.v1alpha1.EvaluationService"
)
const ( // HealthServiceHealthCheckProcedure is the fully-qualified name of the HealthService's HealthCheck // RPC. HealthServiceHealthCheckProcedure = "/commonfate.authz.v1alpha1.HealthService/HealthCheck" )
These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.
Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.
const (
// HealthServiceName is the fully-qualified name of the HealthService service.
HealthServiceName = "commonfate.authz.v1alpha1.HealthService"
)
const (
// PolicyServiceName is the fully-qualified name of the PolicyService service.
PolicyServiceName = "commonfate.authz.v1alpha1.PolicyService"
)
Variables ¶
This section is empty.
Functions ¶
func NewAuthzServiceHandler ¶
func NewAuthzServiceHandler(svc AuthzServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
NewAuthzServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.
By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.
func NewEvaluationServiceHandler ¶
func NewEvaluationServiceHandler(svc EvaluationServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
NewEvaluationServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.
By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.
func NewHealthServiceHandler ¶
func NewHealthServiceHandler(svc HealthServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
NewHealthServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.
By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.
func NewPolicyServiceHandler ¶
func NewPolicyServiceHandler(svc PolicyServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
NewPolicyServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.
By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.
Types ¶
type AuthzServiceClient ¶
type AuthzServiceClient interface { // run multiple authorization evaluations and returns allow + deny for each. BatchAuthorize(context.Context, *connect.Request[v1alpha1.BatchAuthorizeRequest]) (*connect.Response[v1alpha1.BatchAuthorizeResponse], error) }
AuthzServiceClient is a client for the commonfate.authz.v1alpha1.AuthzService service.
func NewAuthzServiceClient ¶
func NewAuthzServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) AuthzServiceClient
NewAuthzServiceClient constructs a client for the commonfate.authz.v1alpha1.AuthzService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.
The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).
type AuthzServiceHandler ¶
type AuthzServiceHandler interface { // run multiple authorization evaluations and returns allow + deny for each. BatchAuthorize(context.Context, *connect.Request[v1alpha1.BatchAuthorizeRequest]) (*connect.Response[v1alpha1.BatchAuthorizeResponse], error) }
AuthzServiceHandler is an implementation of the commonfate.authz.v1alpha1.AuthzService service.
type EvaluationServiceClient ¶
type EvaluationServiceClient interface { // Fetches debug information about the evaluation of a particular decision DebugEvaluation(context.Context, *connect.Request[v1alpha1.DebugEvaluationRequest]) (*connect.Response[v1alpha1.DebugEvaluationResponse], error) }
EvaluationServiceClient is a client for the commonfate.authz.v1alpha1.EvaluationService service.
func NewEvaluationServiceClient ¶
func NewEvaluationServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) EvaluationServiceClient
NewEvaluationServiceClient constructs a client for the commonfate.authz.v1alpha1.EvaluationService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.
The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).
type EvaluationServiceHandler ¶
type EvaluationServiceHandler interface { // Fetches debug information about the evaluation of a particular decision DebugEvaluation(context.Context, *connect.Request[v1alpha1.DebugEvaluationRequest]) (*connect.Response[v1alpha1.DebugEvaluationResponse], error) }
EvaluationServiceHandler is an implementation of the commonfate.authz.v1alpha1.EvaluationService service.
type HealthServiceClient ¶
type HealthServiceClient interface {
HealthCheck(context.Context, *connect.Request[v1alpha1.HealthCheckRequest]) (*connect.Response[v1alpha1.HealthCheckResponse], error)
}
HealthServiceClient is a client for the commonfate.authz.v1alpha1.HealthService service.
func NewHealthServiceClient ¶
func NewHealthServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) HealthServiceClient
NewHealthServiceClient constructs a client for the commonfate.authz.v1alpha1.HealthService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.
The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).
type HealthServiceHandler ¶
type HealthServiceHandler interface {
HealthCheck(context.Context, *connect.Request[v1alpha1.HealthCheckRequest]) (*connect.Response[v1alpha1.HealthCheckResponse], error)
}
HealthServiceHandler is an implementation of the commonfate.authz.v1alpha1.HealthService service.
type PolicyServiceClient ¶
type PolicyServiceClient interface { CreatePolicySet(context.Context, *connect.Request[v1alpha1.CreatePolicySetRequest]) (*connect.Response[v1alpha1.CreatePolicySetResponse], error) UpdatePolicySet(context.Context, *connect.Request[v1alpha1.UpdatePolicySetRequest]) (*connect.Response[v1alpha1.UpdatePolicySetResponse], error) ListPolicySets(context.Context, *connect.Request[v1alpha1.ListPolicySetsRequest]) (*connect.Response[v1alpha1.ListPolicySetsResponse], error) GetPolicySet(context.Context, *connect.Request[v1alpha1.GetPolicySetRequest]) (*connect.Response[v1alpha1.GetPolicySetResponse], error) DeletePolicySet(context.Context, *connect.Request[v1alpha1.DeletePolicySetRequest]) (*connect.Response[v1alpha1.DeletePolicySetResponse], error) }
PolicyServiceClient is a client for the commonfate.authz.v1alpha1.PolicyService service.
func NewPolicyServiceClient ¶
func NewPolicyServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) PolicyServiceClient
NewPolicyServiceClient constructs a client for the commonfate.authz.v1alpha1.PolicyService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.
The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).
type PolicyServiceHandler ¶
type PolicyServiceHandler interface { CreatePolicySet(context.Context, *connect.Request[v1alpha1.CreatePolicySetRequest]) (*connect.Response[v1alpha1.CreatePolicySetResponse], error) UpdatePolicySet(context.Context, *connect.Request[v1alpha1.UpdatePolicySetRequest]) (*connect.Response[v1alpha1.UpdatePolicySetResponse], error) ListPolicySets(context.Context, *connect.Request[v1alpha1.ListPolicySetsRequest]) (*connect.Response[v1alpha1.ListPolicySetsResponse], error) GetPolicySet(context.Context, *connect.Request[v1alpha1.GetPolicySetRequest]) (*connect.Response[v1alpha1.GetPolicySetResponse], error) DeletePolicySet(context.Context, *connect.Request[v1alpha1.DeletePolicySetRequest]) (*connect.Response[v1alpha1.DeletePolicySetResponse], error) }
PolicyServiceHandler is an implementation of the commonfate.authz.v1alpha1.PolicyService service.
type UnimplementedAuthzServiceHandler ¶
type UnimplementedAuthzServiceHandler struct{}
UnimplementedAuthzServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedAuthzServiceHandler) BatchAuthorize ¶
func (UnimplementedAuthzServiceHandler) BatchAuthorize(context.Context, *connect.Request[v1alpha1.BatchAuthorizeRequest]) (*connect.Response[v1alpha1.BatchAuthorizeResponse], error)
type UnimplementedEvaluationServiceHandler ¶
type UnimplementedEvaluationServiceHandler struct{}
UnimplementedEvaluationServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedEvaluationServiceHandler) DebugEvaluation ¶
func (UnimplementedEvaluationServiceHandler) DebugEvaluation(context.Context, *connect.Request[v1alpha1.DebugEvaluationRequest]) (*connect.Response[v1alpha1.DebugEvaluationResponse], error)
type UnimplementedHealthServiceHandler ¶
type UnimplementedHealthServiceHandler struct{}
UnimplementedHealthServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedHealthServiceHandler) HealthCheck ¶
func (UnimplementedHealthServiceHandler) HealthCheck(context.Context, *connect.Request[v1alpha1.HealthCheckRequest]) (*connect.Response[v1alpha1.HealthCheckResponse], error)
type UnimplementedPolicyServiceHandler ¶
type UnimplementedPolicyServiceHandler struct{}
UnimplementedPolicyServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedPolicyServiceHandler) CreatePolicySet ¶
func (UnimplementedPolicyServiceHandler) CreatePolicySet(context.Context, *connect.Request[v1alpha1.CreatePolicySetRequest]) (*connect.Response[v1alpha1.CreatePolicySetResponse], error)
func (UnimplementedPolicyServiceHandler) DeletePolicySet ¶
func (UnimplementedPolicyServiceHandler) DeletePolicySet(context.Context, *connect.Request[v1alpha1.DeletePolicySetRequest]) (*connect.Response[v1alpha1.DeletePolicySetResponse], error)
func (UnimplementedPolicyServiceHandler) GetPolicySet ¶
func (UnimplementedPolicyServiceHandler) GetPolicySet(context.Context, *connect.Request[v1alpha1.GetPolicySetRequest]) (*connect.Response[v1alpha1.GetPolicySetResponse], error)
func (UnimplementedPolicyServiceHandler) ListPolicySets ¶
func (UnimplementedPolicyServiceHandler) ListPolicySets(context.Context, *connect.Request[v1alpha1.ListPolicySetsRequest]) (*connect.Response[v1alpha1.ListPolicySetsResponse], error)
func (UnimplementedPolicyServiceHandler) UpdatePolicySet ¶
func (UnimplementedPolicyServiceHandler) UpdatePolicySet(context.Context, *connect.Request[v1alpha1.UpdatePolicySetRequest]) (*connect.Response[v1alpha1.UpdatePolicySetResponse], error)