Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterOortAdministratorServer(s grpc.ServiceRegistrar, srv OortAdministratorServer)
- func RegisterOortEvaluatorServer(s grpc.ServiceRegistrar, srv OortEvaluatorServer)
- type AdministrationAsyncClient
- type AdministrationAsyncReq
- func (*AdministrationAsyncReq) Descriptor() ([]byte, []int)deprecated
- func (x *AdministrationAsyncReq) GetKind() AdministrationAsyncReq_ReqKind
- func (x *AdministrationAsyncReq) GetReqMarshalled() []byte
- func (x *AdministrationAsyncReq) Marshal() ([]byte, error)
- func (*AdministrationAsyncReq) ProtoMessage()
- func (x *AdministrationAsyncReq) ProtoReflect() protoreflect.Message
- func (x *AdministrationAsyncReq) Reset()
- func (x *AdministrationAsyncReq) String() string
- func (x *AdministrationAsyncReq) Unmarshal(marshalled []byte) error
- type AdministrationAsyncReq_ReqKind
- func (AdministrationAsyncReq_ReqKind) Descriptor() protoreflect.EnumDescriptor
- func (x AdministrationAsyncReq_ReqKind) Enum() *AdministrationAsyncReq_ReqKind
- func (AdministrationAsyncReq_ReqKind) EnumDescriptor() ([]byte, []int)deprecated
- func (x AdministrationAsyncReq_ReqKind) Number() protoreflect.EnumNumber
- func (x AdministrationAsyncReq_ReqKind) String() string
- func (AdministrationAsyncReq_ReqKind) Type() protoreflect.EnumType
- type AdministrationAsyncResp
- func (*AdministrationAsyncResp) Descriptor() ([]byte, []int)deprecated
- func (x *AdministrationAsyncResp) GetError() string
- func (x *AdministrationAsyncResp) Marshal() ([]byte, error)
- func (*AdministrationAsyncResp) ProtoMessage()
- func (x *AdministrationAsyncResp) ProtoReflect() protoreflect.Message
- func (x *AdministrationAsyncResp) Reset()
- func (x *AdministrationAsyncResp) String() string
- func (x *AdministrationAsyncResp) Unmarshal(marshalled []byte) error
- type AdministrationCallback
- type AdministrationReq
- type AdministrationResp
- type Attribute
- func (*Attribute) Descriptor() ([]byte, []int)deprecated
- func (x *Attribute) GetId() *AttributeId
- func (x *Attribute) GetKind() Attribute_AttributeKind
- func (x *Attribute) GetValue() []byte
- func (*Attribute) ProtoMessage()
- func (x *Attribute) ProtoReflect() protoreflect.Message
- func (x *Attribute) Reset()
- func (x *Attribute) String() string
- type AttributeId
- type AttributeList
- type Attribute_AttributeKind
- func (Attribute_AttributeKind) Descriptor() protoreflect.EnumDescriptor
- func (x Attribute_AttributeKind) Enum() *Attribute_AttributeKind
- func (Attribute_AttributeKind) EnumDescriptor() ([]byte, []int)deprecated
- func (x Attribute_AttributeKind) Number() protoreflect.EnumNumber
- func (x Attribute_AttributeKind) String() string
- func (Attribute_AttributeKind) Type() protoreflect.EnumType
- type AuthorizationReq
- func (*AuthorizationReq) Descriptor() ([]byte, []int)deprecated
- func (x *AuthorizationReq) GetEnvAttributes() []*Attribute
- func (x *AuthorizationReq) GetObject() *Resource
- func (x *AuthorizationReq) GetPermissionName() string
- func (x *AuthorizationReq) GetSubject() *Resource
- func (*AuthorizationReq) ProtoMessage()
- func (x *AuthorizationReq) ProtoReflect() protoreflect.Message
- func (x *AuthorizationReq) Reset()
- func (x *AuthorizationReq) String() string
- type AuthorizationResp
- type BoolAttribute
- type Condition
- type CreateInheritanceRelReq
- func (*CreateInheritanceRelReq) Descriptor() ([]byte, []int)deprecated
- func (x *CreateInheritanceRelReq) GetFrom() *Resource
- func (x *CreateInheritanceRelReq) GetTo() *Resource
- func (x *CreateInheritanceRelReq) Kind() AdministrationAsyncReq_ReqKind
- func (x *CreateInheritanceRelReq) Marshal() ([]byte, error)
- func (*CreateInheritanceRelReq) ProtoMessage()
- func (x *CreateInheritanceRelReq) ProtoReflect() protoreflect.Message
- func (x *CreateInheritanceRelReq) Reset()
- func (x *CreateInheritanceRelReq) String() string
- func (x *CreateInheritanceRelReq) Unmarshal(marshalled []byte) error
- type CreatePolicyReq
- func (*CreatePolicyReq) Descriptor() ([]byte, []int)deprecated
- func (x *CreatePolicyReq) GetObjectScope() *Resource
- func (x *CreatePolicyReq) GetPermission() *Permission
- func (x *CreatePolicyReq) GetSubjectScope() *Resource
- func (x *CreatePolicyReq) Kind() AdministrationAsyncReq_ReqKind
- func (x *CreatePolicyReq) Marshal() ([]byte, error)
- func (*CreatePolicyReq) ProtoMessage()
- func (x *CreatePolicyReq) ProtoReflect() protoreflect.Message
- func (x *CreatePolicyReq) Reset()
- func (x *CreatePolicyReq) String() string
- func (x *CreatePolicyReq) Unmarshal(marshalled []byte) error
- type CreateResourceReq
- func (*CreateResourceReq) Descriptor() ([]byte, []int)deprecated
- func (x *CreateResourceReq) GetResource() *Resource
- func (x *CreateResourceReq) Kind() AdministrationAsyncReq_ReqKind
- func (x *CreateResourceReq) Marshal() ([]byte, error)
- func (*CreateResourceReq) ProtoMessage()
- func (x *CreateResourceReq) ProtoReflect() protoreflect.Message
- func (x *CreateResourceReq) Reset()
- func (x *CreateResourceReq) String() string
- func (x *CreateResourceReq) Unmarshal(marshalled []byte) error
- type DeleteAttributeReq
- func (*DeleteAttributeReq) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteAttributeReq) GetAttributeId() *AttributeId
- func (x *DeleteAttributeReq) GetResource() *Resource
- func (x *DeleteAttributeReq) Kind() AdministrationAsyncReq_ReqKind
- func (x *DeleteAttributeReq) Marshal() ([]byte, error)
- func (*DeleteAttributeReq) ProtoMessage()
- func (x *DeleteAttributeReq) ProtoReflect() protoreflect.Message
- func (x *DeleteAttributeReq) Reset()
- func (x *DeleteAttributeReq) String() string
- func (x *DeleteAttributeReq) Unmarshal(marshalled []byte) error
- type DeleteInheritanceRelReq
- func (*DeleteInheritanceRelReq) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteInheritanceRelReq) GetFrom() *Resource
- func (x *DeleteInheritanceRelReq) GetTo() *Resource
- func (x *DeleteInheritanceRelReq) Kind() AdministrationAsyncReq_ReqKind
- func (x *DeleteInheritanceRelReq) Marshal() ([]byte, error)
- func (*DeleteInheritanceRelReq) ProtoMessage()
- func (x *DeleteInheritanceRelReq) ProtoReflect() protoreflect.Message
- func (x *DeleteInheritanceRelReq) Reset()
- func (x *DeleteInheritanceRelReq) String() string
- func (x *DeleteInheritanceRelReq) Unmarshal(marshalled []byte) error
- type DeletePolicyReq
- func (*DeletePolicyReq) Descriptor() ([]byte, []int)deprecated
- func (x *DeletePolicyReq) GetObjectScope() *Resource
- func (x *DeletePolicyReq) GetPermission() *Permission
- func (x *DeletePolicyReq) GetSubjectScope() *Resource
- func (x *DeletePolicyReq) Kind() AdministrationAsyncReq_ReqKind
- func (x *DeletePolicyReq) Marshal() ([]byte, error)
- func (*DeletePolicyReq) ProtoMessage()
- func (x *DeletePolicyReq) ProtoReflect() protoreflect.Message
- func (x *DeletePolicyReq) Reset()
- func (x *DeletePolicyReq) String() string
- func (x *DeletePolicyReq) Unmarshal(marshalled []byte) error
- type DeleteResourceReq
- func (*DeleteResourceReq) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteResourceReq) GetResource() *Resource
- func (x *DeleteResourceReq) Kind() AdministrationAsyncReq_ReqKind
- func (x *DeleteResourceReq) Marshal() ([]byte, error)
- func (*DeleteResourceReq) ProtoMessage()
- func (x *DeleteResourceReq) ProtoReflect() protoreflect.Message
- func (x *DeleteResourceReq) Reset()
- func (x *DeleteResourceReq) String() string
- func (x *DeleteResourceReq) Unmarshal(marshalled []byte) error
- type Float64Attribute
- type GetGrantedPermissionsReq
- func (*GetGrantedPermissionsReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetGrantedPermissionsReq) GetEnvAttributes() []*Attribute
- func (x *GetGrantedPermissionsReq) GetSubject() *Resource
- func (*GetGrantedPermissionsReq) ProtoMessage()
- func (x *GetGrantedPermissionsReq) ProtoReflect() protoreflect.Message
- func (x *GetGrantedPermissionsReq) Reset()
- func (x *GetGrantedPermissionsReq) String() string
- type GetGrantedPermissionsResp
- func (*GetGrantedPermissionsResp) Descriptor() ([]byte, []int)deprecated
- func (x *GetGrantedPermissionsResp) GetPermissions() []*GrantedPermission
- func (*GetGrantedPermissionsResp) ProtoMessage()
- func (x *GetGrantedPermissionsResp) ProtoReflect() protoreflect.Message
- func (x *GetGrantedPermissionsResp) Reset()
- func (x *GetGrantedPermissionsResp) String() string
- type GrantedPermission
- func (*GrantedPermission) Descriptor() ([]byte, []int)deprecated
- func (x *GrantedPermission) GetName() string
- func (x *GrantedPermission) GetObject() *Resource
- func (*GrantedPermission) ProtoMessage()
- func (x *GrantedPermission) ProtoReflect() protoreflect.Message
- func (x *GrantedPermission) Reset()
- func (x *GrantedPermission) String() string
- type Int64Attribute
- type OortAdministratorClient
- type OortAdministratorServer
- type OortEvaluatorClient
- type OortEvaluatorServer
- type Permission
- func (*Permission) Descriptor() ([]byte, []int)deprecated
- func (x *Permission) GetCondition() *Condition
- func (x *Permission) GetKind() Permission_PermissionKind
- func (x *Permission) GetName() string
- func (*Permission) ProtoMessage()
- func (x *Permission) ProtoReflect() protoreflect.Message
- func (x *Permission) Reset()
- func (x *Permission) String() string
- type Permission_PermissionKind
- func (Permission_PermissionKind) Descriptor() protoreflect.EnumDescriptor
- func (x Permission_PermissionKind) Enum() *Permission_PermissionKind
- func (Permission_PermissionKind) EnumDescriptor() ([]byte, []int)deprecated
- func (x Permission_PermissionKind) Number() protoreflect.EnumNumber
- func (x Permission_PermissionKind) String() string
- func (Permission_PermissionKind) Type() protoreflect.EnumType
- type PutAttributeReq
- func (*PutAttributeReq) Descriptor() ([]byte, []int)deprecated
- func (x *PutAttributeReq) GetAttribute() *Attribute
- func (x *PutAttributeReq) GetResource() *Resource
- func (x *PutAttributeReq) Kind() AdministrationAsyncReq_ReqKind
- func (x *PutAttributeReq) Marshal() ([]byte, error)
- func (*PutAttributeReq) ProtoMessage()
- func (x *PutAttributeReq) ProtoReflect() protoreflect.Message
- func (x *PutAttributeReq) Reset()
- func (x *PutAttributeReq) String() string
- func (x *PutAttributeReq) Unmarshal(marshalled []byte) error
- type Resource
- type StringAttribute
- type UnimplementedOortAdministratorServer
- func (UnimplementedOortAdministratorServer) CreateInheritanceRel(context.Context, *CreateInheritanceRelReq) (*AdministrationResp, error)
- func (UnimplementedOortAdministratorServer) CreatePolicy(context.Context, *CreatePolicyReq) (*AdministrationResp, error)
- func (UnimplementedOortAdministratorServer) CreateResource(context.Context, *CreateResourceReq) (*AdministrationResp, error)
- func (UnimplementedOortAdministratorServer) DeleteAttribute(context.Context, *DeleteAttributeReq) (*AdministrationResp, error)
- func (UnimplementedOortAdministratorServer) DeleteInheritanceRel(context.Context, *DeleteInheritanceRelReq) (*AdministrationResp, error)
- func (UnimplementedOortAdministratorServer) DeletePolicy(context.Context, *DeletePolicyReq) (*AdministrationResp, error)
- func (UnimplementedOortAdministratorServer) DeleteResource(context.Context, *DeleteResourceReq) (*AdministrationResp, error)
- func (UnimplementedOortAdministratorServer) PutAttribute(context.Context, *PutAttributeReq) (*AdministrationResp, error)
- type UnimplementedOortEvaluatorServer
- type UnsafeOortAdministratorServer
- type UnsafeOortEvaluatorServer
Constants ¶
const (
AdministrationReqSubject = "oort.administration"
)
Variables ¶
var ( AdministrationAsyncReq_ReqKind_name = map[int32]string{ 0: "CreateResource", 1: "DeleteResource", 2: "PutAttribute", 3: "DeleteAttribute", 4: "CreateInheritanceRel", 5: "DeleteInheritanceRel", 6: "CreatePolicy", 7: "DeletePolicy", } AdministrationAsyncReq_ReqKind_value = map[string]int32{ "CreateResource": 0, "DeleteResource": 1, "PutAttribute": 2, "DeleteAttribute": 3, "CreateInheritanceRel": 4, "DeleteInheritanceRel": 5, "CreatePolicy": 6, "DeletePolicy": 7, } )
Enum value maps for AdministrationAsyncReq_ReqKind.
var ( Attribute_AttributeKind_name = map[int32]string{ 0: "INT64", 1: "FLOAT64", 2: "STRING", 3: "BOOL", } Attribute_AttributeKind_value = map[string]int32{ "INT64": 0, "FLOAT64": 1, "STRING": 2, "BOOL": 3, } )
Enum value maps for Attribute_AttributeKind.
var ( Permission_PermissionKind_name = map[int32]string{ 0: "ALLOW", 1: "DENY", } Permission_PermissionKind_value = map[string]int32{ "ALLOW": 0, "DENY": 1, } )
Enum value maps for Permission_PermissionKind.
var File_administrator_async_proto protoreflect.FileDescriptor
var File_administrator_proto protoreflect.FileDescriptor
var File_evaluator_proto protoreflect.FileDescriptor
var File_model_proto protoreflect.FileDescriptor
var OortAdministrator_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.OortAdministrator", HandlerType: (*OortAdministratorServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateResource", Handler: _OortAdministrator_CreateResource_Handler, }, { MethodName: "DeleteResource", Handler: _OortAdministrator_DeleteResource_Handler, }, { MethodName: "CreateInheritanceRel", Handler: _OortAdministrator_CreateInheritanceRel_Handler, }, { MethodName: "DeleteInheritanceRel", Handler: _OortAdministrator_DeleteInheritanceRel_Handler, }, { MethodName: "PutAttribute", Handler: _OortAdministrator_PutAttribute_Handler, }, { MethodName: "DeleteAttribute", Handler: _OortAdministrator_DeleteAttribute_Handler, }, { MethodName: "CreatePolicy", Handler: _OortAdministrator_CreatePolicy_Handler, }, { MethodName: "DeletePolicy", Handler: _OortAdministrator_DeletePolicy_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "administrator.proto", }
OortAdministrator_ServiceDesc is the grpc.ServiceDesc for OortAdministrator service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var OortEvaluator_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.OortEvaluator", HandlerType: (*OortEvaluatorServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Authorize", Handler: _OortEvaluator_Authorize_Handler, }, { MethodName: "GetGrantedPermissions", Handler: _OortEvaluator_GetGrantedPermissions_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "evaluator.proto", }
OortEvaluator_ServiceDesc is the grpc.ServiceDesc for OortEvaluator service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterOortAdministratorServer ¶
func RegisterOortAdministratorServer(s grpc.ServiceRegistrar, srv OortAdministratorServer)
func RegisterOortEvaluatorServer ¶
func RegisterOortEvaluatorServer(s grpc.ServiceRegistrar, srv OortEvaluatorServer)
Types ¶
type AdministrationAsyncClient ¶
type AdministrationAsyncClient struct {
// contains filtered or unexported fields
}
func NewAdministrationAsyncClient ¶
func NewAdministrationAsyncClient(natsAddress string) (*AdministrationAsyncClient, error)
func (*AdministrationAsyncClient) SendRequest ¶
func (n *AdministrationAsyncClient) SendRequest(req AdministrationReq, callback AdministrationCallback) error
type AdministrationAsyncReq ¶
type AdministrationAsyncReq struct { Kind AdministrationAsyncReq_ReqKind `protobuf:"varint,1,opt,name=kind,proto3,enum=proto.AdministrationAsyncReq_ReqKind" json:"kind,omitempty"` ReqMarshalled []byte `protobuf:"bytes,2,opt,name=reqMarshalled,proto3" json:"reqMarshalled,omitempty"` // contains filtered or unexported fields }
func (*AdministrationAsyncReq) Descriptor
deprecated
func (*AdministrationAsyncReq) Descriptor() ([]byte, []int)
Deprecated: Use AdministrationAsyncReq.ProtoReflect.Descriptor instead.
func (*AdministrationAsyncReq) GetKind ¶
func (x *AdministrationAsyncReq) GetKind() AdministrationAsyncReq_ReqKind
func (*AdministrationAsyncReq) GetReqMarshalled ¶
func (x *AdministrationAsyncReq) GetReqMarshalled() []byte
func (*AdministrationAsyncReq) Marshal ¶
func (x *AdministrationAsyncReq) Marshal() ([]byte, error)
func (*AdministrationAsyncReq) ProtoMessage ¶
func (*AdministrationAsyncReq) ProtoMessage()
func (*AdministrationAsyncReq) ProtoReflect ¶
func (x *AdministrationAsyncReq) ProtoReflect() protoreflect.Message
func (*AdministrationAsyncReq) Reset ¶
func (x *AdministrationAsyncReq) Reset()
func (*AdministrationAsyncReq) String ¶
func (x *AdministrationAsyncReq) String() string
func (*AdministrationAsyncReq) Unmarshal ¶
func (x *AdministrationAsyncReq) Unmarshal(marshalled []byte) error
type AdministrationAsyncReq_ReqKind ¶
type AdministrationAsyncReq_ReqKind int32
const ( AdministrationAsyncReq_CreateResource AdministrationAsyncReq_ReqKind = 0 AdministrationAsyncReq_DeleteResource AdministrationAsyncReq_ReqKind = 1 AdministrationAsyncReq_PutAttribute AdministrationAsyncReq_ReqKind = 2 AdministrationAsyncReq_DeleteAttribute AdministrationAsyncReq_ReqKind = 3 AdministrationAsyncReq_CreateInheritanceRel AdministrationAsyncReq_ReqKind = 4 AdministrationAsyncReq_DeleteInheritanceRel AdministrationAsyncReq_ReqKind = 5 AdministrationAsyncReq_CreatePolicy AdministrationAsyncReq_ReqKind = 6 AdministrationAsyncReq_DeletePolicy AdministrationAsyncReq_ReqKind = 7 )
func (AdministrationAsyncReq_ReqKind) Descriptor ¶
func (AdministrationAsyncReq_ReqKind) Descriptor() protoreflect.EnumDescriptor
func (AdministrationAsyncReq_ReqKind) Enum ¶
func (x AdministrationAsyncReq_ReqKind) Enum() *AdministrationAsyncReq_ReqKind
func (AdministrationAsyncReq_ReqKind) EnumDescriptor
deprecated
func (AdministrationAsyncReq_ReqKind) EnumDescriptor() ([]byte, []int)
Deprecated: Use AdministrationAsyncReq_ReqKind.Descriptor instead.
func (AdministrationAsyncReq_ReqKind) Number ¶
func (x AdministrationAsyncReq_ReqKind) Number() protoreflect.EnumNumber
func (AdministrationAsyncReq_ReqKind) String ¶
func (x AdministrationAsyncReq_ReqKind) String() string
func (AdministrationAsyncReq_ReqKind) Type ¶
func (AdministrationAsyncReq_ReqKind) Type() protoreflect.EnumType
type AdministrationAsyncResp ¶
type AdministrationAsyncResp struct { Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
func (*AdministrationAsyncResp) Descriptor
deprecated
func (*AdministrationAsyncResp) Descriptor() ([]byte, []int)
Deprecated: Use AdministrationAsyncResp.ProtoReflect.Descriptor instead.
func (*AdministrationAsyncResp) GetError ¶
func (x *AdministrationAsyncResp) GetError() string
func (*AdministrationAsyncResp) Marshal ¶
func (x *AdministrationAsyncResp) Marshal() ([]byte, error)
func (*AdministrationAsyncResp) ProtoMessage ¶
func (*AdministrationAsyncResp) ProtoMessage()
func (*AdministrationAsyncResp) ProtoReflect ¶
func (x *AdministrationAsyncResp) ProtoReflect() protoreflect.Message
func (*AdministrationAsyncResp) Reset ¶
func (x *AdministrationAsyncResp) Reset()
func (*AdministrationAsyncResp) String ¶
func (x *AdministrationAsyncResp) String() string
func (*AdministrationAsyncResp) Unmarshal ¶
func (x *AdministrationAsyncResp) Unmarshal(marshalled []byte) error
type AdministrationCallback ¶
type AdministrationCallback func(resp *AdministrationAsyncResp)
type AdministrationReq ¶
type AdministrationReq interface { Marshal() ([]byte, error) Unmarshal([]byte) error Kind() AdministrationAsyncReq_ReqKind }
type AdministrationResp ¶
type AdministrationResp struct {
// contains filtered or unexported fields
}
func (*AdministrationResp) Descriptor
deprecated
func (*AdministrationResp) Descriptor() ([]byte, []int)
Deprecated: Use AdministrationResp.ProtoReflect.Descriptor instead.
func (*AdministrationResp) ProtoMessage ¶
func (*AdministrationResp) ProtoMessage()
func (*AdministrationResp) ProtoReflect ¶
func (x *AdministrationResp) ProtoReflect() protoreflect.Message
func (*AdministrationResp) Reset ¶
func (x *AdministrationResp) Reset()
func (*AdministrationResp) String ¶
func (x *AdministrationResp) String() string
type Attribute ¶
type Attribute struct { Id *AttributeId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Kind Attribute_AttributeKind `protobuf:"varint,2,opt,name=kind,proto3,enum=proto.Attribute_AttributeKind" json:"kind,omitempty"` Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*Attribute) Descriptor
deprecated
func (*Attribute) GetId ¶
func (x *Attribute) GetId() *AttributeId
func (*Attribute) GetKind ¶
func (x *Attribute) GetKind() Attribute_AttributeKind
func (*Attribute) ProtoMessage ¶
func (*Attribute) ProtoMessage()
func (*Attribute) ProtoReflect ¶
func (x *Attribute) ProtoReflect() protoreflect.Message
type AttributeId ¶
type AttributeId struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*AttributeId) Descriptor
deprecated
func (*AttributeId) Descriptor() ([]byte, []int)
Deprecated: Use AttributeId.ProtoReflect.Descriptor instead.
func (*AttributeId) GetName ¶
func (x *AttributeId) GetName() string
func (*AttributeId) ProtoMessage ¶
func (*AttributeId) ProtoMessage()
func (*AttributeId) ProtoReflect ¶
func (x *AttributeId) ProtoReflect() protoreflect.Message
func (*AttributeId) Reset ¶
func (x *AttributeId) Reset()
func (*AttributeId) String ¶
func (x *AttributeId) String() string
type AttributeList ¶
type AttributeList struct { Attributes []*Attribute `protobuf:"bytes,1,rep,name=attributes,proto3" json:"attributes,omitempty"` // contains filtered or unexported fields }
func (*AttributeList) Descriptor
deprecated
func (*AttributeList) Descriptor() ([]byte, []int)
Deprecated: Use AttributeList.ProtoReflect.Descriptor instead.
func (*AttributeList) GetAttributes ¶
func (x *AttributeList) GetAttributes() []*Attribute
func (*AttributeList) ProtoMessage ¶
func (*AttributeList) ProtoMessage()
func (*AttributeList) ProtoReflect ¶
func (x *AttributeList) ProtoReflect() protoreflect.Message
func (*AttributeList) Reset ¶
func (x *AttributeList) Reset()
func (*AttributeList) String ¶
func (x *AttributeList) String() string
type Attribute_AttributeKind ¶
type Attribute_AttributeKind int32
const ( Attribute_INT64 Attribute_AttributeKind = 0 Attribute_FLOAT64 Attribute_AttributeKind = 1 Attribute_STRING Attribute_AttributeKind = 2 Attribute_BOOL Attribute_AttributeKind = 3 )
func (Attribute_AttributeKind) Descriptor ¶
func (Attribute_AttributeKind) Descriptor() protoreflect.EnumDescriptor
func (Attribute_AttributeKind) Enum ¶
func (x Attribute_AttributeKind) Enum() *Attribute_AttributeKind
func (Attribute_AttributeKind) EnumDescriptor
deprecated
func (Attribute_AttributeKind) EnumDescriptor() ([]byte, []int)
Deprecated: Use Attribute_AttributeKind.Descriptor instead.
func (Attribute_AttributeKind) Number ¶
func (x Attribute_AttributeKind) Number() protoreflect.EnumNumber
func (Attribute_AttributeKind) String ¶
func (x Attribute_AttributeKind) String() string
func (Attribute_AttributeKind) Type ¶
func (Attribute_AttributeKind) Type() protoreflect.EnumType
type AuthorizationReq ¶
type AuthorizationReq struct { Subject *Resource `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` Object *Resource `protobuf:"bytes,2,opt,name=object,proto3" json:"object,omitempty"` EnvAttributes []*Attribute `protobuf:"bytes,3,rep,name=envAttributes,proto3" json:"envAttributes,omitempty"` PermissionName string `protobuf:"bytes,4,opt,name=permissionName,proto3" json:"permissionName,omitempty"` // contains filtered or unexported fields }
func (*AuthorizationReq) Descriptor
deprecated
func (*AuthorizationReq) Descriptor() ([]byte, []int)
Deprecated: Use AuthorizationReq.ProtoReflect.Descriptor instead.
func (*AuthorizationReq) GetEnvAttributes ¶
func (x *AuthorizationReq) GetEnvAttributes() []*Attribute
func (*AuthorizationReq) GetObject ¶
func (x *AuthorizationReq) GetObject() *Resource
func (*AuthorizationReq) GetPermissionName ¶
func (x *AuthorizationReq) GetPermissionName() string
func (*AuthorizationReq) GetSubject ¶
func (x *AuthorizationReq) GetSubject() *Resource
func (*AuthorizationReq) ProtoMessage ¶
func (*AuthorizationReq) ProtoMessage()
func (*AuthorizationReq) ProtoReflect ¶
func (x *AuthorizationReq) ProtoReflect() protoreflect.Message
func (*AuthorizationReq) Reset ¶
func (x *AuthorizationReq) Reset()
func (*AuthorizationReq) String ¶
func (x *AuthorizationReq) String() string
type AuthorizationResp ¶
type AuthorizationResp struct { Authorized bool `protobuf:"varint,1,opt,name=authorized,proto3" json:"authorized,omitempty"` // contains filtered or unexported fields }
func (*AuthorizationResp) Descriptor
deprecated
func (*AuthorizationResp) Descriptor() ([]byte, []int)
Deprecated: Use AuthorizationResp.ProtoReflect.Descriptor instead.
func (*AuthorizationResp) GetAuthorized ¶
func (x *AuthorizationResp) GetAuthorized() bool
func (*AuthorizationResp) ProtoMessage ¶
func (*AuthorizationResp) ProtoMessage()
func (*AuthorizationResp) ProtoReflect ¶
func (x *AuthorizationResp) ProtoReflect() protoreflect.Message
func (*AuthorizationResp) Reset ¶
func (x *AuthorizationResp) Reset()
func (*AuthorizationResp) String ¶
func (x *AuthorizationResp) String() string
type BoolAttribute ¶
type BoolAttribute struct { Value bool `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*BoolAttribute) Descriptor
deprecated
func (*BoolAttribute) Descriptor() ([]byte, []int)
Deprecated: Use BoolAttribute.ProtoReflect.Descriptor instead.
func (*BoolAttribute) GetValue ¶
func (x *BoolAttribute) GetValue() bool
func (*BoolAttribute) ProtoMessage ¶
func (*BoolAttribute) ProtoMessage()
func (*BoolAttribute) ProtoReflect ¶
func (x *BoolAttribute) ProtoReflect() protoreflect.Message
func (*BoolAttribute) Reset ¶
func (x *BoolAttribute) Reset()
func (*BoolAttribute) String ¶
func (x *BoolAttribute) String() string
type Condition ¶
type Condition struct { Expression string `protobuf:"bytes,1,opt,name=expression,proto3" json:"expression,omitempty"` // contains filtered or unexported fields }
func (*Condition) Descriptor
deprecated
func (*Condition) GetExpression ¶
func (*Condition) ProtoMessage ¶
func (*Condition) ProtoMessage()
func (*Condition) ProtoReflect ¶
func (x *Condition) ProtoReflect() protoreflect.Message
type CreateInheritanceRelReq ¶
type CreateInheritanceRelReq struct { From *Resource `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` To *Resource `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"` // contains filtered or unexported fields }
func (*CreateInheritanceRelReq) Descriptor
deprecated
func (*CreateInheritanceRelReq) Descriptor() ([]byte, []int)
Deprecated: Use CreateInheritanceRelReq.ProtoReflect.Descriptor instead.
func (*CreateInheritanceRelReq) GetFrom ¶
func (x *CreateInheritanceRelReq) GetFrom() *Resource
func (*CreateInheritanceRelReq) GetTo ¶
func (x *CreateInheritanceRelReq) GetTo() *Resource
func (*CreateInheritanceRelReq) Kind ¶
func (x *CreateInheritanceRelReq) Kind() AdministrationAsyncReq_ReqKind
func (*CreateInheritanceRelReq) Marshal ¶
func (x *CreateInheritanceRelReq) Marshal() ([]byte, error)
func (*CreateInheritanceRelReq) ProtoMessage ¶
func (*CreateInheritanceRelReq) ProtoMessage()
func (*CreateInheritanceRelReq) ProtoReflect ¶
func (x *CreateInheritanceRelReq) ProtoReflect() protoreflect.Message
func (*CreateInheritanceRelReq) Reset ¶
func (x *CreateInheritanceRelReq) Reset()
func (*CreateInheritanceRelReq) String ¶
func (x *CreateInheritanceRelReq) String() string
func (*CreateInheritanceRelReq) Unmarshal ¶
func (x *CreateInheritanceRelReq) Unmarshal(marshalled []byte) error
type CreatePolicyReq ¶
type CreatePolicyReq struct { SubjectScope *Resource `protobuf:"bytes,1,opt,name=subjectScope,proto3" json:"subjectScope,omitempty"` ObjectScope *Resource `protobuf:"bytes,2,opt,name=objectScope,proto3" json:"objectScope,omitempty"` Permission *Permission `protobuf:"bytes,3,opt,name=permission,proto3" json:"permission,omitempty"` // contains filtered or unexported fields }
func (*CreatePolicyReq) Descriptor
deprecated
func (*CreatePolicyReq) Descriptor() ([]byte, []int)
Deprecated: Use CreatePolicyReq.ProtoReflect.Descriptor instead.
func (*CreatePolicyReq) GetObjectScope ¶
func (x *CreatePolicyReq) GetObjectScope() *Resource
func (*CreatePolicyReq) GetPermission ¶
func (x *CreatePolicyReq) GetPermission() *Permission
func (*CreatePolicyReq) GetSubjectScope ¶
func (x *CreatePolicyReq) GetSubjectScope() *Resource
func (*CreatePolicyReq) Kind ¶
func (x *CreatePolicyReq) Kind() AdministrationAsyncReq_ReqKind
func (*CreatePolicyReq) Marshal ¶
func (x *CreatePolicyReq) Marshal() ([]byte, error)
func (*CreatePolicyReq) ProtoMessage ¶
func (*CreatePolicyReq) ProtoMessage()
func (*CreatePolicyReq) ProtoReflect ¶
func (x *CreatePolicyReq) ProtoReflect() protoreflect.Message
func (*CreatePolicyReq) Reset ¶
func (x *CreatePolicyReq) Reset()
func (*CreatePolicyReq) String ¶
func (x *CreatePolicyReq) String() string
func (*CreatePolicyReq) Unmarshal ¶
func (x *CreatePolicyReq) Unmarshal(marshalled []byte) error
type CreateResourceReq ¶
type CreateResourceReq struct { Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` // contains filtered or unexported fields }
func (*CreateResourceReq) Descriptor
deprecated
func (*CreateResourceReq) Descriptor() ([]byte, []int)
Deprecated: Use CreateResourceReq.ProtoReflect.Descriptor instead.
func (*CreateResourceReq) GetResource ¶
func (x *CreateResourceReq) GetResource() *Resource
func (*CreateResourceReq) Kind ¶
func (x *CreateResourceReq) Kind() AdministrationAsyncReq_ReqKind
func (*CreateResourceReq) Marshal ¶
func (x *CreateResourceReq) Marshal() ([]byte, error)
func (*CreateResourceReq) ProtoMessage ¶
func (*CreateResourceReq) ProtoMessage()
func (*CreateResourceReq) ProtoReflect ¶
func (x *CreateResourceReq) ProtoReflect() protoreflect.Message
func (*CreateResourceReq) Reset ¶
func (x *CreateResourceReq) Reset()
func (*CreateResourceReq) String ¶
func (x *CreateResourceReq) String() string
func (*CreateResourceReq) Unmarshal ¶
func (x *CreateResourceReq) Unmarshal(marshalled []byte) error
type DeleteAttributeReq ¶
type DeleteAttributeReq struct { Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` AttributeId *AttributeId `protobuf:"bytes,2,opt,name=attributeId,proto3" json:"attributeId,omitempty"` // contains filtered or unexported fields }
func (*DeleteAttributeReq) Descriptor
deprecated
func (*DeleteAttributeReq) Descriptor() ([]byte, []int)
Deprecated: Use DeleteAttributeReq.ProtoReflect.Descriptor instead.
func (*DeleteAttributeReq) GetAttributeId ¶
func (x *DeleteAttributeReq) GetAttributeId() *AttributeId
func (*DeleteAttributeReq) GetResource ¶
func (x *DeleteAttributeReq) GetResource() *Resource
func (*DeleteAttributeReq) Kind ¶
func (x *DeleteAttributeReq) Kind() AdministrationAsyncReq_ReqKind
func (*DeleteAttributeReq) Marshal ¶
func (x *DeleteAttributeReq) Marshal() ([]byte, error)
func (*DeleteAttributeReq) ProtoMessage ¶
func (*DeleteAttributeReq) ProtoMessage()
func (*DeleteAttributeReq) ProtoReflect ¶
func (x *DeleteAttributeReq) ProtoReflect() protoreflect.Message
func (*DeleteAttributeReq) Reset ¶
func (x *DeleteAttributeReq) Reset()
func (*DeleteAttributeReq) String ¶
func (x *DeleteAttributeReq) String() string
func (*DeleteAttributeReq) Unmarshal ¶
func (x *DeleteAttributeReq) Unmarshal(marshalled []byte) error
type DeleteInheritanceRelReq ¶
type DeleteInheritanceRelReq struct { From *Resource `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` To *Resource `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"` // contains filtered or unexported fields }
func (*DeleteInheritanceRelReq) Descriptor
deprecated
func (*DeleteInheritanceRelReq) Descriptor() ([]byte, []int)
Deprecated: Use DeleteInheritanceRelReq.ProtoReflect.Descriptor instead.
func (*DeleteInheritanceRelReq) GetFrom ¶
func (x *DeleteInheritanceRelReq) GetFrom() *Resource
func (*DeleteInheritanceRelReq) GetTo ¶
func (x *DeleteInheritanceRelReq) GetTo() *Resource
func (*DeleteInheritanceRelReq) Kind ¶
func (x *DeleteInheritanceRelReq) Kind() AdministrationAsyncReq_ReqKind
func (*DeleteInheritanceRelReq) Marshal ¶
func (x *DeleteInheritanceRelReq) Marshal() ([]byte, error)
func (*DeleteInheritanceRelReq) ProtoMessage ¶
func (*DeleteInheritanceRelReq) ProtoMessage()
func (*DeleteInheritanceRelReq) ProtoReflect ¶
func (x *DeleteInheritanceRelReq) ProtoReflect() protoreflect.Message
func (*DeleteInheritanceRelReq) Reset ¶
func (x *DeleteInheritanceRelReq) Reset()
func (*DeleteInheritanceRelReq) String ¶
func (x *DeleteInheritanceRelReq) String() string
func (*DeleteInheritanceRelReq) Unmarshal ¶
func (x *DeleteInheritanceRelReq) Unmarshal(marshalled []byte) error
type DeletePolicyReq ¶
type DeletePolicyReq struct { SubjectScope *Resource `protobuf:"bytes,1,opt,name=subjectScope,proto3" json:"subjectScope,omitempty"` ObjectScope *Resource `protobuf:"bytes,2,opt,name=objectScope,proto3" json:"objectScope,omitempty"` Permission *Permission `protobuf:"bytes,3,opt,name=permission,proto3" json:"permission,omitempty"` // contains filtered or unexported fields }
func (*DeletePolicyReq) Descriptor
deprecated
func (*DeletePolicyReq) Descriptor() ([]byte, []int)
Deprecated: Use DeletePolicyReq.ProtoReflect.Descriptor instead.
func (*DeletePolicyReq) GetObjectScope ¶
func (x *DeletePolicyReq) GetObjectScope() *Resource
func (*DeletePolicyReq) GetPermission ¶
func (x *DeletePolicyReq) GetPermission() *Permission
func (*DeletePolicyReq) GetSubjectScope ¶
func (x *DeletePolicyReq) GetSubjectScope() *Resource
func (*DeletePolicyReq) Kind ¶
func (x *DeletePolicyReq) Kind() AdministrationAsyncReq_ReqKind
func (*DeletePolicyReq) Marshal ¶
func (x *DeletePolicyReq) Marshal() ([]byte, error)
func (*DeletePolicyReq) ProtoMessage ¶
func (*DeletePolicyReq) ProtoMessage()
func (*DeletePolicyReq) ProtoReflect ¶
func (x *DeletePolicyReq) ProtoReflect() protoreflect.Message
func (*DeletePolicyReq) Reset ¶
func (x *DeletePolicyReq) Reset()
func (*DeletePolicyReq) String ¶
func (x *DeletePolicyReq) String() string
func (*DeletePolicyReq) Unmarshal ¶
func (x *DeletePolicyReq) Unmarshal(marshalled []byte) error
type DeleteResourceReq ¶
type DeleteResourceReq struct { Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` // contains filtered or unexported fields }
func (*DeleteResourceReq) Descriptor
deprecated
func (*DeleteResourceReq) Descriptor() ([]byte, []int)
Deprecated: Use DeleteResourceReq.ProtoReflect.Descriptor instead.
func (*DeleteResourceReq) GetResource ¶
func (x *DeleteResourceReq) GetResource() *Resource
func (*DeleteResourceReq) Kind ¶
func (x *DeleteResourceReq) Kind() AdministrationAsyncReq_ReqKind
func (*DeleteResourceReq) Marshal ¶
func (x *DeleteResourceReq) Marshal() ([]byte, error)
func (*DeleteResourceReq) ProtoMessage ¶
func (*DeleteResourceReq) ProtoMessage()
func (*DeleteResourceReq) ProtoReflect ¶
func (x *DeleteResourceReq) ProtoReflect() protoreflect.Message
func (*DeleteResourceReq) Reset ¶
func (x *DeleteResourceReq) Reset()
func (*DeleteResourceReq) String ¶
func (x *DeleteResourceReq) String() string
func (*DeleteResourceReq) Unmarshal ¶
func (x *DeleteResourceReq) Unmarshal(marshalled []byte) error
type Float64Attribute ¶
type Float64Attribute struct { Value float64 `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*Float64Attribute) Descriptor
deprecated
func (*Float64Attribute) Descriptor() ([]byte, []int)
Deprecated: Use Float64Attribute.ProtoReflect.Descriptor instead.
func (*Float64Attribute) GetValue ¶
func (x *Float64Attribute) GetValue() float64
func (*Float64Attribute) ProtoMessage ¶
func (*Float64Attribute) ProtoMessage()
func (*Float64Attribute) ProtoReflect ¶
func (x *Float64Attribute) ProtoReflect() protoreflect.Message
func (*Float64Attribute) Reset ¶
func (x *Float64Attribute) Reset()
func (*Float64Attribute) String ¶
func (x *Float64Attribute) String() string
type GetGrantedPermissionsReq ¶
type GetGrantedPermissionsReq struct { Subject *Resource `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` EnvAttributes []*Attribute `protobuf:"bytes,2,rep,name=envAttributes,proto3" json:"envAttributes,omitempty"` // contains filtered or unexported fields }
func (*GetGrantedPermissionsReq) Descriptor
deprecated
func (*GetGrantedPermissionsReq) Descriptor() ([]byte, []int)
Deprecated: Use GetGrantedPermissionsReq.ProtoReflect.Descriptor instead.
func (*GetGrantedPermissionsReq) GetEnvAttributes ¶
func (x *GetGrantedPermissionsReq) GetEnvAttributes() []*Attribute
func (*GetGrantedPermissionsReq) GetSubject ¶
func (x *GetGrantedPermissionsReq) GetSubject() *Resource
func (*GetGrantedPermissionsReq) ProtoMessage ¶
func (*GetGrantedPermissionsReq) ProtoMessage()
func (*GetGrantedPermissionsReq) ProtoReflect ¶
func (x *GetGrantedPermissionsReq) ProtoReflect() protoreflect.Message
func (*GetGrantedPermissionsReq) Reset ¶
func (x *GetGrantedPermissionsReq) Reset()
func (*GetGrantedPermissionsReq) String ¶
func (x *GetGrantedPermissionsReq) String() string
type GetGrantedPermissionsResp ¶
type GetGrantedPermissionsResp struct { Permissions []*GrantedPermission `protobuf:"bytes,1,rep,name=permissions,proto3" json:"permissions,omitempty"` // contains filtered or unexported fields }
func (*GetGrantedPermissionsResp) Descriptor
deprecated
func (*GetGrantedPermissionsResp) Descriptor() ([]byte, []int)
Deprecated: Use GetGrantedPermissionsResp.ProtoReflect.Descriptor instead.
func (*GetGrantedPermissionsResp) GetPermissions ¶
func (x *GetGrantedPermissionsResp) GetPermissions() []*GrantedPermission
func (*GetGrantedPermissionsResp) ProtoMessage ¶
func (*GetGrantedPermissionsResp) ProtoMessage()
func (*GetGrantedPermissionsResp) ProtoReflect ¶
func (x *GetGrantedPermissionsResp) ProtoReflect() protoreflect.Message
func (*GetGrantedPermissionsResp) Reset ¶
func (x *GetGrantedPermissionsResp) Reset()
func (*GetGrantedPermissionsResp) String ¶
func (x *GetGrantedPermissionsResp) String() string
type GrantedPermission ¶
type GrantedPermission struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Object *Resource `protobuf:"bytes,2,opt,name=object,proto3" json:"object,omitempty"` // contains filtered or unexported fields }
func (*GrantedPermission) Descriptor
deprecated
func (*GrantedPermission) Descriptor() ([]byte, []int)
Deprecated: Use GrantedPermission.ProtoReflect.Descriptor instead.
func (*GrantedPermission) GetName ¶
func (x *GrantedPermission) GetName() string
func (*GrantedPermission) GetObject ¶
func (x *GrantedPermission) GetObject() *Resource
func (*GrantedPermission) ProtoMessage ¶
func (*GrantedPermission) ProtoMessage()
func (*GrantedPermission) ProtoReflect ¶
func (x *GrantedPermission) ProtoReflect() protoreflect.Message
func (*GrantedPermission) Reset ¶
func (x *GrantedPermission) Reset()
func (*GrantedPermission) String ¶
func (x *GrantedPermission) String() string
type Int64Attribute ¶
type Int64Attribute struct { Value int64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*Int64Attribute) Descriptor
deprecated
func (*Int64Attribute) Descriptor() ([]byte, []int)
Deprecated: Use Int64Attribute.ProtoReflect.Descriptor instead.
func (*Int64Attribute) GetValue ¶
func (x *Int64Attribute) GetValue() int64
func (*Int64Attribute) ProtoMessage ¶
func (*Int64Attribute) ProtoMessage()
func (*Int64Attribute) ProtoReflect ¶
func (x *Int64Attribute) ProtoReflect() protoreflect.Message
func (*Int64Attribute) Reset ¶
func (x *Int64Attribute) Reset()
func (*Int64Attribute) String ¶
func (x *Int64Attribute) String() string
type OortAdministratorClient ¶
type OortAdministratorClient interface { CreateResource(ctx context.Context, in *CreateResourceReq, opts ...grpc.CallOption) (*AdministrationResp, error) DeleteResource(ctx context.Context, in *DeleteResourceReq, opts ...grpc.CallOption) (*AdministrationResp, error) CreateInheritanceRel(ctx context.Context, in *CreateInheritanceRelReq, opts ...grpc.CallOption) (*AdministrationResp, error) DeleteInheritanceRel(ctx context.Context, in *DeleteInheritanceRelReq, opts ...grpc.CallOption) (*AdministrationResp, error) PutAttribute(ctx context.Context, in *PutAttributeReq, opts ...grpc.CallOption) (*AdministrationResp, error) DeleteAttribute(ctx context.Context, in *DeleteAttributeReq, opts ...grpc.CallOption) (*AdministrationResp, error) CreatePolicy(ctx context.Context, in *CreatePolicyReq, opts ...grpc.CallOption) (*AdministrationResp, error) DeletePolicy(ctx context.Context, in *DeletePolicyReq, opts ...grpc.CallOption) (*AdministrationResp, error) }
OortAdministratorClient is the client API for OortAdministrator 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 NewOortAdministratorClient ¶
func NewOortAdministratorClient(cc grpc.ClientConnInterface) OortAdministratorClient
type OortAdministratorServer ¶
type OortAdministratorServer interface { CreateResource(context.Context, *CreateResourceReq) (*AdministrationResp, error) DeleteResource(context.Context, *DeleteResourceReq) (*AdministrationResp, error) CreateInheritanceRel(context.Context, *CreateInheritanceRelReq) (*AdministrationResp, error) DeleteInheritanceRel(context.Context, *DeleteInheritanceRelReq) (*AdministrationResp, error) PutAttribute(context.Context, *PutAttributeReq) (*AdministrationResp, error) DeleteAttribute(context.Context, *DeleteAttributeReq) (*AdministrationResp, error) CreatePolicy(context.Context, *CreatePolicyReq) (*AdministrationResp, error) DeletePolicy(context.Context, *DeletePolicyReq) (*AdministrationResp, error) // contains filtered or unexported methods }
OortAdministratorServer is the server API for OortAdministrator service. All implementations must embed UnimplementedOortAdministratorServer for forward compatibility
type OortEvaluatorClient ¶
type OortEvaluatorClient interface { Authorize(ctx context.Context, in *AuthorizationReq, opts ...grpc.CallOption) (*AuthorizationResp, error) GetGrantedPermissions(ctx context.Context, in *GetGrantedPermissionsReq, opts ...grpc.CallOption) (*GetGrantedPermissionsResp, error) }
OortEvaluatorClient is the client API for OortEvaluator 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 NewOortEvaluatorClient ¶
func NewOortEvaluatorClient(cc grpc.ClientConnInterface) OortEvaluatorClient
type OortEvaluatorServer ¶
type OortEvaluatorServer interface { Authorize(context.Context, *AuthorizationReq) (*AuthorizationResp, error) GetGrantedPermissions(context.Context, *GetGrantedPermissionsReq) (*GetGrantedPermissionsResp, error) // contains filtered or unexported methods }
OortEvaluatorServer is the server API for OortEvaluator service. All implementations must embed UnimplementedOortEvaluatorServer for forward compatibility
type Permission ¶
type Permission struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Kind Permission_PermissionKind `protobuf:"varint,2,opt,name=kind,proto3,enum=proto.Permission_PermissionKind" json:"kind,omitempty"` Condition *Condition `protobuf:"bytes,3,opt,name=condition,proto3" json:"condition,omitempty"` // contains filtered or unexported fields }
func (*Permission) Descriptor
deprecated
func (*Permission) Descriptor() ([]byte, []int)
Deprecated: Use Permission.ProtoReflect.Descriptor instead.
func (*Permission) GetCondition ¶
func (x *Permission) GetCondition() *Condition
func (*Permission) GetKind ¶
func (x *Permission) GetKind() Permission_PermissionKind
func (*Permission) GetName ¶
func (x *Permission) GetName() string
func (*Permission) ProtoMessage ¶
func (*Permission) ProtoMessage()
func (*Permission) ProtoReflect ¶
func (x *Permission) ProtoReflect() protoreflect.Message
func (*Permission) Reset ¶
func (x *Permission) Reset()
func (*Permission) String ¶
func (x *Permission) String() string
type Permission_PermissionKind ¶
type Permission_PermissionKind int32
const ( Permission_ALLOW Permission_PermissionKind = 0 Permission_DENY Permission_PermissionKind = 1 )
func (Permission_PermissionKind) Descriptor ¶
func (Permission_PermissionKind) Descriptor() protoreflect.EnumDescriptor
func (Permission_PermissionKind) Enum ¶
func (x Permission_PermissionKind) Enum() *Permission_PermissionKind
func (Permission_PermissionKind) EnumDescriptor
deprecated
func (Permission_PermissionKind) EnumDescriptor() ([]byte, []int)
Deprecated: Use Permission_PermissionKind.Descriptor instead.
func (Permission_PermissionKind) Number ¶
func (x Permission_PermissionKind) Number() protoreflect.EnumNumber
func (Permission_PermissionKind) String ¶
func (x Permission_PermissionKind) String() string
func (Permission_PermissionKind) Type ¶
func (Permission_PermissionKind) Type() protoreflect.EnumType
type PutAttributeReq ¶
type PutAttributeReq struct { Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` Attribute *Attribute `protobuf:"bytes,2,opt,name=attribute,proto3" json:"attribute,omitempty"` // contains filtered or unexported fields }
func (*PutAttributeReq) Descriptor
deprecated
func (*PutAttributeReq) Descriptor() ([]byte, []int)
Deprecated: Use PutAttributeReq.ProtoReflect.Descriptor instead.
func (*PutAttributeReq) GetAttribute ¶
func (x *PutAttributeReq) GetAttribute() *Attribute
func (*PutAttributeReq) GetResource ¶
func (x *PutAttributeReq) GetResource() *Resource
func (*PutAttributeReq) Kind ¶
func (x *PutAttributeReq) Kind() AdministrationAsyncReq_ReqKind
func (*PutAttributeReq) Marshal ¶
func (x *PutAttributeReq) Marshal() ([]byte, error)
func (*PutAttributeReq) ProtoMessage ¶
func (*PutAttributeReq) ProtoMessage()
func (*PutAttributeReq) ProtoReflect ¶
func (x *PutAttributeReq) ProtoReflect() protoreflect.Message
func (*PutAttributeReq) Reset ¶
func (x *PutAttributeReq) Reset()
func (*PutAttributeReq) String ¶
func (x *PutAttributeReq) String() string
func (*PutAttributeReq) Unmarshal ¶
func (x *PutAttributeReq) Unmarshal(marshalled []byte) error
type Resource ¶
type Resource struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"` // contains filtered or unexported fields }
func (*Resource) Descriptor
deprecated
func (*Resource) ProtoMessage ¶
func (*Resource) ProtoMessage()
func (*Resource) ProtoReflect ¶
func (x *Resource) ProtoReflect() protoreflect.Message
type StringAttribute ¶
type StringAttribute struct { Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*StringAttribute) Descriptor
deprecated
func (*StringAttribute) Descriptor() ([]byte, []int)
Deprecated: Use StringAttribute.ProtoReflect.Descriptor instead.
func (*StringAttribute) GetValue ¶
func (x *StringAttribute) GetValue() string
func (*StringAttribute) ProtoMessage ¶
func (*StringAttribute) ProtoMessage()
func (*StringAttribute) ProtoReflect ¶
func (x *StringAttribute) ProtoReflect() protoreflect.Message
func (*StringAttribute) Reset ¶
func (x *StringAttribute) Reset()
func (*StringAttribute) String ¶
func (x *StringAttribute) String() string
type UnimplementedOortAdministratorServer ¶
type UnimplementedOortAdministratorServer struct { }
UnimplementedOortAdministratorServer must be embedded to have forward compatible implementations.
func (UnimplementedOortAdministratorServer) CreateInheritanceRel ¶
func (UnimplementedOortAdministratorServer) CreateInheritanceRel(context.Context, *CreateInheritanceRelReq) (*AdministrationResp, error)
func (UnimplementedOortAdministratorServer) CreatePolicy ¶
func (UnimplementedOortAdministratorServer) CreatePolicy(context.Context, *CreatePolicyReq) (*AdministrationResp, error)
func (UnimplementedOortAdministratorServer) CreateResource ¶
func (UnimplementedOortAdministratorServer) CreateResource(context.Context, *CreateResourceReq) (*AdministrationResp, error)
func (UnimplementedOortAdministratorServer) DeleteAttribute ¶
func (UnimplementedOortAdministratorServer) DeleteAttribute(context.Context, *DeleteAttributeReq) (*AdministrationResp, error)
func (UnimplementedOortAdministratorServer) DeleteInheritanceRel ¶
func (UnimplementedOortAdministratorServer) DeleteInheritanceRel(context.Context, *DeleteInheritanceRelReq) (*AdministrationResp, error)
func (UnimplementedOortAdministratorServer) DeletePolicy ¶
func (UnimplementedOortAdministratorServer) DeletePolicy(context.Context, *DeletePolicyReq) (*AdministrationResp, error)
func (UnimplementedOortAdministratorServer) DeleteResource ¶
func (UnimplementedOortAdministratorServer) DeleteResource(context.Context, *DeleteResourceReq) (*AdministrationResp, error)
func (UnimplementedOortAdministratorServer) PutAttribute ¶
func (UnimplementedOortAdministratorServer) PutAttribute(context.Context, *PutAttributeReq) (*AdministrationResp, error)
type UnimplementedOortEvaluatorServer ¶
type UnimplementedOortEvaluatorServer struct { }
UnimplementedOortEvaluatorServer must be embedded to have forward compatible implementations.
func (UnimplementedOortEvaluatorServer) Authorize ¶
func (UnimplementedOortEvaluatorServer) Authorize(context.Context, *AuthorizationReq) (*AuthorizationResp, error)
func (UnimplementedOortEvaluatorServer) GetGrantedPermissions ¶
func (UnimplementedOortEvaluatorServer) GetGrantedPermissions(context.Context, *GetGrantedPermissionsReq) (*GetGrantedPermissionsResp, error)
type UnsafeOortAdministratorServer ¶
type UnsafeOortAdministratorServer interface {
// contains filtered or unexported methods
}
UnsafeOortAdministratorServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to OortAdministratorServer will result in compilation errors.
type UnsafeOortEvaluatorServer ¶
type UnsafeOortEvaluatorServer interface {
// contains filtered or unexported methods
}
UnsafeOortEvaluatorServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to OortEvaluatorServer will result in compilation errors.