google

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package google is a helper package for managing Google credentials and clients.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clients

type Clients struct {
	// contains filtered or unexported fields
}

Clients manages creation of Google APIs clients.

func New

func New(credsFile string) *Clients

New creates *Clients struct that can be used to create clients to Google API services.

func (*Clients) NewDrive

func (c *Clients) NewDrive() (*drive.Service, error)

NewDrive creates a new Google Drive API client.

func (*Clients) NewGCS

func (c *Clients) NewGCS() (*storage.Client, error)

NewGCS creates a new Google Storage client.

func (*Clients) NewSheets

func (c *Clients) NewSheets() (*sheets.Service, error)

NewSheets creates a new Google Sheets API client.

Jump to

Keyboard shortcuts

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