Documentation ¶
Index ¶
- Constants
- func GroupIsChanged(old *Group, new *Group) bool
- func ProjectIsChanged(old *Project, new *Project) bool
- func RenderChildGroupIds(groups []*Group)
- func UserIsChanged(old *User, new *User) bool
- type BaseEntity
- type Group
- type GroupMember
- type GroupTree
- type Project
- type ProjectMember
- type ProjectNamespace
- type TargetKNRI
- type User
Constants ¶
View Source
const ( NamespaceGroup = "group" NamespaceUser = "user" NamespaceProject = "project" )
Variables ¶
This section is empty.
Functions ¶
func GroupIsChanged ¶
func ProjectIsChanged ¶
func RenderChildGroupIds ¶
func RenderChildGroupIds(groups []*Group)
func UserIsChanged ¶
Types ¶
type BaseEntity ¶
type Group ¶
type Group struct { BaseEntity Kind string `json:"kind"` ParentId string `json:"parent_id"` ChildIds []string `json:"child_ids"` }
type GroupMember ¶
type GroupTree ¶
type GroupTree struct {
// contains filtered or unexported fields
}
func NewGroupTree ¶
type Project ¶
type Project struct { BaseEntity Namespace *ProjectNamespace `json:"namespace"` }
type ProjectMember ¶
type ProjectNamespace ¶
type TargetKNRI ¶
func StringToKNRI ¶
func StringToKNRI(s string) TargetKNRI
func (TargetKNRI) IsEmpty ¶
func (t TargetKNRI) IsEmpty() bool
type User ¶
type User struct { BaseEntity Username string `json:"username"` Email string `json:"email"` AvatarURL string `json:"avatar_url"` Mobile string `json:"mobile"` RoleIds []string `json:"role_Ids"` NamespaceId string `json:"namespace_id"` }
func GroupMembersToUsers ¶
func GroupMembersToUsers(groupMembers []*GroupMember) []*User
Click to show internal directories.
Click to hide internal directories.