uc_team_sharedlink

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

This section is empty.

Variables

This section is empty.

Functions

func DeleteMemberLink(target *Target, c app_control.Control, ctx dbx_context.Context, onSuccess DeleteOnSuccess, onFailure DeleteOnFailure) error

func DeleteMemberLinkWithSel

func DeleteMemberLinkWithSel(target *Target, c app_control.Control, ctx dbx_context.Context, onSuccess DeleteOnSuccess, onFailure DeleteOnFailure, sel Selector) error
func RetrieveMemberLinks(member *mo_member.Member, c app_control.Control, ctx dbx_context.Context, handler OnSharedLinkMember) error

func Update

func Update(target *Target, c app_control.Control, ctx dbx_context.Context, sel Selector, opts UpdateOpts) error

Types

type DeleteOnFailure

type DeleteOnFailure func(t *Target, cause error)

type DeleteOnSuccess

type DeleteOnSuccess func(t *Target)

type OnSharedLinkMember

type OnSharedLinkMember func(member *mo_member.Member, entry *mo_sharedlink.SharedLinkMember)

type Selector

type Selector interface {
	// Register the url for process.
	Register(url string) error

	// Mark the url as processed.
	Processed(url string) error

	// Check weather the url is for process.
	IsTarget(url string) (bool, error)

	// Report missing urls
	Done() error

	// Number of targets
	NumTargets() int
}

func NewSelector

func NewSelector(c app_control.Control, onMissing SelectorOnMissing) (Selector, error)

type SelectorOnMissing

type SelectorOnMissing func(url string)

type Target

type Target struct {
	Member *mo_member.Member
	Entry  *mo_sharedlink.SharedLinkMember
}
type TargetLinks struct {
	Url string `json:"url"`
}

type UpdateCreateOpts

type UpdateCreateOpts func(target *Target) (opts []sv_sharedlink.LinkOpt)

Create update options for the target

type UpdateFilter

type UpdateFilter func(target *Target) bool

Return true to include target

type UpdateOnFailure

type UpdateOnFailure func(target *Target, err error)

type UpdateOnSkip

type UpdateOnSkip func(target *Target)

Callback on skip

type UpdateOnSuccess

type UpdateOnSuccess func(target *Target, updated mo_sharedlink.SharedLink)

type UpdateOpts

type UpdateOpts struct {
	Filter    UpdateFilter
	Opts      UpdateCreateOpts
	OnSkip    UpdateOnSkip
	OnMissing SelectorOnMissing
	OnSuccess UpdateOnSuccess
	OnFailure UpdateOnFailure
}

Jump to

Keyboard shortcuts

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