Documentation
¶
Index ¶
- func AddUserToGroup(ctx context.Context, ...) (*pbGroups.AddUserToGroupResponse, error)
- func AssignRole(ctx context.Context, ...) (*pb.AssignRoleResponse, error)
- func CreateGroup(ctx context.Context, domainType, domainID string, group *pb.Group, ...) (*pb.CreateGroupResponse, error)
- func CreateRole(ctx context.Context, domainType string, domainID string, role *pb.Role, ...) (*pb.CreateRoleResponse, error)
- func DeleteGroup(ctx context.Context, domainType, domainID, groupName string, ...) (*pb.DeleteGroupResponse, error)
- func DeleteRole(ctx context.Context, domainType, domainID, roleName string, ...) (*pb.DeleteRoleResponse, error)
- func DescribeGroup(ctx context.Context, domainType, domainID, groupName string, ...) (*pb.DescribeGroupResponse, error)
- func DescribeRole(ctx context.Context, domainType, domainID, roleName string, ...) (*pb.DescribeRoleResponse, error)
- func FindUser(org, id, email string) (*models.User, error)
- func GetUsersWithRolesInDomain(domainID, domainType string, authService authorization.Authorization) ([]*pbUsers.User, error)
- func ListGroupUsers(ctx context.Context, domainType, domainID, groupName string, ...) (*pb.ListGroupUsersResponse, error)
- func ListGroups(ctx context.Context, domainType string, domainID string, ...) (*pb.ListGroupsResponse, error)
- func ListRoles(ctx context.Context, domainType string, domainID string, ...) (*pb.ListRolesResponse, error)
- func ListUserPermissions(ctx context.Context, domainType string, domainID string, userID string, ...) (*pb.ListUserPermissionsResponse, error)
- func ListUserRoles(ctx context.Context, domainType, domainID, userID string, ...) (*pb.ListUserRolesResponse, error)
- func ListUsers(ctx context.Context, domainType string, domainID string, ...) (*pb.ListUsersResponse, error)
- func RemoveUserFromGroup(ctx context.Context, ...) (*pbGroups.RemoveUserFromGroupResponse, error)
- func UpdateGroup(ctx context.Context, domainType string, domainID string, groupName string, ...) (*pb.UpdateGroupResponse, error)
- func UpdateRole(ctx context.Context, domainType string, domainID string, roleName string, ...) (*pb.UpdateRoleResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddUserToGroup ¶
func AddUserToGroup(ctx context.Context, orgID, domainType, domainID, userID, userEmail, groupName string, authService authorization.Authorization) (*pbGroups.AddUserToGroupResponse, error)
func AssignRole ¶
func AssignRole(ctx context.Context, orgID, domainType, domainID, roleName, userID, userEmail string, authService authorization.Authorization) (*pb.AssignRoleResponse, error)
func CreateGroup ¶
func CreateGroup(ctx context.Context, domainType, domainID string, group *pb.Group, authService authorization.Authorization) (*pb.CreateGroupResponse, error)
func CreateRole ¶
func CreateRole(ctx context.Context, domainType string, domainID string, role *pb.Role, authService authorization.Authorization) (*pb.CreateRoleResponse, error)
func DeleteGroup ¶
func DeleteGroup(ctx context.Context, domainType, domainID, groupName string, authService authorization.Authorization) (*pb.DeleteGroupResponse, error)
func DeleteRole ¶
func DeleteRole(ctx context.Context, domainType, domainID, roleName string, authService authorization.Authorization) (*pb.DeleteRoleResponse, error)
func DescribeGroup ¶
func DescribeGroup(ctx context.Context, domainType, domainID, groupName string, authService authorization.Authorization) (*pb.DescribeGroupResponse, error)
func DescribeRole ¶
func DescribeRole(ctx context.Context, domainType, domainID, roleName string, authService authorization.Authorization) (*pb.DescribeRoleResponse, error)
func GetUsersWithRolesInDomain ¶
func GetUsersWithRolesInDomain(domainID, domainType string, authService authorization.Authorization) ([]*pbUsers.User, error)
func ListGroupUsers ¶
func ListGroupUsers(ctx context.Context, domainType, domainID, groupName string, authService authorization.Authorization) (*pb.ListGroupUsersResponse, error)
func ListGroups ¶
func ListGroups(ctx context.Context, domainType string, domainID string, authService authorization.Authorization) (*pb.ListGroupsResponse, error)
func ListRoles ¶
func ListRoles(ctx context.Context, domainType string, domainID string, authService authorization.Authorization) (*pb.ListRolesResponse, error)
func ListUserPermissions ¶
func ListUserPermissions(ctx context.Context, domainType string, domainID string, userID string, authService authorization.Authorization) (*pb.ListUserPermissionsResponse, error)
func ListUserRoles ¶
func ListUserRoles(ctx context.Context, domainType, domainID, userID string, authService authorization.Authorization) (*pb.ListUserRolesResponse, error)
func ListUsers ¶
func ListUsers(ctx context.Context, domainType string, domainID string, authService authorization.Authorization) (*pb.ListUsersResponse, error)
func RemoveUserFromGroup ¶
func RemoveUserFromGroup(ctx context.Context, orgID, domainType, domainID, userID, userEmail, groupName string, authService authorization.Authorization) (*pbGroups.RemoveUserFromGroupResponse, error)
func UpdateGroup ¶
func UpdateGroup(ctx context.Context, domainType string, domainID string, groupName string, groupSpec *pb.Group_Spec, authService authorization.Authorization) (*pb.UpdateGroupResponse, error)
func UpdateRole ¶
func UpdateRole(ctx context.Context, domainType string, domainID string, roleName string, roleSpec *pb.Role_Spec, authService authorization.Authorization) (*pb.UpdateRoleResponse, error)
Types ¶
This section is empty.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.