Documentation
¶
Index ¶
Constants ¶
View Source
const FileScope = "https://www.googleapis.com/auth/drive.file"
View Source
const SelectedFiles = "selected_files"
Variables ¶
This section is empty.
Functions ¶
func ValidFileScopes ¶
ValidFileScopes rejects legacy broad grants rather than treating them as selected-file access.
func ValidateID ¶
Types ¶
type Config ¶
type Config struct {
AccessMode string `json:"access_mode,omitempty" validate:"omitempty,oneof=selected_files"`
}
func (Config) ConsentMode ¶
func (*Config) UnmarshalJSON ¶
type ListOptions ¶
type ListOptions struct {
FolderID string `json:"folder_id,omitempty"`
DriveID string `json:"drive_id,omitempty"`
MIMEType string `json:"mime_type,omitempty"`
PageToken string `json:"page_token,omitempty"`
}
func (ListOptions) Validate ¶
func (o ListOptions) Validate() error
type PendingInstallConfig ¶
type PendingInstallConfig = Config
type Rectangle ¶
type Rectangle struct{ StartRow, EndRow, StartColumn, EndColumn int }
Rectangle uses one-based inclusive coordinates, matching bounded A1 ranges.
func ParseRange ¶
type Statement ¶
type Statement struct {
Type string `json:"type"`
Resource string `json:"resource"`
Operation string `json:"operation"`
SpreadsheetID string `json:"spreadsheet_id,omitempty"`
WorksheetID *int `json:"worksheet_id,omitempty"`
Range string `json:"range,omitempty"`
Columns []string `json:"columns,omitempty"`
Rows json.RawMessage `json:"rows,omitempty"`
FileID string `json:"file_id,omitempty"`
FolderID string `json:"folder_id,omitempty"`
DriveID string `json:"drive_id,omitempty"`
MIMEType string `json:"mime_type,omitempty"`
PageToken string `json:"page_token,omitempty"`
Name string `json:"name,omitempty"`
Format string `json:"format,omitempty"`
Content json.RawMessage `json:"content,omitempty"`
MatchText string `json:"match_text,omitempty"`
Delimiter string `json:"delimiter,omitempty"`
HasHeader *bool `json:"has_header,omitempty"`
}
func DecodeStatement ¶
func (Statement) ListOptions ¶
func (s Statement) ListOptions() ListOptions
func (Statement) NativeMIMEType ¶
Click to show internal directories.
Click to hide internal directories.