authzv1alpha1connect

package
v1.47.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 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 (
	// 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"
)
View Source
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.

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

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

type UnimplementedHealthServiceHandler

type UnimplementedHealthServiceHandler struct{}

UnimplementedHealthServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedPolicyServiceHandler

type UnimplementedPolicyServiceHandler struct{}

UnimplementedPolicyServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedSchemaServiceHandler added in v1.14.0

type UnimplementedSchemaServiceHandler struct{}

UnimplementedSchemaServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedValidationServiceHandler added in v1.14.0

type UnimplementedValidationServiceHandler struct{}

UnimplementedValidationServiceHandler returns CodeUnimplemented from all methods.

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.

Jump to

Keyboard shortcuts

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