Documentation ¶
Overview ¶
Package milestones provides access to a project's milestones via the Lighthouse API. http://help.lighthouseapp.com/kb/api/milestones.
Index ¶
- type ListOptions
- type Milestone
- type MilestoneCreate
- type MilestoneUpdate
- type Milestones
- type Service
- func (s *Service) Close(idOrTitle string) error
- func (s *Service) CloseByID(id int) error
- func (s *Service) CloseByTitle(title string) error
- func (s *Service) Create(m *Milestone) (*Milestone, error)
- func (s *Service) Delete(idOrTitle string) error
- func (s *Service) DeleteByID(id int) error
- func (s *Service) DeleteByTitle(title string) error
- func (s *Service) Get(idOrTitle string) (*Milestone, error)
- func (s *Service) GetByID(id int) (*Milestone, error)
- func (s *Service) GetByTitle(title string) (*Milestone, error)
- func (s *Service) List(opts *ListOptions) (Milestones, error)
- func (s *Service) ListAll(opts *ListOptions) (Milestones, error)
- func (s *Service) New() (*Milestone, error)
- func (s *Service) Open(idOrTitle string) error
- func (s *Service) OpenByID(id int) error
- func (s *Service) OpenByTitle(title string) error
- func (s *Service) Update(m *Milestone) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ListOptions ¶
type ListOptions struct { // If non-zero, the page to return Page int }
type Milestone ¶
type Milestone struct { AttachmentsCount int `json:"attachments_count"` CompletedAt *time.Time `json:"completed_at"` CreatedAt *time.Time `json:"created_at"` DueOn *time.Time `json:"due_on"` Goals string `json:"goals"` GoalsHTML string `json:"goals_html"` ID int `json:"id"` MaxPoints int `json:"max_points"` OpenTicketsCount int `json:"open_tickets_count"` Permalink string `json:"permalink"` PointsClosed int `json:"points_closed"` PointsOpen int `json:"points_open"` Position int `json:"position"` ProjectID int `json:"project_id"` TicketsCount int `json:"tickets_count"` Title string `json:"title"` UpdatedAt *time.Time `json:"updated_at"` URL string `json:"url"` UserName string `json:"user_name"` }
type MilestoneCreate ¶
type MilestoneUpdate ¶
type Milestones ¶
type Milestones []*Milestone
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(s *lighthouse.Service, projectID int) *Service
func (*Service) CloseByTitle ¶ added in v0.4.1
func (*Service) DeleteByID ¶ added in v0.4.1
func (*Service) DeleteByTitle ¶ added in v0.4.1
func (*Service) GetByTitle ¶ added in v0.4.1
func (*Service) List ¶
func (s *Service) List(opts *ListOptions) (Milestones, error)
func (*Service) ListAll ¶
func (s *Service) ListAll(opts *ListOptions) (Milestones, error)
ListAll repeatedly calls List and returns all pages. ListAll ignores opts.Page.
func (*Service) OpenByTitle ¶ added in v0.4.1
Click to show internal directories.
Click to hide internal directories.