Documentation ¶
Overview ¶
Package chremoas_perms is a generated protocol buffer package.
It is generated from these files:
permissions.proto
It has these top-level messages:
NilRequest UsersRequest UsersResponse PermissionsRequest Permission PermissionUser PermissionsResponse PerformResponse
Package chremoas_perms is a generated protocol buffer package.
It is generated from these files:
permissions.proto
It has these top-level messages:
NilRequest UsersRequest UsersResponse PermissionsRequest Permission PermissionUser PermissionsResponse PerformResponse
Index ¶
- func RegisterPermissionsHandler(s server.Server, hdlr PermissionsHandler, opts ...server.HandlerOption)
- type NilRequest
- type PerformResponse
- type Permission
- type PermissionUser
- type PermissionsHandler
- type PermissionsRequest
- type PermissionsResponse
- type PermissionsService
- type UsersRequest
- type UsersResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterPermissionsHandler ¶
func RegisterPermissionsHandler(s server.Server, hdlr PermissionsHandler, opts ...server.HandlerOption)
Types ¶
type NilRequest ¶
type NilRequest struct { }
func (*NilRequest) Descriptor ¶
func (*NilRequest) Descriptor() ([]byte, []int)
func (*NilRequest) ProtoMessage ¶
func (*NilRequest) ProtoMessage()
func (*NilRequest) Reset ¶
func (m *NilRequest) Reset()
func (*NilRequest) String ¶
func (m *NilRequest) String() string
type PerformResponse ¶
type PerformResponse struct {
CanPerform bool `protobuf:"varint,1,opt,name=CanPerform" json:"CanPerform,omitempty"`
}
func (*PerformResponse) Descriptor ¶
func (*PerformResponse) Descriptor() ([]byte, []int)
func (*PerformResponse) GetCanPerform ¶
func (m *PerformResponse) GetCanPerform() bool
func (*PerformResponse) ProtoMessage ¶
func (*PerformResponse) ProtoMessage()
func (*PerformResponse) Reset ¶
func (m *PerformResponse) Reset()
func (*PerformResponse) String ¶
func (m *PerformResponse) String() string
type Permission ¶
type Permission struct { Name string `protobuf:"bytes,1,opt,name=Name" json:"Name,omitempty"` Description string `protobuf:"bytes,2,opt,name=Description" json:"Description,omitempty"` }
func (*Permission) Descriptor ¶
func (*Permission) Descriptor() ([]byte, []int)
func (*Permission) GetDescription ¶
func (m *Permission) GetDescription() string
func (*Permission) GetName ¶
func (m *Permission) GetName() string
func (*Permission) ProtoMessage ¶
func (*Permission) ProtoMessage()
func (*Permission) Reset ¶
func (m *Permission) Reset()
func (*Permission) String ¶
func (m *Permission) String() string
type PermissionUser ¶
type PermissionUser struct { User string `protobuf:"bytes,1,opt,name=User" json:"User,omitempty"` Permission string `protobuf:"bytes,2,opt,name=Permission" json:"Permission,omitempty"` }
func (*PermissionUser) Descriptor ¶
func (*PermissionUser) Descriptor() ([]byte, []int)
func (*PermissionUser) GetPermission ¶
func (m *PermissionUser) GetPermission() string
func (*PermissionUser) GetUser ¶
func (m *PermissionUser) GetUser() string
func (*PermissionUser) ProtoMessage ¶
func (*PermissionUser) ProtoMessage()
func (*PermissionUser) Reset ¶
func (m *PermissionUser) Reset()
func (*PermissionUser) String ¶
func (m *PermissionUser) String() string
type PermissionsHandler ¶
type PermissionsHandler interface { Perform(context.Context, *PermissionsRequest, *PerformResponse) error AddPermission(context.Context, *Permission, *Permission) error AddPermissionUser(context.Context, *PermissionUser, *PermissionUser) error RemovePermission(context.Context, *Permission, *Permission) error RemovePermissionUser(context.Context, *PermissionUser, *PermissionUser) error ListPermissions(context.Context, *NilRequest, *PermissionsResponse) error ListPermissionUsers(context.Context, *UsersRequest, *UsersResponse) error ListUserPermissions(context.Context, *PermissionUser, *PermissionsResponse) error }
type PermissionsRequest ¶
type PermissionsRequest struct { User string `protobuf:"bytes,1,opt,name=User" json:"User,omitempty"` PermissionsList []string `protobuf:"bytes,2,rep,name=PermissionsList" json:"PermissionsList,omitempty"` }
func (*PermissionsRequest) Descriptor ¶
func (*PermissionsRequest) Descriptor() ([]byte, []int)
func (*PermissionsRequest) GetPermissionsList ¶
func (m *PermissionsRequest) GetPermissionsList() []string
func (*PermissionsRequest) GetUser ¶
func (m *PermissionsRequest) GetUser() string
func (*PermissionsRequest) ProtoMessage ¶
func (*PermissionsRequest) ProtoMessage()
func (*PermissionsRequest) Reset ¶
func (m *PermissionsRequest) Reset()
func (*PermissionsRequest) String ¶
func (m *PermissionsRequest) String() string
type PermissionsResponse ¶
type PermissionsResponse struct {
PermissionsList []*Permission `protobuf:"bytes,1,rep,name=PermissionsList" json:"PermissionsList,omitempty"`
}
func (*PermissionsResponse) Descriptor ¶
func (*PermissionsResponse) Descriptor() ([]byte, []int)
func (*PermissionsResponse) GetPermissionsList ¶
func (m *PermissionsResponse) GetPermissionsList() []*Permission
func (*PermissionsResponse) ProtoMessage ¶
func (*PermissionsResponse) ProtoMessage()
func (*PermissionsResponse) Reset ¶
func (m *PermissionsResponse) Reset()
func (*PermissionsResponse) String ¶
func (m *PermissionsResponse) String() string
type PermissionsService ¶
type PermissionsService interface { Perform(ctx context.Context, in *PermissionsRequest, opts ...client.CallOption) (*PerformResponse, error) AddPermission(ctx context.Context, in *Permission, opts ...client.CallOption) (*Permission, error) AddPermissionUser(ctx context.Context, in *PermissionUser, opts ...client.CallOption) (*PermissionUser, error) RemovePermission(ctx context.Context, in *Permission, opts ...client.CallOption) (*Permission, error) RemovePermissionUser(ctx context.Context, in *PermissionUser, opts ...client.CallOption) (*PermissionUser, error) ListPermissions(ctx context.Context, in *NilRequest, opts ...client.CallOption) (*PermissionsResponse, error) ListPermissionUsers(ctx context.Context, in *UsersRequest, opts ...client.CallOption) (*UsersResponse, error) ListUserPermissions(ctx context.Context, in *PermissionUser, opts ...client.CallOption) (*PermissionsResponse, error) }
func NewPermissionsService ¶
func NewPermissionsService(name string, c client.Client) PermissionsService
type UsersRequest ¶
type UsersRequest struct {
Permission string `protobuf:"bytes,1,opt,name=Permission" json:"Permission,omitempty"`
}
func (*UsersRequest) Descriptor ¶
func (*UsersRequest) Descriptor() ([]byte, []int)
func (*UsersRequest) GetPermission ¶
func (m *UsersRequest) GetPermission() string
func (*UsersRequest) ProtoMessage ¶
func (*UsersRequest) ProtoMessage()
func (*UsersRequest) Reset ¶
func (m *UsersRequest) Reset()
func (*UsersRequest) String ¶
func (m *UsersRequest) String() string
type UsersResponse ¶
type UsersResponse struct {
UserList []string `protobuf:"bytes,1,rep,name=UserList" json:"UserList,omitempty"`
}
func (*UsersResponse) Descriptor ¶
func (*UsersResponse) Descriptor() ([]byte, []int)
func (*UsersResponse) GetUserList ¶
func (m *UsersResponse) GetUserList() []string
func (*UsersResponse) ProtoMessage ¶
func (*UsersResponse) ProtoMessage()
func (*UsersResponse) Reset ¶
func (m *UsersResponse) Reset()
func (*UsersResponse) String ¶
func (m *UsersResponse) String() string
Click to show internal directories.
Click to hide internal directories.