publish

package
v0.0.0-...-139d2d7 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoogleSheetsService

type GoogleSheetsService struct {
	*sheets.Service
}

GoogleSheetsService describes the google sheets wrapper service.

func NewGoogleSheetsService

func NewGoogleSheetsService() (*GoogleSheetsService, error)

NewGoogleSheetsService creates and returns a new google sheets wrapper service.

func (*GoogleSheetsService) CheckIfSheetExists

func (s *GoogleSheetsService) CheckIfSheetExists(spreadsheetID string, sheetName string) (bool, error)

CheckIfSheetExists in a provided spreadsheet.

func (*GoogleSheetsService) CreateAndCleanupOverallSheet

func (s *GoogleSheetsService) CreateAndCleanupOverallSheet(spreadsheetID string, sheetName string) error

CreateAndCleanupOverallSheet checks if the overall sheet exists, creates it if it doesn't exist and add the respective header line.

func (*GoogleSheetsService) CreateAndCleanupReleaseOverallSheet

func (s *GoogleSheetsService) CreateAndCleanupReleaseOverallSheet(spreadsheetID string, sheetName string) error

CreateAndCleanupReleaseOverallSheet checks if the overall sheet for releases exists, creates it if it doesn't and add the respective header line.

func (*GoogleSheetsService) CreateSheet

func (s *GoogleSheetsService) CreateSheet(spreadsheetID string, sheetName string) error

CreateSheet in an existing spreadsheet with a given name.

func (*GoogleSheetsService) WriteOverallSheetHeader

func (s *GoogleSheetsService) WriteOverallSheetHeader(spreadsheetID string, sheetName string) error

WriteOverallSheetHeader in the provided overall data sheet. This function shall be used only in case the overall data sheet does not exist.

func (*GoogleSheetsService) WritePullRequestReportData

func (s *GoogleSheetsService) WritePullRequestReportData(spreadsheetID string, sheetName string, cellRange string, sprint *domain.SprintSummary, prMetrics *domain.PullRequestMetrics, prFlowRatio *domain.PullRequestFlowRatio) error

WriteReportData to the provided spreadsheet.

func (*GoogleSheetsService) WriteReleaseOverallSheetHeader

func (s *GoogleSheetsService) WriteReleaseOverallSheetHeader(spreadsheetID string, sheetName string) error

WriteReleaseOverallSheetHeader in the provided release overall data sheet. This function shall be used only in case the overall data sheet does not exist.

func (*GoogleSheetsService) WriteReleaseReportData

func (s *GoogleSheetsService) WriteReleaseReportData(spreadsheetID string, sheetName string, cellRange string, sprint *domain.SprintSummary, releaseTagType string, releaseReport *domain.ReleaseReport) error

WriteReleaseReportData to the provided spreadsheet.

Jump to

Keyboard shortcuts

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