Documentation
¶
Overview ¶
Package roles is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterRolesHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterRolesHandlerClient(ctx context.Context, mux *runtime.ServeMux, client RolesClient) error
- func RegisterRolesHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterRolesHandlerServer(ctx context.Context, mux *runtime.ServeMux, server RolesServer) error
- func RegisterRolesServer(s grpc.ServiceRegistrar, srv RolesServer)
- type AssignRoleRequest
- func (*AssignRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AssignRoleRequest) GetDomainId() string
- func (x *AssignRoleRequest) GetDomainType() authorization.DomainType
- func (x *AssignRoleRequest) GetRoleName() string
- func (x *AssignRoleRequest) GetUserEmail() string
- func (x *AssignRoleRequest) GetUserId() string
- func (*AssignRoleRequest) ProtoMessage()
- func (x *AssignRoleRequest) ProtoReflect() protoreflect.Message
- func (x *AssignRoleRequest) Reset()
- func (x *AssignRoleRequest) String() string
- type AssignRoleResponse
- type CreateRoleRequest
- func (*CreateRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRoleRequest) GetDomainId() string
- func (x *CreateRoleRequest) GetDomainType() authorization.DomainType
- func (x *CreateRoleRequest) GetRole() *Role
- func (*CreateRoleRequest) ProtoMessage()
- func (x *CreateRoleRequest) ProtoReflect() protoreflect.Message
- func (x *CreateRoleRequest) Reset()
- func (x *CreateRoleRequest) String() string
- type CreateRoleResponse
- type DeleteRoleRequest
- func (*DeleteRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteRoleRequest) GetDomainId() string
- func (x *DeleteRoleRequest) GetDomainType() authorization.DomainType
- func (x *DeleteRoleRequest) GetRoleName() string
- func (*DeleteRoleRequest) ProtoMessage()
- func (x *DeleteRoleRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteRoleRequest) Reset()
- func (x *DeleteRoleRequest) String() string
- type DeleteRoleResponse
- type DescribeRoleRequest
- func (*DescribeRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DescribeRoleRequest) GetDomainId() string
- func (x *DescribeRoleRequest) GetDomainType() authorization.DomainType
- func (x *DescribeRoleRequest) GetRoleName() string
- func (*DescribeRoleRequest) ProtoMessage()
- func (x *DescribeRoleRequest) ProtoReflect() protoreflect.Message
- func (x *DescribeRoleRequest) Reset()
- func (x *DescribeRoleRequest) String() string
- type DescribeRoleResponse
- func (*DescribeRoleResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DescribeRoleResponse) GetRole() *Role
- func (*DescribeRoleResponse) ProtoMessage()
- func (x *DescribeRoleResponse) ProtoReflect() protoreflect.Message
- func (x *DescribeRoleResponse) Reset()
- func (x *DescribeRoleResponse) String() string
- type ListRolesRequest
- func (*ListRolesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListRolesRequest) GetDomainId() string
- func (x *ListRolesRequest) GetDomainType() authorization.DomainType
- func (*ListRolesRequest) ProtoMessage()
- func (x *ListRolesRequest) ProtoReflect() protoreflect.Message
- func (x *ListRolesRequest) Reset()
- func (x *ListRolesRequest) String() string
- type ListRolesResponse
- type Role
- type Role_Metadata
- func (*Role_Metadata) Descriptor() ([]byte, []int)deprecated
- func (x *Role_Metadata) GetCreatedAt() *timestamp.Timestamp
- func (x *Role_Metadata) GetDomainId() string
- func (x *Role_Metadata) GetDomainType() authorization.DomainType
- func (x *Role_Metadata) GetName() string
- func (x *Role_Metadata) GetUpdatedAt() *timestamp.Timestamp
- func (*Role_Metadata) ProtoMessage()
- func (x *Role_Metadata) ProtoReflect() protoreflect.Message
- func (x *Role_Metadata) Reset()
- func (x *Role_Metadata) String() string
- type Role_Spec
- func (*Role_Spec) Descriptor() ([]byte, []int)deprecated
- func (x *Role_Spec) GetDescription() string
- func (x *Role_Spec) GetDisplayName() string
- func (x *Role_Spec) GetInheritedRole() *Role
- func (x *Role_Spec) GetPermissions() []*authorization.Permission
- func (*Role_Spec) ProtoMessage()
- func (x *Role_Spec) ProtoReflect() protoreflect.Message
- func (x *Role_Spec) Reset()
- func (x *Role_Spec) String() string
- type RolesClient
- type RolesServer
- type UnimplementedRolesServer
- func (UnimplementedRolesServer) AssignRole(context.Context, *AssignRoleRequest) (*AssignRoleResponse, error)
- func (UnimplementedRolesServer) CreateRole(context.Context, *CreateRoleRequest) (*CreateRoleResponse, error)
- func (UnimplementedRolesServer) DeleteRole(context.Context, *DeleteRoleRequest) (*DeleteRoleResponse, error)
- func (UnimplementedRolesServer) DescribeRole(context.Context, *DescribeRoleRequest) (*DescribeRoleResponse, error)
- func (UnimplementedRolesServer) ListRoles(context.Context, *ListRolesRequest) (*ListRolesResponse, error)
- func (UnimplementedRolesServer) UpdateRole(context.Context, *UpdateRoleRequest) (*UpdateRoleResponse, error)
- type UnsafeRolesServer
- type UpdateRoleRequest
- func (*UpdateRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRoleRequest) GetDomainId() string
- func (x *UpdateRoleRequest) GetDomainType() authorization.DomainType
- func (x *UpdateRoleRequest) GetRole() *Role
- func (x *UpdateRoleRequest) GetRoleName() string
- func (*UpdateRoleRequest) ProtoMessage()
- func (x *UpdateRoleRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateRoleRequest) Reset()
- func (x *UpdateRoleRequest) String() string
- type UpdateRoleResponse
Constants ¶
const ( Roles_ListRoles_FullMethodName = "/Superplane.Roles.Roles/ListRoles" Roles_CreateRole_FullMethodName = "/Superplane.Roles.Roles/CreateRole" Roles_DescribeRole_FullMethodName = "/Superplane.Roles.Roles/DescribeRole" Roles_UpdateRole_FullMethodName = "/Superplane.Roles.Roles/UpdateRole" Roles_DeleteRole_FullMethodName = "/Superplane.Roles.Roles/DeleteRole" Roles_AssignRole_FullMethodName = "/Superplane.Roles.Roles/AssignRole" )
Variables ¶
var File_roles_proto protoreflect.FileDescriptor
var Roles_ServiceDesc = grpc.ServiceDesc{ ServiceName: "Superplane.Roles.Roles", HandlerType: (*RolesServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListRoles", Handler: _Roles_ListRoles_Handler, }, { MethodName: "CreateRole", Handler: _Roles_CreateRole_Handler, }, { MethodName: "DescribeRole", Handler: _Roles_DescribeRole_Handler, }, { MethodName: "UpdateRole", Handler: _Roles_UpdateRole_Handler, }, { MethodName: "DeleteRole", Handler: _Roles_DeleteRole_Handler, }, { MethodName: "AssignRole", Handler: _Roles_AssignRole_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "roles.proto", }
Roles_ServiceDesc is the grpc.ServiceDesc for Roles service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterRolesHandler ¶
RegisterRolesHandler registers the http handlers for service Roles to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterRolesHandlerClient ¶
func RegisterRolesHandlerClient(ctx context.Context, mux *runtime.ServeMux, client RolesClient) error
RegisterRolesHandlerClient registers the http handlers for service Roles to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "RolesClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "RolesClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "RolesClient" to call the correct interceptors. This client ignores the HTTP middlewares.
func RegisterRolesHandlerFromEndpoint ¶
func RegisterRolesHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterRolesHandlerFromEndpoint is same as RegisterRolesHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterRolesHandlerServer ¶
func RegisterRolesHandlerServer(ctx context.Context, mux *runtime.ServeMux, server RolesServer) error
RegisterRolesHandlerServer registers the http handlers for service Roles to "mux". UnaryRPC :call RolesServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterRolesHandlerFromEndpoint instead. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.
func RegisterRolesServer ¶
func RegisterRolesServer(s grpc.ServiceRegistrar, srv RolesServer)
Types ¶
type AssignRoleRequest ¶
type AssignRoleRequest struct {
DomainType authorization.DomainType `` /* 133-byte string literal not displayed */
DomainId string `protobuf:"bytes,2,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"`
RoleName string `protobuf:"bytes,3,opt,name=role_name,json=roleName,proto3" json:"role_name,omitempty"`
UserId string `protobuf:"bytes,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
UserEmail string `protobuf:"bytes,5,opt,name=user_email,json=userEmail,proto3" json:"user_email,omitempty"`
// contains filtered or unexported fields
}
func (*AssignRoleRequest) Descriptor
deprecated
func (*AssignRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use AssignRoleRequest.ProtoReflect.Descriptor instead.
func (*AssignRoleRequest) GetDomainId ¶
func (x *AssignRoleRequest) GetDomainId() string
func (*AssignRoleRequest) GetDomainType ¶
func (x *AssignRoleRequest) GetDomainType() authorization.DomainType
func (*AssignRoleRequest) GetRoleName ¶
func (x *AssignRoleRequest) GetRoleName() string
func (*AssignRoleRequest) GetUserEmail ¶
func (x *AssignRoleRequest) GetUserEmail() string
func (*AssignRoleRequest) GetUserId ¶
func (x *AssignRoleRequest) GetUserId() string
func (*AssignRoleRequest) ProtoMessage ¶
func (*AssignRoleRequest) ProtoMessage()
func (*AssignRoleRequest) ProtoReflect ¶
func (x *AssignRoleRequest) ProtoReflect() protoreflect.Message
func (*AssignRoleRequest) Reset ¶
func (x *AssignRoleRequest) Reset()
func (*AssignRoleRequest) String ¶
func (x *AssignRoleRequest) String() string
type AssignRoleResponse ¶
type AssignRoleResponse struct {
// contains filtered or unexported fields
}
func (*AssignRoleResponse) Descriptor
deprecated
func (*AssignRoleResponse) Descriptor() ([]byte, []int)
Deprecated: Use AssignRoleResponse.ProtoReflect.Descriptor instead.
func (*AssignRoleResponse) ProtoMessage ¶
func (*AssignRoleResponse) ProtoMessage()
func (*AssignRoleResponse) ProtoReflect ¶
func (x *AssignRoleResponse) ProtoReflect() protoreflect.Message
func (*AssignRoleResponse) Reset ¶
func (x *AssignRoleResponse) Reset()
func (*AssignRoleResponse) String ¶
func (x *AssignRoleResponse) String() string
type CreateRoleRequest ¶
type CreateRoleRequest struct {
DomainType authorization.DomainType `` /* 133-byte string literal not displayed */
DomainId string `protobuf:"bytes,2,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"`
Role *Role `protobuf:"bytes,3,opt,name=role,proto3" json:"role,omitempty"`
// contains filtered or unexported fields
}
func (*CreateRoleRequest) Descriptor
deprecated
func (*CreateRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateRoleRequest.ProtoReflect.Descriptor instead.
func (*CreateRoleRequest) GetDomainId ¶
func (x *CreateRoleRequest) GetDomainId() string
func (*CreateRoleRequest) GetDomainType ¶
func (x *CreateRoleRequest) GetDomainType() authorization.DomainType
func (*CreateRoleRequest) GetRole ¶
func (x *CreateRoleRequest) GetRole() *Role
func (*CreateRoleRequest) ProtoMessage ¶
func (*CreateRoleRequest) ProtoMessage()
func (*CreateRoleRequest) ProtoReflect ¶
func (x *CreateRoleRequest) ProtoReflect() protoreflect.Message
func (*CreateRoleRequest) Reset ¶
func (x *CreateRoleRequest) Reset()
func (*CreateRoleRequest) String ¶
func (x *CreateRoleRequest) String() string
type CreateRoleResponse ¶
type CreateRoleResponse struct {
Role *Role `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"`
// contains filtered or unexported fields
}
func (*CreateRoleResponse) Descriptor
deprecated
func (*CreateRoleResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateRoleResponse.ProtoReflect.Descriptor instead.
func (*CreateRoleResponse) GetRole ¶
func (x *CreateRoleResponse) GetRole() *Role
func (*CreateRoleResponse) ProtoMessage ¶
func (*CreateRoleResponse) ProtoMessage()
func (*CreateRoleResponse) ProtoReflect ¶
func (x *CreateRoleResponse) ProtoReflect() protoreflect.Message
func (*CreateRoleResponse) Reset ¶
func (x *CreateRoleResponse) Reset()
func (*CreateRoleResponse) String ¶
func (x *CreateRoleResponse) String() string
type DeleteRoleRequest ¶
type DeleteRoleRequest struct {
DomainType authorization.DomainType `` /* 133-byte string literal not displayed */
DomainId string `protobuf:"bytes,2,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"`
RoleName string `protobuf:"bytes,3,opt,name=role_name,json=roleName,proto3" json:"role_name,omitempty"`
// contains filtered or unexported fields
}
func (*DeleteRoleRequest) Descriptor
deprecated
func (*DeleteRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRoleRequest.ProtoReflect.Descriptor instead.
func (*DeleteRoleRequest) GetDomainId ¶
func (x *DeleteRoleRequest) GetDomainId() string
func (*DeleteRoleRequest) GetDomainType ¶
func (x *DeleteRoleRequest) GetDomainType() authorization.DomainType
func (*DeleteRoleRequest) GetRoleName ¶
func (x *DeleteRoleRequest) GetRoleName() string
func (*DeleteRoleRequest) ProtoMessage ¶
func (*DeleteRoleRequest) ProtoMessage()
func (*DeleteRoleRequest) ProtoReflect ¶
func (x *DeleteRoleRequest) ProtoReflect() protoreflect.Message
func (*DeleteRoleRequest) Reset ¶
func (x *DeleteRoleRequest) Reset()
func (*DeleteRoleRequest) String ¶
func (x *DeleteRoleRequest) String() string
type DeleteRoleResponse ¶
type DeleteRoleResponse struct {
// contains filtered or unexported fields
}
func (*DeleteRoleResponse) Descriptor
deprecated
func (*DeleteRoleResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRoleResponse.ProtoReflect.Descriptor instead.
func (*DeleteRoleResponse) ProtoMessage ¶
func (*DeleteRoleResponse) ProtoMessage()
func (*DeleteRoleResponse) ProtoReflect ¶
func (x *DeleteRoleResponse) ProtoReflect() protoreflect.Message
func (*DeleteRoleResponse) Reset ¶
func (x *DeleteRoleResponse) Reset()
func (*DeleteRoleResponse) String ¶
func (x *DeleteRoleResponse) String() string
type DescribeRoleRequest ¶
type DescribeRoleRequest struct {
DomainType authorization.DomainType `` /* 133-byte string literal not displayed */
DomainId string `protobuf:"bytes,2,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"`
RoleName string `protobuf:"bytes,3,opt,name=role_name,json=roleName,proto3" json:"role_name,omitempty"`
// contains filtered or unexported fields
}
func (*DescribeRoleRequest) Descriptor
deprecated
func (*DescribeRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use DescribeRoleRequest.ProtoReflect.Descriptor instead.
func (*DescribeRoleRequest) GetDomainId ¶
func (x *DescribeRoleRequest) GetDomainId() string
func (*DescribeRoleRequest) GetDomainType ¶
func (x *DescribeRoleRequest) GetDomainType() authorization.DomainType
func (*DescribeRoleRequest) GetRoleName ¶
func (x *DescribeRoleRequest) GetRoleName() string
func (*DescribeRoleRequest) ProtoMessage ¶
func (*DescribeRoleRequest) ProtoMessage()
func (*DescribeRoleRequest) ProtoReflect ¶
func (x *DescribeRoleRequest) ProtoReflect() protoreflect.Message
func (*DescribeRoleRequest) Reset ¶
func (x *DescribeRoleRequest) Reset()
func (*DescribeRoleRequest) String ¶
func (x *DescribeRoleRequest) String() string
type DescribeRoleResponse ¶
type DescribeRoleResponse struct {
Role *Role `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"`
// contains filtered or unexported fields
}
func (*DescribeRoleResponse) Descriptor
deprecated
func (*DescribeRoleResponse) Descriptor() ([]byte, []int)
Deprecated: Use DescribeRoleResponse.ProtoReflect.Descriptor instead.
func (*DescribeRoleResponse) GetRole ¶
func (x *DescribeRoleResponse) GetRole() *Role
func (*DescribeRoleResponse) ProtoMessage ¶
func (*DescribeRoleResponse) ProtoMessage()
func (*DescribeRoleResponse) ProtoReflect ¶
func (x *DescribeRoleResponse) ProtoReflect() protoreflect.Message
func (*DescribeRoleResponse) Reset ¶
func (x *DescribeRoleResponse) Reset()
func (*DescribeRoleResponse) String ¶
func (x *DescribeRoleResponse) String() string
type ListRolesRequest ¶
type ListRolesRequest struct {
DomainType authorization.DomainType `` /* 133-byte string literal not displayed */
DomainId string `protobuf:"bytes,2,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"`
// contains filtered or unexported fields
}
func (*ListRolesRequest) Descriptor
deprecated
func (*ListRolesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListRolesRequest.ProtoReflect.Descriptor instead.
func (*ListRolesRequest) GetDomainId ¶
func (x *ListRolesRequest) GetDomainId() string
func (*ListRolesRequest) GetDomainType ¶
func (x *ListRolesRequest) GetDomainType() authorization.DomainType
func (*ListRolesRequest) ProtoMessage ¶
func (*ListRolesRequest) ProtoMessage()
func (*ListRolesRequest) ProtoReflect ¶
func (x *ListRolesRequest) ProtoReflect() protoreflect.Message
func (*ListRolesRequest) Reset ¶
func (x *ListRolesRequest) Reset()
func (*ListRolesRequest) String ¶
func (x *ListRolesRequest) String() string
type ListRolesResponse ¶
type ListRolesResponse struct {
Roles []*Role `protobuf:"bytes,1,rep,name=roles,proto3" json:"roles,omitempty"`
// contains filtered or unexported fields
}
func (*ListRolesResponse) Descriptor
deprecated
func (*ListRolesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListRolesResponse.ProtoReflect.Descriptor instead.
func (*ListRolesResponse) GetRoles ¶
func (x *ListRolesResponse) GetRoles() []*Role
func (*ListRolesResponse) ProtoMessage ¶
func (*ListRolesResponse) ProtoMessage()
func (*ListRolesResponse) ProtoReflect ¶
func (x *ListRolesResponse) ProtoReflect() protoreflect.Message
func (*ListRolesResponse) Reset ¶
func (x *ListRolesResponse) Reset()
func (*ListRolesResponse) String ¶
func (x *ListRolesResponse) String() string
type Role ¶
type Role struct {
Metadata *Role_Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
Spec *Role_Spec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"`
// contains filtered or unexported fields
}
func (*Role) Descriptor
deprecated
func (*Role) GetMetadata ¶
func (x *Role) GetMetadata() *Role_Metadata
func (*Role) ProtoMessage ¶
func (*Role) ProtoMessage()
func (*Role) ProtoReflect ¶
func (x *Role) ProtoReflect() protoreflect.Message
type Role_Metadata ¶
type Role_Metadata struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
DomainType authorization.DomainType `` /* 133-byte string literal not displayed */
DomainId string `protobuf:"bytes,3,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"`
CreatedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
UpdatedAt *timestamp.Timestamp `protobuf:"bytes,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
// contains filtered or unexported fields
}
func (*Role_Metadata) Descriptor
deprecated
func (*Role_Metadata) Descriptor() ([]byte, []int)
Deprecated: Use Role_Metadata.ProtoReflect.Descriptor instead.
func (*Role_Metadata) GetCreatedAt ¶
func (x *Role_Metadata) GetCreatedAt() *timestamp.Timestamp
func (*Role_Metadata) GetDomainId ¶
func (x *Role_Metadata) GetDomainId() string
func (*Role_Metadata) GetDomainType ¶
func (x *Role_Metadata) GetDomainType() authorization.DomainType
func (*Role_Metadata) GetName ¶
func (x *Role_Metadata) GetName() string
func (*Role_Metadata) GetUpdatedAt ¶
func (x *Role_Metadata) GetUpdatedAt() *timestamp.Timestamp
func (*Role_Metadata) ProtoMessage ¶
func (*Role_Metadata) ProtoMessage()
func (*Role_Metadata) ProtoReflect ¶
func (x *Role_Metadata) ProtoReflect() protoreflect.Message
func (*Role_Metadata) Reset ¶
func (x *Role_Metadata) Reset()
func (*Role_Metadata) String ¶
func (x *Role_Metadata) String() string
type Role_Spec ¶
type Role_Spec struct {
DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
Permissions []*authorization.Permission `protobuf:"bytes,3,rep,name=permissions,proto3" json:"permissions,omitempty"`
InheritedRole *Role `protobuf:"bytes,4,opt,name=inherited_role,json=inheritedRole,proto3" json:"inherited_role,omitempty"`
// contains filtered or unexported fields
}
func (*Role_Spec) Descriptor
deprecated
func (*Role_Spec) GetDescription ¶
func (*Role_Spec) GetDisplayName ¶
func (*Role_Spec) GetInheritedRole ¶
func (*Role_Spec) GetPermissions ¶
func (x *Role_Spec) GetPermissions() []*authorization.Permission
func (*Role_Spec) ProtoMessage ¶
func (*Role_Spec) ProtoMessage()
func (*Role_Spec) ProtoReflect ¶
func (x *Role_Spec) ProtoReflect() protoreflect.Message
type RolesClient ¶
type RolesClient interface {
// Endpoint for listing available roles within a domain
// Operation is synchronous and idempotent.
ListRoles(ctx context.Context, in *ListRolesRequest, opts ...grpc.CallOption) (*ListRolesResponse, error)
// Endpoint for creating a custom role
// Operation is synchronous and idempotent.
CreateRole(ctx context.Context, in *CreateRoleRequest, opts ...grpc.CallOption) (*CreateRoleResponse, error)
// Endpoint for describing a specific role
// Operation is synchronous and idempotent.
DescribeRole(ctx context.Context, in *DescribeRoleRequest, opts ...grpc.CallOption) (*DescribeRoleResponse, error)
// Endpoint for updating a custom role
// Operation is synchronous and idempotent.
UpdateRole(ctx context.Context, in *UpdateRoleRequest, opts ...grpc.CallOption) (*UpdateRoleResponse, error)
// Endpoint for deleting a custom role
// Operation is synchronous and idempotent.
DeleteRole(ctx context.Context, in *DeleteRoleRequest, opts ...grpc.CallOption) (*DeleteRoleResponse, error)
// Endpoint for assigning a role to a user in a domain
// Operation is synchronous and idempotent.
AssignRole(ctx context.Context, in *AssignRoleRequest, opts ...grpc.CallOption) (*AssignRoleResponse, error)
}
RolesClient is the client API for Roles 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 NewRolesClient ¶
func NewRolesClient(cc grpc.ClientConnInterface) RolesClient
type RolesServer ¶
type RolesServer interface {
// Endpoint for listing available roles within a domain
// Operation is synchronous and idempotent.
ListRoles(context.Context, *ListRolesRequest) (*ListRolesResponse, error)
// Endpoint for creating a custom role
// Operation is synchronous and idempotent.
CreateRole(context.Context, *CreateRoleRequest) (*CreateRoleResponse, error)
// Endpoint for describing a specific role
// Operation is synchronous and idempotent.
DescribeRole(context.Context, *DescribeRoleRequest) (*DescribeRoleResponse, error)
// Endpoint for updating a custom role
// Operation is synchronous and idempotent.
UpdateRole(context.Context, *UpdateRoleRequest) (*UpdateRoleResponse, error)
// Endpoint for deleting a custom role
// Operation is synchronous and idempotent.
DeleteRole(context.Context, *DeleteRoleRequest) (*DeleteRoleResponse, error)
// Endpoint for assigning a role to a user in a domain
// Operation is synchronous and idempotent.
AssignRole(context.Context, *AssignRoleRequest) (*AssignRoleResponse, error)
}
RolesServer is the server API for Roles service. All implementations should embed UnimplementedRolesServer for forward compatibility.
type UnimplementedRolesServer ¶
type UnimplementedRolesServer struct{}
UnimplementedRolesServer should be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedRolesServer) AssignRole ¶
func (UnimplementedRolesServer) AssignRole(context.Context, *AssignRoleRequest) (*AssignRoleResponse, error)
func (UnimplementedRolesServer) CreateRole ¶
func (UnimplementedRolesServer) CreateRole(context.Context, *CreateRoleRequest) (*CreateRoleResponse, error)
func (UnimplementedRolesServer) DeleteRole ¶
func (UnimplementedRolesServer) DeleteRole(context.Context, *DeleteRoleRequest) (*DeleteRoleResponse, error)
func (UnimplementedRolesServer) DescribeRole ¶
func (UnimplementedRolesServer) DescribeRole(context.Context, *DescribeRoleRequest) (*DescribeRoleResponse, error)
func (UnimplementedRolesServer) ListRoles ¶
func (UnimplementedRolesServer) ListRoles(context.Context, *ListRolesRequest) (*ListRolesResponse, error)
func (UnimplementedRolesServer) UpdateRole ¶
func (UnimplementedRolesServer) UpdateRole(context.Context, *UpdateRoleRequest) (*UpdateRoleResponse, error)
type UnsafeRolesServer ¶
type UnsafeRolesServer interface {
// contains filtered or unexported methods
}
UnsafeRolesServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RolesServer will result in compilation errors.
type UpdateRoleRequest ¶
type UpdateRoleRequest struct {
DomainType authorization.DomainType `` /* 133-byte string literal not displayed */
DomainId string `protobuf:"bytes,2,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"`
RoleName string `protobuf:"bytes,3,opt,name=role_name,json=roleName,proto3" json:"role_name,omitempty"`
Role *Role `protobuf:"bytes,4,opt,name=role,proto3" json:"role,omitempty"`
// contains filtered or unexported fields
}
func (*UpdateRoleRequest) Descriptor
deprecated
func (*UpdateRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRoleRequest.ProtoReflect.Descriptor instead.
func (*UpdateRoleRequest) GetDomainId ¶
func (x *UpdateRoleRequest) GetDomainId() string
func (*UpdateRoleRequest) GetDomainType ¶
func (x *UpdateRoleRequest) GetDomainType() authorization.DomainType
func (*UpdateRoleRequest) GetRole ¶
func (x *UpdateRoleRequest) GetRole() *Role
func (*UpdateRoleRequest) GetRoleName ¶
func (x *UpdateRoleRequest) GetRoleName() string
func (*UpdateRoleRequest) ProtoMessage ¶
func (*UpdateRoleRequest) ProtoMessage()
func (*UpdateRoleRequest) ProtoReflect ¶
func (x *UpdateRoleRequest) ProtoReflect() protoreflect.Message
func (*UpdateRoleRequest) Reset ¶
func (x *UpdateRoleRequest) Reset()
func (*UpdateRoleRequest) String ¶
func (x *UpdateRoleRequest) String() string
type UpdateRoleResponse ¶
type UpdateRoleResponse struct {
Role *Role `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"`
// contains filtered or unexported fields
}
func (*UpdateRoleResponse) Descriptor
deprecated
func (*UpdateRoleResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRoleResponse.ProtoReflect.Descriptor instead.
func (*UpdateRoleResponse) GetRole ¶
func (x *UpdateRoleResponse) GetRole() *Role
func (*UpdateRoleResponse) ProtoMessage ¶
func (*UpdateRoleResponse) ProtoMessage()
func (*UpdateRoleResponse) ProtoReflect ¶
func (x *UpdateRoleResponse) ProtoReflect() protoreflect.Message
func (*UpdateRoleResponse) Reset ¶
func (x *UpdateRoleResponse) Reset()
func (*UpdateRoleResponse) String ¶
func (x *UpdateRoleResponse) String() string