Documentation ¶
Index ¶
- type Folder
- func (gf *Folder) BatchStart() (b *batch)
- func (gf *Folder) Copy(tnode *Node, newName string) (node *Node, err error)
- func (gf *Folder) CreateAnyonePermission(role string) *drive.Permission
- func (gf *Folder) CreateUserPermission(email string, role string) *drive.Permission
- func (gf *Folder) DeletePermission(fileId string, permissionId string) error
- func (gf *Folder) Doc2json(node *Node) (buf []byte, err error)
- func (gf *Folder) Doc2txt(node *Node) (txt string, err error)
- func (gf *Folder) FindTextRun(node *Node, txt string) (el *docs.ParagraphElement, err error)
- func (gf *Folder) GetHeaders(node *Node) (h map[string]string, err error)
- func (gf *Folder) GetPermissionList(fileId string) (*drive.PermissionList, error)
- func (gf *Folder) InsertPermission(fileId string, permission *drive.Permission) (*drive.Permission, error)
- func (gf *Folder) QueryNodes(query string) (nodes []*Node, err error)
- func (gf *Folder) Rm(rmnode *Node) (err error)
- func (gf *Folder) UpdatePermission(fileId string, permissionId string, permission *drive.Permission) (*drive.Permission, error)
- type Node
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Folder ¶
type Folder struct { MinNextNum int // contains filtered or unexported fields }
func NewFolder ¶
func NewFolder(cbuf []byte, folderid string, docPattern *regexp.Regexp, minNextNum int) (gf *Folder, err error)
NewFolder returns an object that represents a single gdrive folder. We assume that the folder is accessible by the service account json credentials provided in cbuf.
func (*Folder) BatchStart ¶
func (gf *Folder) BatchStart() (b *batch)
func (*Folder) CreateAnyonePermission ¶
func (*Folder) CreateUserPermission ¶
permissions example: https://github.com/kayac/alphawing/blob/52f67ecb99394dd263e7e33b8f73394e939f53aa/app/models/googleservice.go#L181
func (*Folder) DeletePermission ¶
func (*Folder) FindTextRun ¶
func (*Folder) GetHeaders ¶
func (*Folder) GetPermissionList ¶
func (*Folder) InsertPermission ¶
Click to show internal directories.
Click to hide internal directories.