drive

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package drive is the Drive v3 JSON the vfs adapter reads and writes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	ID              string           `json:"id,omitempty"`
	Name            string           `json:"name,omitempty"`
	MimeType        string           `json:"mimeType,omitempty"`
	Size            int64            `json:"size,omitempty,string"`
	Version         int64            `json:"version,omitempty,string"`
	MD5Checksum     string           `json:"md5Checksum,omitempty"`
	ModifiedTime    time.Time        `json:"modifiedTime,omitzero"`
	ShortcutDetails *ShortcutDetails `json:"shortcutDetails,omitempty"`
	Parents         []string         `json:"parents,omitempty"`
	Trashed         bool             `json:"trashed,omitempty"`
}

File is a Drive file or folder.

type FileList

type FileList struct {
	NextPageToken string  `json:"nextPageToken,omitempty"`
	Files         []*File `json:"files,omitempty"`
}

FileList is one page of files.list.

type ShortcutDetails

type ShortcutDetails struct {
	TargetID       string `json:"targetId,omitempty"`
	TargetMimeType string `json:"targetMimeType,omitempty"`
}

ShortcutDetails is the target of a shortcut file.

Jump to

Keyboard shortcuts

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