api

package
v0.0.0-...-7041641 Latest Latest
Warning

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

Go to latest
Published: May 8, 2021 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AppFs afero.Fs = nil
View Source
var Helper helper

Functions

func GetTokenWithBrowser

func GetTokenWithBrowser(ln net.Listener) (string, error)

Types

type Service

type Service struct {
	*drive.Service
	// contains filtered or unexported fields
}

Service struct is google api service wrapper.

func NewService

func NewService() (*Service, error)

NewService function returns initialized Service object's pointer

func (*Service) CreateMediaFolder

func (api *Service) CreateMediaFolder(media *uds.File) (*drive.File, error)

func (*Service) GetBaseFolder

func (api *Service) GetBaseFolder() (*drive.File, error)

GetBaseFolder locate the base UDS folder

func (*Service) Init

func (api *Service) Init() error

Init works internally but public(export) for using in apt_test package

func (*Service) ListFiles

func (api *Service) ListFiles(query string) ([]*uds.File, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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