v1

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_api_v1_rbac_manager_service_proto protoreflect.FileDescriptor
View Source
var RbacInternalService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "llmoperator.rbac.server.v1.RbacInternalService",
	HandlerType: (*RbacInternalServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Authorize",
			Handler:    _RbacInternalService_Authorize_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/v1/rbac_manager_service.proto",
}

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

Functions

func RegisterRbacInternalServiceServer

func RegisterRbacInternalServiceServer(s grpc.ServiceRegistrar, srv RbacInternalServiceServer)

Types

type AuthorizeRequest

type AuthorizeRequest struct {
	Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	Scope string `protobuf:"bytes,2,opt,name=scope,proto3" json:"scope,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthorizeRequest) Descriptor deprecated

func (*AuthorizeRequest) Descriptor() ([]byte, []int)

Deprecated: Use AuthorizeRequest.ProtoReflect.Descriptor instead.

func (*AuthorizeRequest) GetScope

func (x *AuthorizeRequest) GetScope() string

func (*AuthorizeRequest) GetToken

func (x *AuthorizeRequest) GetToken() string

func (*AuthorizeRequest) ProtoMessage

func (*AuthorizeRequest) ProtoMessage()

func (*AuthorizeRequest) ProtoReflect

func (x *AuthorizeRequest) ProtoReflect() protoreflect.Message

func (*AuthorizeRequest) Reset

func (x *AuthorizeRequest) Reset()

func (*AuthorizeRequest) String

func (x *AuthorizeRequest) String() string

type AuthorizeResponse

type AuthorizeResponse struct {
	Authorized bool `protobuf:"varint,1,opt,name=authorized,proto3" json:"authorized,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthorizeResponse) Descriptor deprecated

func (*AuthorizeResponse) Descriptor() ([]byte, []int)

Deprecated: Use AuthorizeResponse.ProtoReflect.Descriptor instead.

func (*AuthorizeResponse) GetAuthorized

func (x *AuthorizeResponse) GetAuthorized() bool

func (*AuthorizeResponse) ProtoMessage

func (*AuthorizeResponse) ProtoMessage()

func (*AuthorizeResponse) ProtoReflect

func (x *AuthorizeResponse) ProtoReflect() protoreflect.Message

func (*AuthorizeResponse) Reset

func (x *AuthorizeResponse) Reset()

func (*AuthorizeResponse) String

func (x *AuthorizeResponse) String() string

type RbacInternalServiceClient

type RbacInternalServiceClient interface {
	Authorize(ctx context.Context, in *AuthorizeRequest, opts ...grpc.CallOption) (*AuthorizeResponse, error)
}

RbacInternalServiceClient is the client API for RbacInternalService 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.

type RbacInternalServiceServer

type RbacInternalServiceServer interface {
	Authorize(context.Context, *AuthorizeRequest) (*AuthorizeResponse, error)
	// contains filtered or unexported methods
}

RbacInternalServiceServer is the server API for RbacInternalService service. All implementations must embed UnimplementedRbacInternalServiceServer for forward compatibility

type UnimplementedRbacInternalServiceServer

type UnimplementedRbacInternalServiceServer struct {
}

UnimplementedRbacInternalServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedRbacInternalServiceServer) Authorize

type UnsafeRbacInternalServiceServer

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

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

Jump to

Keyboard shortcuts

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