Documentation ¶
Index ¶
- type DropboxToken
- type ExecutionContext
- func (e *ExecutionContext) CreateDropboxClientByToken(token string) team.Client
- func (e *ExecutionContext) CreateGoogleClientByToken(token *oauth2.Token) (*admin.Service, error)
- func (e *ExecutionContext) InitDropboxClient() error
- func (e *ExecutionContext) InitForSync() error
- func (e *ExecutionContext) InitGoogleAuth() error
- func (e *ExecutionContext) InitGoogleClient() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DropboxToken ¶
type DropboxToken struct {
TeamManagementToken string `json:"token-team-management"`
}
func NewDropboxToken ¶ added in v1.3.8
func NewDropboxToken(mgmtToken string) DropboxToken
type ExecutionContext ¶
type ExecutionContext struct { // Options Options cli.Options // Dropbox Client DropboxClient team.Client DropboxToken DropboxToken // Google Client GoogleClient *admin.Service GoogleClientConfig *oauth2.Config GoogleToken *oauth2.Token }
func NewExecutionContextForTest ¶ added in v1.3.5
func NewExecutionContextForTest() (ExecutionContext, error)
func (*ExecutionContext) CreateDropboxClientByToken ¶
func (e *ExecutionContext) CreateDropboxClientByToken(token string) team.Client
func (*ExecutionContext) CreateGoogleClientByToken ¶
func (e *ExecutionContext) CreateGoogleClientByToken(token *oauth2.Token) (*admin.Service, error)
func (*ExecutionContext) InitDropboxClient ¶
func (e *ExecutionContext) InitDropboxClient() error
func (*ExecutionContext) InitForSync ¶
func (e *ExecutionContext) InitForSync() error
func (*ExecutionContext) InitGoogleAuth ¶ added in v1.3.8
func (e *ExecutionContext) InitGoogleAuth() error
func (*ExecutionContext) InitGoogleClient ¶
func (e *ExecutionContext) InitGoogleClient() error
Click to show internal directories.
Click to hide internal directories.