authzv1alpha1connect

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 12, 2024 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

View Source
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.

View Source
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.

View Source
const (
	// AuthzServiceName is the fully-qualified name of the AuthzService service.
	AuthzServiceName = "commonfate.authz.v1alpha1.AuthzService"
)
View Source
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.

View Source
const (
	// EvaluationServiceName is the fully-qualified name of the EvaluationService service.
	EvaluationServiceName = "commonfate.authz.v1alpha1.EvaluationService"
)
View Source
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.

View Source
const (
	// HealthServiceName is the fully-qualified name of the HealthService service.
	HealthServiceName = "commonfate.authz.v1alpha1.HealthService"
)
View Source
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

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 UnimplementedAuthzServiceHandler

type UnimplementedAuthzServiceHandler struct{}

UnimplementedAuthzServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedEvaluationServiceHandler

type UnimplementedEvaluationServiceHandler struct{}

UnimplementedEvaluationServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedHealthServiceHandler

type UnimplementedHealthServiceHandler struct{}

UnimplementedHealthServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedPolicyServiceHandler

type UnimplementedPolicyServiceHandler struct{}

UnimplementedPolicyServiceHandler returns CodeUnimplemented from all methods.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL