Documentation ¶
Index ¶
Constants ¶
View Source
const ( StoryTypeFeature = "feature" StoryTypeBug = "bug" StoryTypeChore = "chore" StoryTypeRelease = "release" )
View Source
const ( StoryStateUnscheduled = "unscheduled" StoryStatePlanned = "planned" StoryStateStarted = "started" StoryStateFinished = "finished" StoryStateDelivered = "delivered" StoryStateAccepted = "accepted" StoryStateRejected = "rejected" )
Variables ¶
View Source
var DefaultURL = "https://www.pivotaltracker.com"
Functions ¶
This section is empty.
Types ¶
type Activity ¶
type Activity struct { Kind string `json:"kind"` GUID string `json:"guid"` ProjectVersion int `json:"project_version"` Message string `json:"message"` Highlight string `json:"highlight"` Changes []interface{} `json:"changes"` PrimaryResources []interface{} `json:"primary_resources"` Project interface{} `json:"project"` PerformedBy interface{} `json:"performed_by"` OccurredAt int64 `json:"occurred_at"` }
type ActivityQuery ¶
type ActivityQuery struct { Limit int Offset int OccurredBefore int64 OccurredAfter int64 SinceVersion int }
func (ActivityQuery) Query ¶
func (query ActivityQuery) Query() url.Values
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (Client) InProject ¶
func (c Client) InProject(projectId int) ProjectClient
type ProjectClient ¶
type ProjectClient struct {
// contains filtered or unexported fields
}
func (ProjectClient) CreateStory ¶
func (p ProjectClient) CreateStory(story Story) error
func (ProjectClient) DeliverStory ¶
func (p ProjectClient) DeliverStory(storyId int) error
func (ProjectClient) Stories ¶
func (p ProjectClient) Stories(query StoriesQuery) (stories []Story, err error)
func (ProjectClient) StoryActivity ¶
func (p ProjectClient) StoryActivity(storyId int, query ActivityQuery) (activities []Activity, err error)
type StoriesQuery ¶
type StoriesQuery struct { State StoryState Label string Limit int }
func (StoriesQuery) Query ¶
func (query StoriesQuery) Query() url.Values
type StoryState ¶
type StoryState string
Click to show internal directories.
Click to hide internal directories.