Documentation ¶
Index ¶
- type Client
- func (g *Client) GetGoogleUserToken(userID string) (*oauth2package.Token, error)
- func (g *Client) NewDocsService(ctx context.Context, userID string) (DocsInterface, error)
- func (g *Client) NewDriveActivityService(ctx context.Context, userID string) (DriveActivityInterface, error)
- func (g *Client) NewDriveService(ctx context.Context, userID string) (DriveInterface, error)
- func (g *Client) NewDriveV2Service(ctx context.Context, userID string) (DriveV2Interface, error)
- func (g *Client) NewSheetsService(ctx context.Context, userID string) (SheetsInterface, error)
- func (g *Client) NewSlidesService(ctx context.Context, userID string) (SlidesInterface, error)
- func (g *Client) ReloadConfigs(newQueriesPerMinute int, newBurstSize int, oauthConfig oauth2.Config)
- type ClientInterface
- type DocsInterface
- type DocsService
- type DriveActivityInterface
- type DriveActivityService
- type DriveInterface
- type DriveService
- func (ds DriveService) About(ctx context.Context, fields googleapi.Field) (*drive.About, error)
- func (ds DriveService) ChangesList(ctx context.Context, pageToken string) (*drive.ChangeList, error)
- func (ds DriveService) CreateFile(ctx context.Context, file *drive.File, fileReader []byte) (*drive.File, error)
- func (ds DriveService) CreatePermission(ctx context.Context, fileID string, permission *drive.Permission) (*drive.Permission, error)
- func (ds DriveService) CreateReply(ctx context.Context, fileID string, commentID string, reply *drive.Reply) (*drive.Reply, error)
- func (ds DriveService) GetComments(ctx context.Context, fileID string, commentID string) (*drive.Comment, error)
- func (ds DriveService) GetFile(ctx context.Context, fileID string) (*drive.File, error)
- func (ds DriveService) GetStartPageToken(ctx context.Context) (*drive.StartPageToken, error)
- func (ds DriveService) StopChannel(ctx context.Context, channel *drive.Channel) error
- func (ds DriveService) WatchChannel(ctx context.Context, startPageToken *drive.StartPageToken, ...) (*drive.Channel, error)
- type DriveServiceV2
- type DriveV2Interface
- type SheetsInterface
- type SheetsService
- type SlidesInterface
- type SlidesService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetGoogleUserToken ¶
func (g *Client) GetGoogleUserToken(userID string) (*oauth2package.Token, error)
func (*Client) NewDocsService ¶
func (*Client) NewDriveActivityService ¶
func (*Client) NewDriveService ¶
func (*Client) NewDriveV2Service ¶
func (*Client) NewSheetsService ¶
func (*Client) NewSlidesService ¶
type ClientInterface ¶
type ClientInterface interface { NewDriveService(ctx context.Context, userID string) (DriveInterface, error) NewDriveV2Service(ctx context.Context, userID string) (DriveV2Interface, error) NewDocsService(ctx context.Context, userID string) (DocsInterface, error) NewSlidesService(ctx context.Context, userID string) (SlidesInterface, error) NewSheetsService(ctx context.Context, userID string) (SheetsInterface, error) NewDriveActivityService(ctx context.Context, userID string) (DriveActivityInterface, error) GetGoogleUserToken(userID string) (*oauth2package.Token, error) ReloadConfigs(newQueriesPerMinute int, newBurstSize int, oauthConfig oauth2.Config) }
func NewGoogleClient ¶
func NewGoogleClient(oauthConfig oauth2.Config, config *config.Configuration, kvstore kvstore.KVStore, papi plugin.API) ClientInterface
type DocsInterface ¶
type DocsService ¶
type DocsService struct {
// contains filtered or unexported fields
}
type DriveActivityInterface ¶
type DriveActivityService ¶
type DriveActivityService struct {
// contains filtered or unexported fields
}
type DriveInterface ¶
type DriveInterface interface { About(ctx context.Context, fields googleapi.Field) (*drive.About, error) WatchChannel(ctx context.Context, startPageToken *drive.StartPageToken, requestChannel *drive.Channel) (*drive.Channel, error) StopChannel(ctx context.Context, channel *drive.Channel) error ChangesList(ctx context.Context, pageToken string) (*drive.ChangeList, error) GetStartPageToken(ctx context.Context) (*drive.StartPageToken, error) GetComments(ctx context.Context, fileID string, commentID string) (*drive.Comment, error) CreateReply(ctx context.Context, fileID string, commentID string, reply *drive.Reply) (*drive.Reply, error) CreateFile(ctx context.Context, file *drive.File, fileReader []byte) (*drive.File, error) GetFile(ctx context.Context, fileID string) (*drive.File, error) CreatePermission(ctx context.Context, fileID string, permission *drive.Permission) (*drive.Permission, error) }
type DriveService ¶
type DriveService struct {
// contains filtered or unexported fields
}
func (DriveService) ChangesList ¶
func (ds DriveService) ChangesList(ctx context.Context, pageToken string) (*drive.ChangeList, error)
func (DriveService) CreateFile ¶
func (ds DriveService) CreateFile(ctx context.Context, file *drive.File, fileReader []byte) (*drive.File, error)
func (DriveService) CreatePermission ¶
func (ds DriveService) CreatePermission(ctx context.Context, fileID string, permission *drive.Permission) (*drive.Permission, error)
func (DriveService) CreateReply ¶
func (DriveService) GetComments ¶
func (DriveService) GetFile ¶
func (ds DriveService) GetFile(ctx context.Context, fileID string) (*drive.File, error)
func (DriveService) GetStartPageToken ¶
func (ds DriveService) GetStartPageToken(ctx context.Context) (*drive.StartPageToken, error)
func (DriveService) StopChannel ¶
func (ds DriveService) StopChannel(ctx context.Context, channel *drive.Channel) error
func (DriveService) WatchChannel ¶
func (ds DriveService) WatchChannel(ctx context.Context, startPageToken *drive.StartPageToken, requestChannel *drive.Channel) (*drive.Channel, error)
type DriveServiceV2 ¶
type DriveServiceV2 struct {
// contains filtered or unexported fields
}
type DriveV2Interface ¶
type SheetsInterface ¶
type SheetsService ¶
type SheetsService struct {
// contains filtered or unexported fields
}
type SlidesInterface ¶
type SlidesService ¶
type SlidesService struct {
// contains filtered or unexported fields
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.