Documentation ¶
Index ¶
- Constants
- func ExchangeToken(authCode string) (string, error)
- func GRefreshAuth() (*oauth2.Token, error)
- func GUrlAuth() (string, error)
- func ReadFromFile(path string) (string, error)
- func TokenFromFile(file string) (*oauth2.Token, error)
- func WriteIntoFile(path, content string) error
- type Box
- type DriveBox
- type LocalBox
- type Vault
Constants ¶
View Source
const ROOTID string = "root"
Variables ¶
This section is empty.
Functions ¶
func ExchangeToken ¶
func ReadFromFile ¶
func TokenFromFile ¶
Retrieves a token from a local file.
func WriteIntoFile ¶
Types ¶
type DriveBox ¶
type DriveBox struct { Box // contains filtered or unexported fields }
func (DriveBox) ReadBoxItem ¶
Read a file from google drive
func (DriveBox) WriteBoxItem ¶
Write the content item into a file in the box path in subdir of box name
Click to show internal directories.
Click to hide internal directories.