google

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

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 (g *Client) NewDocsService(ctx context.Context, userID string) (DocsInterface, error)

func (*Client) NewDriveActivityService

func (g *Client) NewDriveActivityService(ctx context.Context, userID string) (DriveActivityInterface, error)

func (*Client) NewDriveService

func (g *Client) NewDriveService(ctx context.Context, userID string) (DriveInterface, error)

func (*Client) NewDriveV2Service

func (g *Client) NewDriveV2Service(ctx context.Context, userID string) (DriveV2Interface, error)

func (*Client) NewSheetsService

func (g *Client) NewSheetsService(ctx context.Context, userID string) (SheetsInterface, error)

func (*Client) NewSlidesService

func (g *Client) NewSlidesService(ctx context.Context, userID string) (SlidesInterface, error)

func (*Client) ReloadConfigs

func (g *Client) ReloadConfigs(newQueriesPerMinute int, newBurstSize int, oauthConfig oauth2.Config)

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 DocsInterface interface {
	Create(ctx context.Context, document *docs.Document) (*docs.Document, error)
}

type DocsService

type DocsService struct {
	// contains filtered or unexported fields
}

func (*DocsService) Create

func (ds *DocsService) Create(ctx context.Context, doc *docs.Document) (*docs.Document, error)

type DriveActivityInterface

type DriveActivityInterface interface {
	Query(ctx context.Context, request *driveactivity.QueryDriveActivityRequest) (*driveactivity.QueryDriveActivityResponse, error)
}

type DriveActivityService

type DriveActivityService struct {
	// contains filtered or unexported fields
}

func (*DriveActivityService) Query

func (ds *DriveActivityService) Query(ctx context.Context, request *driveactivity.QueryDriveActivityRequest) (*driveactivity.QueryDriveActivityResponse, error)

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) About

func (ds DriveService) About(ctx context.Context, fields googleapi.Field) (*drive.About, error)

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 (ds DriveService) CreateReply(ctx context.Context, fileID string, commentID string, reply *drive.Reply) (*drive.Reply, error)

func (DriveService) GetComments

func (ds DriveService) GetComments(ctx context.Context, fileID string, commentID string) (*drive.Comment, error)

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
}

func (DriveServiceV2) About

func (ds DriveServiceV2) About(ctx context.Context, fields googleapi.Field) (*driveV2.About, error)

type DriveV2Interface

type DriveV2Interface interface {
	About(ctx context.Context, fields googleapi.Field) (*driveV2.About, error)
}

type SheetsInterface

type SheetsInterface interface {
	Create(ctx context.Context, spreadsheet *sheets.Spreadsheet) (*sheets.Spreadsheet, error)
}

type SheetsService

type SheetsService struct {
	// contains filtered or unexported fields
}

func (*SheetsService) Create

func (ds *SheetsService) Create(ctx context.Context, spreadsheet *sheets.Spreadsheet) (*sheets.Spreadsheet, error)

type SlidesInterface

type SlidesInterface interface {
	Create(ctx context.Context, presentation *slides.Presentation) (*slides.Presentation, error)
}

type SlidesService

type SlidesService struct {
	// contains filtered or unexported fields
}

func (*SlidesService) Create

func (ds *SlidesService) Create(ctx context.Context, presentation *slides.Presentation) (*slides.Presentation, error)

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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