v1

package
v1.19.1 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2025 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: "llmariner.rbac.server.v1.RbacInternalService",
	HandlerType: (*RbacInternalServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Authorize",
			Handler:    _RbacInternalService_Authorize_Handler,
		},
		{
			MethodName: "AuthorizeWorker",
			Handler:    _RbacInternalService_AuthorizeWorker_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

func (x *AuthorizeRequest) GetAccessResource() string

func (*AuthorizeRequest) GetCapability

func (x *AuthorizeRequest) GetCapability() string

func (*AuthorizeRequest) GetOrganizationId

func (x *AuthorizeRequest) GetOrganizationId() string

func (*AuthorizeRequest) GetProjectId

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"`
	TenantId     string        `protobuf:"bytes,5,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	// api_key_id is the id of the api key used to authorize the request. It is only set if the request was authorized using an api key.
	ApiKeyId string `protobuf:"bytes,6,opt,name=api_key_id,json=apiKeyId,proto3" json:"api_key_id,omitempty"`
	// indicates whether the API key used for authorization is excluded from rate limiting
	ExcludedFromRateLimiting bool `` /* 138-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*AuthorizeResponse) Descriptor deprecated

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

Deprecated: Use AuthorizeResponse.ProtoReflect.Descriptor instead.

func (*AuthorizeResponse) GetApiKeyId added in v0.112.0

func (x *AuthorizeResponse) GetApiKeyId() string

func (*AuthorizeResponse) GetAuthorized

func (x *AuthorizeResponse) GetAuthorized() bool

func (*AuthorizeResponse) GetExcludedFromRateLimiting added in v1.14.0

func (x *AuthorizeResponse) GetExcludedFromRateLimiting() bool

func (*AuthorizeResponse) GetOrganization

func (x *AuthorizeResponse) GetOrganization() *Organization

func (*AuthorizeResponse) GetProject

func (x *AuthorizeResponse) GetProject() *Project

func (*AuthorizeResponse) GetTenantId

func (x *AuthorizeResponse) GetTenantId() string

func (*AuthorizeResponse) GetUser

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 AuthorizeWorkerRequest

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

func (*AuthorizeWorkerRequest) Descriptor deprecated

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

Deprecated: Use AuthorizeWorkerRequest.ProtoReflect.Descriptor instead.

func (*AuthorizeWorkerRequest) GetToken

func (x *AuthorizeWorkerRequest) GetToken() string

func (*AuthorizeWorkerRequest) ProtoMessage

func (*AuthorizeWorkerRequest) ProtoMessage()

func (*AuthorizeWorkerRequest) ProtoReflect

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

func (*AuthorizeWorkerRequest) Reset

func (x *AuthorizeWorkerRequest) Reset()

func (*AuthorizeWorkerRequest) String

func (x *AuthorizeWorkerRequest) String() string

type AuthorizeWorkerResponse

type AuthorizeWorkerResponse struct {
	Authorized bool     `protobuf:"varint,1,opt,name=authorized,proto3" json:"authorized,omitempty"`
	Cluster    *Cluster `protobuf:"bytes,2,opt,name=cluster,proto3" json:"cluster,omitempty"`
	TenantId   string   `protobuf:"bytes,3,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthorizeWorkerResponse) Descriptor deprecated

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

Deprecated: Use AuthorizeWorkerResponse.ProtoReflect.Descriptor instead.

func (*AuthorizeWorkerResponse) GetAuthorized

func (x *AuthorizeWorkerResponse) GetAuthorized() bool

func (*AuthorizeWorkerResponse) GetCluster

func (x *AuthorizeWorkerResponse) GetCluster() *Cluster

func (*AuthorizeWorkerResponse) GetTenantId

func (x *AuthorizeWorkerResponse) GetTenantId() string

func (*AuthorizeWorkerResponse) ProtoMessage

func (*AuthorizeWorkerResponse) ProtoMessage()

func (*AuthorizeWorkerResponse) ProtoReflect

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

func (*AuthorizeWorkerResponse) Reset

func (x *AuthorizeWorkerResponse) Reset()

func (*AuthorizeWorkerResponse) String

func (x *AuthorizeWorkerResponse) String() string

type Cluster

type Cluster struct {
	Id   string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*Cluster) Descriptor deprecated

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

Deprecated: Use Cluster.ProtoReflect.Descriptor instead.

func (*Cluster) GetId

func (x *Cluster) GetId() string

func (*Cluster) GetName added in v1.8.0

func (x *Cluster) GetName() string

func (*Cluster) ProtoMessage

func (*Cluster) ProtoMessage()

func (*Cluster) ProtoReflect

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

func (*Cluster) Reset

func (x *Cluster) Reset()

func (*Cluster) String

func (x *Cluster) String() string

type Organization

type Organization struct {
	Id    string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	// contains filtered or unexported fields
}

func (*Organization) Descriptor deprecated

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

Deprecated: Use Organization.ProtoReflect.Descriptor instead.

func (*Organization) GetId

func (x *Organization) GetId() string

func (*Organization) GetTitle added in v1.7.0

func (x *Organization) GetTitle() string

func (*Organization) ProtoMessage

func (*Organization) ProtoMessage()

func (*Organization) ProtoReflect

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

func (*Organization) Reset

func (x *Organization) Reset()

func (*Organization) String

func (x *Organization) String() string

type Project

type Project struct {
	Id                     string                           `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Title                  string                           `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
	AssignedKubernetesEnvs []*Project_AssignedKubernetesEnv `` /* 129-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Project) Descriptor deprecated

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

Deprecated: Use Project.ProtoReflect.Descriptor instead.

func (*Project) GetAssignedKubernetesEnvs

func (x *Project) GetAssignedKubernetesEnvs() []*Project_AssignedKubernetesEnv

func (*Project) GetId

func (x *Project) GetId() string

func (*Project) GetTitle added in v1.7.0

func (x *Project) GetTitle() string

func (*Project) ProtoMessage

func (*Project) ProtoMessage()

func (*Project) ProtoReflect

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

func (*Project) Reset

func (x *Project) Reset()

func (*Project) String

func (x *Project) String() string

type Project_AssignedKubernetesEnv

type Project_AssignedKubernetesEnv struct {
	ClusterId   string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	ClusterName string `protobuf:"bytes,3,opt,name=cluster_name,json=clusterName,proto3" json:"cluster_name,omitempty"`
	Namespace   string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
	// contains filtered or unexported fields
}

func (*Project_AssignedKubernetesEnv) Descriptor deprecated

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

Deprecated: Use Project_AssignedKubernetesEnv.ProtoReflect.Descriptor instead.

func (*Project_AssignedKubernetesEnv) GetClusterId

func (x *Project_AssignedKubernetesEnv) GetClusterId() string

func (*Project_AssignedKubernetesEnv) GetClusterName added in v1.7.0

func (x *Project_AssignedKubernetesEnv) GetClusterName() string

func (*Project_AssignedKubernetesEnv) GetNamespace

func (x *Project_AssignedKubernetesEnv) GetNamespace() string

func (*Project_AssignedKubernetesEnv) ProtoMessage

func (*Project_AssignedKubernetesEnv) ProtoMessage()

func (*Project_AssignedKubernetesEnv) ProtoReflect

func (*Project_AssignedKubernetesEnv) Reset

func (x *Project_AssignedKubernetesEnv) Reset()

func (*Project_AssignedKubernetesEnv) String

type RbacInternalServiceClient

type RbacInternalServiceClient interface {
	Authorize(ctx context.Context, in *AuthorizeRequest, opts ...grpc.CallOption) (*AuthorizeResponse, error)
	// AuthorizeWorker authorizes requests from worker clusters.
	AuthorizeWorker(ctx context.Context, in *AuthorizeWorkerRequest, opts ...grpc.CallOption) (*AuthorizeWorkerResponse, 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)
	// AuthorizeWorker authorizes requests from worker clusters.
	AuthorizeWorker(context.Context, *AuthorizeWorkerRequest) (*AuthorizeWorkerResponse, 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) AuthorizeWorker

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

type User struct {
	Id         string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	InternalId string `protobuf:"bytes,2,opt,name=internal_id,json=internalId,proto3" json:"internal_id,omitempty"`
	// contains filtered or unexported fields
}

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetId

func (x *User) GetId() string

func (*User) GetInternalId added in v0.105.0

func (x *User) GetInternalId() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

Jump to

Keyboard shortcuts

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