google

package
v0.0.0-...-807c6dc Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service is capable of communicating with the Google Drive API and the Google Sheets API to create new spreadsheets and populate them from benchstat output.

TODO discuss GOOGLE_APPLICATION_CREDENTIALS

func New

func New(ctx context.Context) (*Service, error)

New creates a new Service. It verifies that credentials are properly set and returns an error if they are not.

func (*Service) CreateSheet

func (srv *Service) CreateSheet(
	ctx context.Context, name string, tables []*benchstat.Table,
) (string, error)

CreateSheet creates a new Google spreadsheet with the provided metric data.

Jump to

Keyboard shortcuts

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