Versions in this module Expand all Collapse all v1 v1.18.0 Aug 2, 2026 Changes in this version + type ChangeSource struct + func NewChangeSource(ctx context.Context, opts ...Option) (*ChangeSource, error) + func (s *ChangeSource) GetStartPageToken() (string, error) + func (s *ChangeSource) Info() source.SourceInfo + func (s *ChangeSource) WalkChanges(ctx context.Context, token string, callback func(source.FileChange) error) (string, error) + type Option func(*gDriveOptions) + func WithAccountEmail(email string) Option + func WithCredsJSON(data []byte) Option + func WithCredsPath(path string) Option + func WithCredsRef(ref string) Option + func WithDriveID(id string) Option + func WithDriveName(name string) Option + func WithDriveService(srv *drive.Service) Option + func WithExcludePatterns(patterns []string) Option + func WithHTTPClient(client *http.Client) Option + func WithLogger(w io.Writer) Option + func WithResolver(r *secretref.Resolver) Option + func WithRootFolderID(id string) Option + func WithRootPath(path string) Option + func WithSkipNativeFiles() Option + func WithTokenPath(path string) Option + func WithTokenRef(ref string) Option + type Source struct + func New(ctx context.Context, opts ...Option) (*Source, error) + func (s *Source) GetFileStream(fileID string) (io.ReadCloser, error) + func (s *Source) Info() source.SourceInfo + func (s *Source) Size(ctx context.Context) (*source.SourceSize, error) + func (s *Source) Walk(ctx context.Context, callback func(source.FileMeta) error) error