Documentation ¶
Index ¶
- type Client
- func (c *Client) AddParentFolder(fileID string, folderID string) error
- func (c *Client) CreateFolder(folderName string) (*drive.File, error)
- func (c *Client) CreateSubFolder(parentFolderID string, folderName string) (*drive.File, error)
- func (c *Client) DeleteFile(fileID string) error
- func (c *Client) GetFile(fileID string, fileFields []string) (*drive.File, error)
- func (c *Client) GrantUserReaderPemission(fileID string, email string, sendEmail bool) error
- func (c *Client) GrantUserWriterPemission(fileID string, email string, sendEmail bool) error
- func (c *Client) ListFiles(fileFields []string, limit int64, options ...option.ListOption) ([]*drive.File, error)
- func (c *Client) ListPermissions(fileID string) ([]*drive.Permission, error)
- func (c *Client) UploadFile(localFile string, uploadFilename string, options ...option.UploadOption) (*drive.File, error)
- func (c *Client) UploadFileToFolder(localFile string, uploadFilename string, folderID string, ...) (*drive.File, error)
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
}
Client provides apis for Google Drive
func (*Client) AddParentFolder ¶
func (*Client) CreateFolder ¶
CreateFolder creates new folder
func (*Client) CreateSubFolder ¶
CreateSubFolder creates new folder and set parent folder id of it
func (*Client) DeleteFile ¶
func (*Client) GrantUserReaderPemission ¶
func (*Client) GrantUserWriterPemission ¶
func (*Client) ListPermissions ¶ added in v0.0.5
func (*Client) UploadFile ¶
func (c *Client) UploadFile(localFile string, uploadFilename string, options ...option.UploadOption) (*drive.File, error)
UploadFile uploads file to Google Drive
func (*Client) UploadFileToFolder ¶
Click to show internal directories.
Click to hide internal directories.