Documentation ¶
Index ¶
- Constants
- Variables
- type FolderMemberFilter
- type FolderMemberFilterData
- type Group
- func (z *Group) AccessType() string
- func (z *Group) EntryRaw() json.RawMessage
- func (z *Group) Group() (group *Group, e bool)
- func (z *Group) Invitee() (invitee *Invitee, e bool)
- func (z *Group) IsInherited() bool
- func (z *Group) MemberType() string
- func (z *Group) Metadata() *Metadata
- func (z *Group) SameTeam() string
- func (z *Group) User() (user *User, e bool)
- type Invitee
- func (z *Invitee) AccessType() string
- func (z *Invitee) EntryRaw() json.RawMessage
- func (z *Invitee) Group() (group *Group, e bool)
- func (z *Invitee) Invitee() (invitee *Invitee, e bool)
- func (z *Invitee) IsInherited() bool
- func (z *Invitee) MemberType() string
- func (z *Invitee) Metadata() *Metadata
- func (z *Invitee) SameTeam() string
- func (z *Invitee) User() (user *User, e bool)
- type Member
- type Metadata
- func (z *Metadata) AccessType() string
- func (z *Metadata) EntryRaw() json.RawMessage
- func (z *Metadata) Group() (group *Group, e bool)
- func (z *Metadata) Invitee() (invitee *Invitee, e bool)
- func (z *Metadata) IsInherited() bool
- func (z *Metadata) MemberType() string
- func (z *Metadata) Metadata() *Metadata
- func (z *Metadata) SameTeam() string
- func (z *Metadata) User() (user *User, e bool)
- type MsgExternalOpt
- type MsgInternalOpt
- type SharedFolderMember
- type User
- func (z *User) AccessType() string
- func (z *User) EntryRaw() json.RawMessage
- func (z *User) Group() (group *Group, e bool)
- func (z *User) Invitee() (invitee *Invitee, e bool)
- func (z *User) IsInherited() bool
- func (z *User) MemberType() string
- func (z *User) Metadata() *Metadata
- func (z *User) SameTeam() string
- func (z *User) User() (user *User, e bool)
Constants ¶
View Source
const ( AccessTypeOwner = "owner" AccessTypeEditor = "editor" AccessTypeViewer = "viewer" AccessTypeViewerNoComment = "viewer_no_comment" MemberTypeUser = "user" MemberTypeGroup = "group" MemberTypeInvitee = "invitee" )
Variables ¶
View Source
var (
MExternalOpt = app_msg.Apply(&MsgExternalOpt{}).(*MsgExternalOpt)
)
View Source
var (
MInternalOpt = app_msg.Apply(&MsgInternalOpt{}).(*MsgInternalOpt)
)
Functions ¶
This section is empty.
Types ¶
type FolderMemberFilter ¶
type FolderMemberFilter interface { mo_filter.FilterOpt // Set team members to identify external/internal. SetMembers(member []*mo_member.Member) }
func NewExternalOpt ¶
func NewExternalOpt() FolderMemberFilter
func NewInternalOpt ¶
func NewInternalOpt() FolderMemberFilter
type FolderMemberFilterData ¶
type Group ¶
type Group struct { Raw json.RawMessage EntryAccessType string `path:"access_type.\\.tag" json:"access_type"` EntryIsInherited bool `path:"is_inherited" json:"is_inherited"` GroupName string `path:"group.group_name" json:"group_name"` GroupId string `path:"group.group_id" json:"group_id"` GroupManagementType string `path:"group.group_management_type.\\.tag" json:"group_management_type"` GroupType string `path:"group.group_type.\\.tag" json:"group_type"` IsMember bool `path:"group.is_member" json:"is_member"` IsOwner bool `path:"group.is_owner" json:"is_owner"` // boolean form of determine same team. Returns false if an attribute is not found in JSON. IsSameTeam bool `path:"group.same_team" json:"is_same_team"` // string form of IsSameTeam. Returns empty string if `same_team` attr is not found. EntrySameTeam string `path:"group.same_team" json:"same_team"` GroupExternalId string `path:"group.group_external_id" json:"group_external_id"` MemberCount int `path:"group.member_count" json:"member_count"` }
func (*Group) AccessType ¶
func (*Group) EntryRaw ¶
func (z *Group) EntryRaw() json.RawMessage
func (*Group) IsInherited ¶
func (*Group) MemberType ¶
type Invitee ¶
type Invitee struct { Raw json.RawMessage EntryAccessType string `path:"access_type.\\.tag" json:"access_type"` EntryIsInherited bool `path:"is_inherited" json:"is_inherited"` InviteeEmail string `path:"invitee.email" json:"invitee_email"` // boolean form of determine same team. Returns false if an attribute is not found in JSON. IsSameTeam bool `path:"user.same_team" json:"is_same_team"` // string form of IsSameTeam. Returns empty string if `same_team` attr is not found. EntrySameTeam string `path:"user.same_team" json:"same_team"` }
func (*Invitee) AccessType ¶
func (*Invitee) EntryRaw ¶
func (z *Invitee) EntryRaw() json.RawMessage
func (*Invitee) IsInherited ¶
func (*Invitee) MemberType ¶
type Member ¶
type Member interface { AccessType() string IsInherited() bool MemberType() string User() (user *User, e bool) Group() (group *Group, e bool) Invitee() (invitee *Invitee, e bool) EntryRaw() json.RawMessage // Returns "true" when the member is in the same team. // "false" when the member is not in the same team. Empty string if it's unknown. SameTeam() string Metadata() *Metadata }
type Metadata ¶
type Metadata struct { Raw json.RawMessage EntryAccessType string `path:"access_type.\\.tag" json:"access_type"` EntryIsInherited bool `path:"is_inherited" json:"is_inherited"` }
func (*Metadata) AccessType ¶
func (*Metadata) EntryRaw ¶
func (z *Metadata) EntryRaw() json.RawMessage
func (*Metadata) IsInherited ¶
func (*Metadata) MemberType ¶
type MsgExternalOpt ¶
type MsgInternalOpt ¶
type SharedFolderMember ¶
type SharedFolderMember struct {}
func NewSharedFolderMember ¶
func NewSharedFolderMember(sf *mo_sharedfolder.SharedFolder, m Member) *SharedFolderMember
type User ¶
type User struct { Raw json.RawMessage EntryAccessType string `path:"access_type.\\.tag" json:"access_type"` EntryIsInherited bool `path:"is_inherited" json:"is_inherited"` AccountId string `path:"user.account_id" json:"account_id"` Email string `path:"user.email" json:"email"` DisplayName string `path:"user.display_name" json:"display_name"` // boolean form of determine same team. Returns false if an attribute is not found in JSON. IsSameTeam bool `path:"user.same_team" json:"is_same_team"` // string form of IsSameTeam. Returns empty string if `same_team` attr is not found. EntrySameTeam string `path:"user.same_team" json:"same_team"` TeamMemberId string `path:"user.team_member_id" json:"team_member_id"` }
func (*User) AccessType ¶
func (*User) EntryRaw ¶
func (z *User) EntryRaw() json.RawMessage
func (*User) IsInherited ¶
func (*User) MemberType ¶
Click to show internal directories.
Click to hide internal directories.