Documentation ¶
Index ¶
- Constants
- func NewAuthzServiceHandler(svc AuthzServiceHandler, 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)
- func NewSchemaServiceHandler(svc SchemaServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- func NewValidationServiceHandler(svc ValidationServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- type AuthzServiceClient
- type AuthzServiceHandler
- type HealthServiceClient
- type HealthServiceHandler
- type PolicyServiceClient
- type PolicyServiceHandler
- type SchemaServiceClient
- type SchemaServiceHandler
- type UnimplementedAuthzServiceHandler
- 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)
- type UnimplementedSchemaServiceHandler
- type UnimplementedValidationServiceHandler
- type ValidationServiceClient
- type ValidationServiceHandler
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 ( // 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"
)
const ( // SchemaServiceGetSchemaJSONStringProcedure is the fully-qualified name of the SchemaService's // GetSchemaJSONString RPC. SchemaServiceGetSchemaJSONStringProcedure = "/commonfate.authz.v1alpha1.SchemaService/GetSchemaJSONString" )
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 (
// SchemaServiceName is the fully-qualified name of the SchemaService service.
SchemaServiceName = "commonfate.authz.v1alpha1.SchemaService"
)
const (
// ValidationServiceName is the fully-qualified name of the ValidationService service.
ValidationServiceName = "commonfate.authz.v1alpha1.ValidationService"
)
const ( // ValidationServiceValidatePolicySetTextProcedure is the fully-qualified name of the // ValidationService's ValidatePolicySetText RPC. ValidationServiceValidatePolicySetTextProcedure = "/commonfate.authz.v1alpha1.ValidationService/ValidatePolicySetText" )
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.
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 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.
func NewSchemaServiceHandler ¶ added in v1.14.0
func NewSchemaServiceHandler(svc SchemaServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
NewSchemaServiceHandler 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 NewValidationServiceHandler ¶ added in v1.14.0
func NewValidationServiceHandler(svc ValidationServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
NewValidationServiceHandler 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 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 SchemaServiceClient ¶ added in v1.14.0
type SchemaServiceClient interface { // Retrieves a copy of the Cedar schema in JSON format, as a string. GetSchemaJSONString(context.Context, *connect.Request[v1alpha1.GetSchemaJSONStringRequest]) (*connect.Response[v1alpha1.GetSchemaJSONStringResponse], error) }
SchemaServiceClient is a client for the commonfate.authz.v1alpha1.SchemaService service.
func NewSchemaServiceClient ¶ added in v1.14.0
func NewSchemaServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) SchemaServiceClient
NewSchemaServiceClient constructs a client for the commonfate.authz.v1alpha1.SchemaService 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 SchemaServiceHandler ¶ added in v1.14.0
type SchemaServiceHandler interface { // Retrieves a copy of the Cedar schema in JSON format, as a string. GetSchemaJSONString(context.Context, *connect.Request[v1alpha1.GetSchemaJSONStringRequest]) (*connect.Response[v1alpha1.GetSchemaJSONStringResponse], error) }
SchemaServiceHandler is an implementation of the commonfate.authz.v1alpha1.SchemaService 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 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)
type UnimplementedSchemaServiceHandler ¶ added in v1.14.0
type UnimplementedSchemaServiceHandler struct{}
UnimplementedSchemaServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedSchemaServiceHandler) GetSchemaJSONString ¶ added in v1.14.0
func (UnimplementedSchemaServiceHandler) GetSchemaJSONString(context.Context, *connect.Request[v1alpha1.GetSchemaJSONStringRequest]) (*connect.Response[v1alpha1.GetSchemaJSONStringResponse], error)
type UnimplementedValidationServiceHandler ¶ added in v1.14.0
type UnimplementedValidationServiceHandler struct{}
UnimplementedValidationServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedValidationServiceHandler) ValidatePolicySetText ¶ added in v1.14.0
func (UnimplementedValidationServiceHandler) ValidatePolicySetText(context.Context, *connect.Request[v1alpha1.ValidatePolicySetTextRequest]) (*connect.Response[v1alpha1.ValidatePolicySetTextResponse], error)
type ValidationServiceClient ¶ added in v1.14.0
type ValidationServiceClient interface { // ValidatePolicySetText validates a provided Cedar policy set text document. ValidatePolicySetText(context.Context, *connect.Request[v1alpha1.ValidatePolicySetTextRequest]) (*connect.Response[v1alpha1.ValidatePolicySetTextResponse], error) }
ValidationServiceClient is a client for the commonfate.authz.v1alpha1.ValidationService service.
func NewValidationServiceClient ¶ added in v1.14.0
func NewValidationServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) ValidationServiceClient
NewValidationServiceClient constructs a client for the commonfate.authz.v1alpha1.ValidationService 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 ValidationServiceHandler ¶ added in v1.14.0
type ValidationServiceHandler interface { // ValidatePolicySetText validates a provided Cedar policy set text document. ValidatePolicySetText(context.Context, *connect.Request[v1alpha1.ValidatePolicySetTextRequest]) (*connect.Response[v1alpha1.ValidatePolicySetTextResponse], error) }
ValidationServiceHandler is an implementation of the commonfate.authz.v1alpha1.ValidationService service.