Documentation
¶
Index ¶
- Variables
- func RegisterRbacInternalServiceServer(s grpc.ServiceRegistrar, srv RbacInternalServiceServer)
- type AuthorizeRequest
- func (*AuthorizeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuthorizeRequest) GetAccessResource() string
- func (x *AuthorizeRequest) GetCapability() string
- func (x *AuthorizeRequest) GetOrganizationId() string
- func (x *AuthorizeRequest) GetProjectId() string
- func (x *AuthorizeRequest) GetToken() string
- func (*AuthorizeRequest) ProtoMessage()
- func (x *AuthorizeRequest) ProtoReflect() protoreflect.Message
- func (x *AuthorizeRequest) Reset()
- func (x *AuthorizeRequest) String() string
- type AuthorizeResponse
- func (*AuthorizeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AuthorizeResponse) GetAuthorized() bool
- func (x *AuthorizeResponse) GetOrganization() *Organization
- func (x *AuthorizeResponse) GetProject() *Project
- func (x *AuthorizeResponse) GetUser() *User
- func (*AuthorizeResponse) ProtoMessage()
- func (x *AuthorizeResponse) ProtoReflect() protoreflect.Message
- func (x *AuthorizeResponse) Reset()
- func (x *AuthorizeResponse) String() string
- type Organization
- type Project
- type RbacInternalServiceClient
- type RbacInternalServiceServer
- type UnimplementedRbacInternalServiceServer
- type UnsafeRbacInternalServiceServer
- type User
Constants ¶
This section is empty.
Variables ¶
var File_api_v1_rbac_manager_service_proto protoreflect.FileDescriptor
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"`
AccessResource string `protobuf:"bytes,2,opt,name=access_resource,json=accessResource,proto3" json:"access_resource,omitempty"`
Capability string `protobuf:"bytes,3,opt,name=capability,proto3" json:"capability,omitempty"`
OrganizationId string `protobuf:"bytes,4,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"`
ProjectId string `protobuf:"bytes,5,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
// contains filtered or unexported fields
}
func (*AuthorizeRequest) Descriptor
deprecated
func (*AuthorizeRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuthorizeRequest.ProtoReflect.Descriptor instead.
func (*AuthorizeRequest) GetAccessResource ¶ added in v0.34.0
func (x *AuthorizeRequest) GetAccessResource() string
func (*AuthorizeRequest) GetCapability ¶ added in v0.34.0
func (x *AuthorizeRequest) GetCapability() string
func (*AuthorizeRequest) GetOrganizationId ¶ added in v0.34.0
func (x *AuthorizeRequest) GetOrganizationId() string
func (*AuthorizeRequest) GetProjectId ¶ added in v0.34.0
func (x *AuthorizeRequest) GetProjectId() 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"`
User *User `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"`
Organization *Organization `protobuf:"bytes,3,opt,name=organization,proto3" json:"organization,omitempty"`
Project *Project `protobuf:"bytes,4,opt,name=project,proto3" json:"project,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) GetOrganization ¶ added in v0.23.0
func (x *AuthorizeResponse) GetOrganization() *Organization
func (*AuthorizeResponse) GetProject ¶ added in v0.34.0
func (x *AuthorizeResponse) GetProject() *Project
func (*AuthorizeResponse) GetUser ¶ added in v0.23.0
func (x *AuthorizeResponse) GetUser() *User
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 Organization ¶ added in v0.23.0
type Organization struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*Organization) Descriptor
deprecated
added in
v0.23.0
func (*Organization) Descriptor() ([]byte, []int)
Deprecated: Use Organization.ProtoReflect.Descriptor instead.
func (*Organization) GetId ¶ added in v0.23.0
func (x *Organization) GetId() string
func (*Organization) ProtoMessage ¶ added in v0.23.0
func (*Organization) ProtoMessage()
func (*Organization) ProtoReflect ¶ added in v0.23.0
func (x *Organization) ProtoReflect() protoreflect.Message
func (*Organization) Reset ¶ added in v0.23.0
func (x *Organization) Reset()
func (*Organization) String ¶ added in v0.23.0
func (x *Organization) String() string
type Project ¶ added in v0.34.0
type Project struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*Project) Descriptor
deprecated
added in
v0.34.0
func (*Project) ProtoMessage ¶ added in v0.34.0
func (*Project) ProtoMessage()
func (*Project) ProtoReflect ¶ added in v0.34.0
func (x *Project) ProtoReflect() protoreflect.Message
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.
func NewRbacInternalServiceClient ¶
func NewRbacInternalServiceClient(cc grpc.ClientConnInterface) RbacInternalServiceClient
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 ¶
func (UnimplementedRbacInternalServiceServer) Authorize(context.Context, *AuthorizeRequest) (*AuthorizeResponse, error)
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.
type User ¶ added in v0.23.0
type User struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*User) Descriptor
deprecated
added in
v0.23.0
func (*User) ProtoMessage ¶ added in v0.23.0
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶ added in v0.23.0
func (x *User) ProtoReflect() protoreflect.Message