repository

package
v0.0.0-...-9a10099 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetS3Client

func GetS3Client() *s3.S3

func GetSesClient

func GetSesClient() *ses.SES

func InitBambooApi

func InitBambooApi() timesheetUploader.BambooApi

func InitS3RepositoryImpl

func InitS3RepositoryImpl(api s3iface.S3API) timesheetUploader.S3Repository

Types

type BambooApiImpl

type BambooApiImpl struct {
	Client HTTPClient
	// contains filtered or unexported fields
}

func (*BambooApiImpl) AddTimesheetRecord

func (api *BambooApiImpl) AddTimesheetRecord(session model.BambooSession, entries []model.TimesheetEntry)

func (*BambooApiImpl) GetHomeContent

func (api *BambooApiImpl) GetHomeContent() model.TimeTracking

* Should be called after logging in

func (*BambooApiImpl) LogIn

func (api *BambooApiImpl) LogIn(username string, password string) model.BambooSession

type HTTPClient

type HTTPClient interface {
	Do(req *http.Request) (*http.Response, error)
}

type S3RepositoryImpl

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

func (S3RepositoryImpl) GetS3FileContent

func (repo S3RepositoryImpl) GetS3FileContent(key string, bucket string) string

type SesRepositoryImpl

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

func (SesRepositoryImpl) SendEmail

func (s SesRepositoryImpl) SendEmail(sender string, recipient string, htmlBody string, subject string)

Jump to

Keyboard shortcuts

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