package v2alpha

import "github.com/envoyproxy/go-control-plane/envoy/service/auth/v2alpha"

Index

Constants

const (
	Authorization_Check_FullMethodName = "/envoy.service.auth.v2alpha.Authorization/Check"
)

Variables

var Authorization_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "envoy.service.auth.v2alpha.Authorization",
	HandlerType: (*AuthorizationServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Check",
			Handler:    _Authorization_Check_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "envoy/service/auth/v2alpha/external_auth.proto",
}

Authorization_ServiceDesc is the grpc.ServiceDesc for Authorization service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

var File_envoy_service_auth_v2alpha_external_auth_proto protoreflect.FileDescriptor

Functions

func RegisterAuthorizationServer

func RegisterAuthorizationServer(s grpc.ServiceRegistrar, srv AuthorizationServer)

Types

type AuthorizationClient

type AuthorizationClient interface {
	// Performs authorization check based on the attributes associated with the
	// incoming request, and returns status `OK` or not `OK`.
	Check(ctx context.Context, in *v2.CheckRequest, opts ...grpc.CallOption) (*v2.CheckResponse, error)
}

AuthorizationClient is the client API for Authorization 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 NewAuthorizationClient

func NewAuthorizationClient(cc grpc.ClientConnInterface) AuthorizationClient

type AuthorizationServer

type AuthorizationServer interface {
	// Performs authorization check based on the attributes associated with the
	// incoming request, and returns status `OK` or not `OK`.
	Check(context.Context, *v2.CheckRequest) (*v2.CheckResponse, error)
}

AuthorizationServer is the server API for Authorization service. All implementations should embed UnimplementedAuthorizationServer for forward compatibility

type UnimplementedAuthorizationServer

type UnimplementedAuthorizationServer struct {
}

UnimplementedAuthorizationServer should be embedded to have forward compatible implementations.

func (UnimplementedAuthorizationServer) Check

type UnsafeAuthorizationServer

type UnsafeAuthorizationServer interface {
	// contains filtered or unexported methods
}

UnsafeAuthorizationServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthorizationServer will result in compilation errors.

Source Files

external_auth.pb.go external_auth.pb.validate.go external_auth_grpc.pb.go

Version
v1.32.4 (latest)
Published
Feb 3, 2025
Platform
linux/amd64
Imports
20 packages
Last checked
1 day ago

Tools for package owners.