Documentation ¶
Index ¶
- func FullName(s Service) string
- func HasCredentials(s Service) (foundCredentials bool)
- func LoadCredentials(s Service) (token string, e error)
- func SaveCredentials(s Service, token string) (err error)
- type HarvestService
- func (hs *HarvestService) GetName() (name string)
- func (hs *HarvestService) GetProjects() (projectAssignments []*ProjectAssignment)
- func (hs *HarvestService) GetTasks(projectAssignment *ProjectAssignment) (tasks []*harvest.TaskAssignment)
- func (hs *HarvestService) SignIn(account_id string, token string) error
- func (hs *HarvestService) StartTimer(projectID string, taskID string, notes string) (timerID int, err error)
- func (hs *HarvestService) Stoptimer(timerEntryID int) (err error)
- type PivotalTrackerService
- func (pt *PivotalTrackerService) GetName() (name string)
- func (pt *PivotalTrackerService) GetProjects() (projects []*pivotal.Project, err error)
- func (pt *PivotalTrackerService) GetStory(projectID int, storyID int) (story *pivotal.Story)
- func (pt *PivotalTrackerService) SignIn(token string) (err error)
- type ProjectAssignment
- type ProjectsResponse
- type Service
- type TimeEntry
- type UserAssignmentsResponse
- type WhoAmIResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasCredentials ¶
HasCredentials returns true if a user's credentials have been set
func LoadCredentials ¶
LoadCredentials returns the token for the harvest service
func SaveCredentials ¶
SaveCredentials persists credentials to the OSX keychain
Types ¶
type HarvestService ¶
HarvestService defines a harvest service
func NewHarvestService ¶
func NewHarvestService() (harvestService *HarvestService)
NewHarvestService creates a HarvestService instance
func (*HarvestService) GetName ¶
func (hs *HarvestService) GetName() (name string)
GetName returns the name value
func (*HarvestService) GetProjects ¶
func (hs *HarvestService) GetProjects() (projectAssignments []*ProjectAssignment)
GetProjects returns projects
func (*HarvestService) GetTasks ¶
func (hs *HarvestService) GetTasks(projectAssignment *ProjectAssignment) (tasks []*harvest.TaskAssignment)
func (*HarvestService) SignIn ¶
func (hs *HarvestService) SignIn(account_id string, token string) error
SignIn signs a harvest user in
func (*HarvestService) StartTimer ¶
func (*HarvestService) Stoptimer ¶
func (hs *HarvestService) Stoptimer(timerEntryID int) (err error)
type PivotalTrackerService ¶
PivotalTrackerService defines a harvest service
func NewPivotalTrackerService ¶
func NewPivotalTrackerService() (pivotalTrackerService *PivotalTrackerService)
NewPivotalTrackerService returns a new instance of the pivotal tracker service
func (*PivotalTrackerService) GetName ¶
func (pt *PivotalTrackerService) GetName() (name string)
GetName returns the name value
func (*PivotalTrackerService) GetProjects ¶
func (pt *PivotalTrackerService) GetProjects() (projects []*pivotal.Project, err error)
GetProjects returns projects
func (*PivotalTrackerService) GetStory ¶
func (pt *PivotalTrackerService) GetStory(projectID int, storyID int) (story *pivotal.Story)
GetStory returns Story
func (*PivotalTrackerService) SignIn ¶
func (pt *PivotalTrackerService) SignIn(token string) (err error)
SignIn signs a user into
type ProjectAssignment ¶
type ProjectsResponse ¶
ProjectsResponse is a collection of projects returned from /daily
type Service ¶
type Service interface {
GetName() string
}
Service defines a service used in go-to-work
type UserAssignmentsResponse ¶
type UserAssignmentsResponse struct { ProjectAssignments []*ProjectAssignment `json:"project_assignments"` PerPage int64 `json:"per_page"` TotalPages int64 `json:"total_pages"` TotalEntries int64 `json:"total_entries"` NextPage *int64 `json:"next_page"` PreviousPage *int64 `json:"previous_page"` Page int64 `json:"page"` }
type WhoAmIResponse ¶
WhoAmIResponse defines the response from the /account/who_am_i endpoint