Documentation ¶
Index ¶
- type Me
- type PivotalClient
- type Project
- func (project *Project) GetReleases() ([]Story, error)
- func (project *Project) GetStories(state StoryState, label string) ([]Story, error)
- func (project *Project) GetStoriesTBD(label string) ([]Story, error)
- func (project *Project) GetStory(id int) (Story, error)
- func (project *Project) SelectReleases() (Story, error)
- func (project *Project) SelectStoryTBD(label string) (Story, error)
- type Story
- type StoryState
- type StoryType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PivotalClient ¶
type PivotalClient struct {
// contains filtered or unexported fields
}
func NewPivotalClient ¶
func NewPivotalClient(token string) *PivotalClient
func (*PivotalClient) GetProjectByName ¶
func (pt *PivotalClient) GetProjectByName(name string) (Project, error)
func (*PivotalClient) GetProjects ¶
func (pt *PivotalClient) GetProjects() ([]Project, error)
func (*PivotalClient) Me ¶
func (pt *PivotalClient) Me() (Me, error)
func (*PivotalClient) SelectProject ¶
func (pt *PivotalClient) SelectProject(name string) (Project, error)
type Project ¶
type Project struct { ID int `json:"id,omitempty"` Name string `json:"name,omitempty"` // contains filtered or unexported fields }
func (*Project) GetReleases ¶
func (*Project) GetStories ¶
func (project *Project) GetStories(state StoryState, label string) ([]Story, error)
func (*Project) GetStoriesTBD ¶
func (*Project) SelectReleases ¶
type Story ¶
type Story struct { ID int `json:"id,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` Type StoryType `json:"story_type,omitempty"` TypeIcon string `json:"-"` State StoryState `json:"current_state,omitempty"` Owners []int `json:"owner_ids,omitempty"` Priority string `json:"story_priority,omitempty"` Estimate float32 `json:"estimate,omitempty"` ProjectID int `json:"-"` // contains filtered or unexported fields }
type StoryState ¶
type StoryState string
const ( StoryAll StoryState = "all" StoryAccepted StoryState = "accepted" StoryDelivered StoryState = "delivered" StoryFinished StoryState = "finished" StoryStarted StoryState = "started" StoryRejected StoryState = "rejected" StoryPlanned StoryState = "planned" StoryUnstarted StoryState = "unstarted" StoryUnscheduled StoryState = "unscheduled" )
Click to show internal directories.
Click to hide internal directories.