Documentation ¶
Index ¶
- Variables
- func RegisterAuthorizationSvcServer(s grpc.ServiceRegistrar, srv AuthorizationSvcServer)
- type AuthorizationSvcClient
- type AuthorizationSvcServer
- type Permission
- type PermissionGroup
- func (*PermissionGroup) Descriptor() ([]byte, []int)deprecated
- func (x *PermissionGroup) GetGroupName() string
- func (x *PermissionGroup) GetPermissions() *Permissions
- func (*PermissionGroup) ProtoMessage()
- func (x *PermissionGroup) ProtoReflect() protoreflect.Message
- func (x *PermissionGroup) Reset()
- func (x *PermissionGroup) String() string
- type PermissionGroups
- func (*PermissionGroups) Descriptor() ([]byte, []int)deprecated
- func (x *PermissionGroups) GetPermissionGroups() []*PermissionGroup
- func (*PermissionGroups) ProtoMessage()
- func (x *PermissionGroups) ProtoReflect() protoreflect.Message
- func (x *PermissionGroups) Reset()
- func (x *PermissionGroups) String() string
- type Permissions
- type Role
- type RoleFilter
- type Roles
- type UnimplementedAuthorizationSvcServer
- type UnsafeAuthorizationSvcServer
Constants ¶
This section is empty.
Variables ¶
var AuthorizationSvc_ServiceDesc = grpc.ServiceDesc{ ServiceName: "AuthorizationSvc", HandlerType: (*AuthorizationSvcServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetRoles", Handler: _AuthorizationSvc_GetRoles_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "authorization.proto", }
AuthorizationSvc_ServiceDesc is the grpc.ServiceDesc for AuthorizationSvc service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterAuthorizationSvcServer ¶
func RegisterAuthorizationSvcServer(s grpc.ServiceRegistrar, srv AuthorizationSvcServer)
Types ¶
type AuthorizationSvcClient ¶
type AuthorizationSvcClient interface {
GetRoles(ctx context.Context, in *RoleFilter, opts ...grpc.CallOption) (*Roles, error)
}
AuthorizationSvcClient is the client API for AuthorizationSvc 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 NewAuthorizationSvcClient ¶
func NewAuthorizationSvcClient(cc grpc.ClientConnInterface) AuthorizationSvcClient
type AuthorizationSvcServer ¶
type AuthorizationSvcServer interface { GetRoles(context.Context, *RoleFilter) (*Roles, error) // contains filtered or unexported methods }
AuthorizationSvcServer is the server API for AuthorizationSvc service. All implementations must embed UnimplementedAuthorizationSvcServer for forward compatibility
type Permission ¶
type Permission struct { Policy string `protobuf:"bytes,1,opt,name=policy,proto3" json:"policy,omitempty"` // contains filtered or unexported fields }
func (*Permission) Descriptor
deprecated
func (*Permission) Descriptor() ([]byte, []int)
Deprecated: Use Permission.ProtoReflect.Descriptor instead.
func (*Permission) GetPolicy ¶
func (x *Permission) GetPolicy() 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 PermissionGroup ¶
type PermissionGroup struct { GroupName string `protobuf:"bytes,1,opt,name=groupName,proto3" json:"groupName,omitempty"` Permissions *Permissions `protobuf:"bytes,2,opt,name=permissions,proto3" json:"permissions,omitempty"` // contains filtered or unexported fields }
func (*PermissionGroup) Descriptor
deprecated
func (*PermissionGroup) Descriptor() ([]byte, []int)
Deprecated: Use PermissionGroup.ProtoReflect.Descriptor instead.
func (*PermissionGroup) GetGroupName ¶
func (x *PermissionGroup) GetGroupName() string
func (*PermissionGroup) GetPermissions ¶
func (x *PermissionGroup) GetPermissions() *Permissions
func (*PermissionGroup) ProtoMessage ¶
func (*PermissionGroup) ProtoMessage()
func (*PermissionGroup) ProtoReflect ¶
func (x *PermissionGroup) ProtoReflect() protoreflect.Message
func (*PermissionGroup) Reset ¶
func (x *PermissionGroup) Reset()
func (*PermissionGroup) String ¶
func (x *PermissionGroup) String() string
type PermissionGroups ¶
type PermissionGroups struct { PermissionGroups []*PermissionGroup `protobuf:"bytes,1,rep,name=permissionGroups,proto3" json:"permissionGroups,omitempty"` // contains filtered or unexported fields }
func (*PermissionGroups) Descriptor
deprecated
func (*PermissionGroups) Descriptor() ([]byte, []int)
Deprecated: Use PermissionGroups.ProtoReflect.Descriptor instead.
func (*PermissionGroups) GetPermissionGroups ¶
func (x *PermissionGroups) GetPermissionGroups() []*PermissionGroup
func (*PermissionGroups) ProtoMessage ¶
func (*PermissionGroups) ProtoMessage()
func (*PermissionGroups) ProtoReflect ¶
func (x *PermissionGroups) ProtoReflect() protoreflect.Message
func (*PermissionGroups) Reset ¶
func (x *PermissionGroups) Reset()
func (*PermissionGroups) String ¶
func (x *PermissionGroups) String() string
type Permissions ¶
type Permissions struct { Permissions []*Permission `protobuf:"bytes,1,rep,name=permissions,proto3" json:"permissions,omitempty"` // contains filtered or unexported fields }
func (*Permissions) Descriptor
deprecated
func (*Permissions) Descriptor() ([]byte, []int)
Deprecated: Use Permissions.ProtoReflect.Descriptor instead.
func (*Permissions) GetPermissions ¶
func (x *Permissions) GetPermissions() []*Permission
func (*Permissions) ProtoMessage ¶
func (*Permissions) ProtoMessage()
func (*Permissions) ProtoReflect ¶
func (x *Permissions) ProtoReflect() protoreflect.Message
func (*Permissions) Reset ¶
func (x *Permissions) Reset()
func (*Permissions) String ¶
func (x *Permissions) String() string
type Role ¶
type Role struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` PermissionGroups *PermissionGroups `protobuf:"bytes,2,opt,name=permissionGroups,proto3" json:"permissionGroups,omitempty"` // contains filtered or unexported fields }
func (*Role) Descriptor
deprecated
func (*Role) GetPermissionGroups ¶
func (x *Role) GetPermissionGroups() *PermissionGroups
func (*Role) ProtoMessage ¶
func (*Role) ProtoMessage()
func (*Role) ProtoReflect ¶
func (x *Role) ProtoReflect() protoreflect.Message
type RoleFilter ¶
type RoleFilter struct { Name *string `protobuf:"bytes,1,opt,name=name,proto3,oneof" json:"name,omitempty"` // contains filtered or unexported fields }
func (*RoleFilter) Descriptor
deprecated
func (*RoleFilter) Descriptor() ([]byte, []int)
Deprecated: Use RoleFilter.ProtoReflect.Descriptor instead.
func (*RoleFilter) GetName ¶
func (x *RoleFilter) GetName() string
func (*RoleFilter) ProtoMessage ¶
func (*RoleFilter) ProtoMessage()
func (*RoleFilter) ProtoReflect ¶
func (x *RoleFilter) ProtoReflect() protoreflect.Message
func (*RoleFilter) Reset ¶
func (x *RoleFilter) Reset()
func (*RoleFilter) String ¶
func (x *RoleFilter) String() string
type Roles ¶
type Roles struct { Roles []*Role `protobuf:"bytes,1,rep,name=roles,proto3" json:"roles,omitempty"` TotalRows int64 `protobuf:"varint,2,opt,name=totalRows,proto3" json:"totalRows,omitempty"` // contains filtered or unexported fields }
func (*Roles) Descriptor
deprecated
func (*Roles) GetTotalRows ¶
func (*Roles) ProtoMessage ¶
func (*Roles) ProtoMessage()
func (*Roles) ProtoReflect ¶
func (x *Roles) ProtoReflect() protoreflect.Message
type UnimplementedAuthorizationSvcServer ¶
type UnimplementedAuthorizationSvcServer struct { }
UnimplementedAuthorizationSvcServer must be embedded to have forward compatible implementations.
func (UnimplementedAuthorizationSvcServer) GetRoles ¶
func (UnimplementedAuthorizationSvcServer) GetRoles(context.Context, *RoleFilter) (*Roles, error)
type UnsafeAuthorizationSvcServer ¶
type UnsafeAuthorizationSvcServer interface {
// contains filtered or unexported methods
}
UnsafeAuthorizationSvcServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthorizationSvcServer will result in compilation errors.