authorization

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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)

View Source
var File_authorization_proto protoreflect.FileDescriptor

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.

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) Descriptor() ([]byte, []int)

Deprecated: Use Role.ProtoReflect.Descriptor instead.

func (*Role) GetName

func (x *Role) GetName() string

func (*Role) GetPermissionGroups

func (x *Role) GetPermissionGroups() *PermissionGroups

func (*Role) ProtoMessage

func (*Role) ProtoMessage()

func (*Role) ProtoReflect

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

func (*Role) Reset

func (x *Role) Reset()

func (*Role) String

func (x *Role) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Roles.ProtoReflect.Descriptor instead.

func (*Roles) GetRoles

func (x *Roles) GetRoles() []*Role

func (*Roles) GetTotalRows

func (x *Roles) GetTotalRows() int64

func (*Roles) ProtoMessage

func (*Roles) ProtoMessage()

func (*Roles) ProtoReflect

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

func (*Roles) Reset

func (x *Roles) Reset()

func (*Roles) String

func (x *Roles) String() string

type UnimplementedAuthorizationSvcServer

type UnimplementedAuthorizationSvcServer struct {
}

UnimplementedAuthorizationSvcServer must be embedded to have forward compatible implementations.

func (UnimplementedAuthorizationSvcServer) GetRoles

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.

Jump to

Keyboard shortcuts

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