mo_sharedfolder_member

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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 FolderMemberFilterData struct {
	Enabled bool                `json:"enabled"`
	Members []*mo_member.Member `json:"members"`
}

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 (z *Group) AccessType() string

func (*Group) EntryRaw

func (z *Group) EntryRaw() json.RawMessage

func (*Group) Group

func (z *Group) Group() (group *Group, e bool)

func (*Group) Invitee

func (z *Group) Invitee() (invitee *Invitee, e bool)

func (*Group) IsInherited

func (z *Group) IsInherited() bool

func (*Group) MemberType

func (z *Group) MemberType() string

func (*Group) Metadata

func (z *Group) Metadata() *Metadata

func (*Group) SameTeam

func (z *Group) SameTeam() string

func (*Group) User

func (z *Group) User() (user *User, e bool)

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 (z *Invitee) AccessType() string

func (*Invitee) EntryRaw

func (z *Invitee) EntryRaw() json.RawMessage

func (*Invitee) Group

func (z *Invitee) Group() (group *Group, e bool)

func (*Invitee) Invitee

func (z *Invitee) Invitee() (invitee *Invitee, e bool)

func (*Invitee) IsInherited

func (z *Invitee) IsInherited() bool

func (*Invitee) MemberType

func (z *Invitee) MemberType() string

func (*Invitee) Metadata

func (z *Invitee) Metadata() *Metadata

func (*Invitee) SameTeam

func (z *Invitee) SameTeam() string

func (*Invitee) User

func (z *Invitee) User() (user *User, e bool)

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 (z *Metadata) AccessType() string

func (*Metadata) EntryRaw

func (z *Metadata) EntryRaw() json.RawMessage

func (*Metadata) Group

func (z *Metadata) Group() (group *Group, e bool)

func (*Metadata) Invitee

func (z *Metadata) Invitee() (invitee *Invitee, e bool)

func (*Metadata) IsInherited

func (z *Metadata) IsInherited() bool

func (*Metadata) MemberType

func (z *Metadata) MemberType() string

func (*Metadata) Metadata

func (z *Metadata) Metadata() *Metadata

func (*Metadata) SameTeam

func (z *Metadata) SameTeam() string

func (*Metadata) User

func (z *Metadata) User() (user *User, e bool)

type MsgExternalOpt

type MsgExternalOpt struct {
	Desc app_msg.Message
}

type MsgInternalOpt

type MsgInternalOpt struct {
	Desc app_msg.Message
}

type SharedFolderMember

type SharedFolderMember struct {
	Raw                  json.RawMessage
	SharedFolderId       string `path:"sharedfolder.shared_folder_id" json:"shared_folder_id"`
	ParentSharedFolderId string `path:"sharedfolder.parent_shared_folder_id" json:"parent_shared_folder_id"`
	Name                 string `path:"sharedfolder.name" json:"name"`
	PathLower            string `path:"sharedfolder.path_lower" json:"path_lower"`
	IsInsideTeamFolder   bool   `path:"sharedfolder.is_inside_team_folder" json:"is_inside_team_folder"`
	IsTeamFolder         bool   `path:"sharedfolder.is_team_folder" json:"is_team_folder"`
	AccessType           string `path:"member.access_type.\\.tag" json:"access_type"`
	IsInherited          bool   `path:"member.is_inherited" json:"is_inherited"`
	AccountId            string `path:"member.user.account_id" json:"account_id"`
	Email                string `path:"member.user.email" json:"email"`
	DisplayName          string `path:"member.user.display_name" json:"display_name"`
	GroupName            string `path:"member.group.group_name" json:"group_name"`
	GroupId              string `path:"member.group.group_id" json:"group_id"`
	InviteeEmail         string `path:"member.invitee.email" json:"invitee_email"`
}

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 (z *User) AccessType() string

func (*User) EntryRaw

func (z *User) EntryRaw() json.RawMessage

func (*User) Group

func (z *User) Group() (group *Group, e bool)

func (*User) Invitee

func (z *User) Invitee() (invitee *Invitee, e bool)

func (*User) IsInherited

func (z *User) IsInherited() bool

func (*User) MemberType

func (z *User) MemberType() string

func (*User) Metadata

func (z *User) Metadata() *Metadata

func (*User) SameTeam

func (z *User) SameTeam() string

func (*User) User

func (z *User) User() (user *User, e bool)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL