context

package
v1.3.9 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2016 License: MIT Imports: 13 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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