Documentation ¶
Index ¶
- func IDFromName(name string, nameList TrelloNameList) string
- func NameFromID(theID string, nameList TrelloNameList) string
- type Config
- type TrelloBadges
- type TrelloCardComment
- type TrelloCardSearchResult
- type TrelloChecklist
- type TrelloClient
- func (client *TrelloClient) BoardNames(memberID string) (TrelloNameList, error)
- func (client *TrelloClient) CardChecklists(cardID string) ([]*TrelloChecklist, error)
- func (client *TrelloClient) CardComments(cardID string) ([]*TrelloCardComment, error)
- func (client *TrelloClient) CreateList(boardID, listName, position string) (*TrelloList, error)
- func (client *TrelloClient) FetchAllBoards() error
- func (client *TrelloClient) FetchAllMembers() error
- func (client *TrelloClient) FetchBoardInfo() error
- func (client *TrelloClient) FetchBoardMembers(boardID string) ([]*TrelloMember, error)
- func (client *TrelloClient) LabelNames(boardID string) (TrelloNameList, error)
- func (client *TrelloClient) ListNames(boardID string) (TrelloNameList, error)
- func (client *TrelloClient) Search() error
- func (client *TrelloClient) SearchCards(query string, limit int) ([]*TrelloCardSearchResult, error)
- func (client *TrelloClient) TrelloNamesFromURL(theURL string) (TrelloNameList, error)
- type TrelloLabel
- type TrelloList
- type TrelloMember
- type TrelloName
- type TrelloNameList
- type TrelloSearchResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IDFromName ¶
func IDFromName(name string, nameList TrelloNameList) string
func NameFromID ¶
func NameFromID(theID string, nameList TrelloNameList) string
Types ¶
type TrelloBadges ¶
type TrelloBadges struct { Attachments int `json:"attachments"` CheckItems int `json:"checkItems"` CheckItemsChecked int `json:"checkItemsChecked"` Comments int `json:"comments"` Description bool `json:"description"` Due string `json:"due"` Fogbugz string `json:"fogbugz"` Subscribed bool `json:"subscribed"` ViewingMemberVoted bool `json:"viewingMemberVoted"` Votes int `json:"votes"` }
type TrelloCardComment ¶
type TrelloCardComment struct { Type string `json:"type"` Date string `json:"date"` IDComment string `json:"id"` IDMemberCreator string `json:"idMemberCreator"` Data struct { Board struct { IDBoard string `json:"id"` BoardName string `json:"name"` ShortLink string `json:"shortLink"` } `json:"board"` Card struct { IDCard string `json:"id"` CardName string `json:"name"` IDShort int64 `json:"idShort"` ShortLink string `json:"shortLink"` } `json:"card"` List struct { IDList string `json:"id"` ListName string `json:"name"` } `json:"list"` Text string `json:"text"` } `json:"data"` MemberCreator struct { AvatarHash string `json:"avatarHash"` FullName string `json:"fullName"` IDMember string `json:"id"` Initials string `json:"initials"` UserName string `json:"username"` } `json:"memberCreator"` }
type TrelloCardSearchResult ¶
type TrelloCardSearchResult struct { ID string `json:"id"` Badges *TrelloBadges `json:"badges"` CheckItemStates []*struct { IDCheckItem string `json:"idCheckItem"` State string `json:"state"` } `json:"checkItemStates"` Closed bool `json:"closed"` DateLastActivity string `json:"dateLastActivity"` Desc string `json:"desc"` DescData interface{} `json:"descData"` Due string `json:"due"` Email string `json:"email"` IDAttachmentCover string `json:"idAttachmentCover"` IDBoard string `json:"idBoard"` IDChecklists []string `json:"idChecklists"` IDLabels []string `json:"idLabels"` IDList string `json:"idList"` IDMembers []string `json:"idMembers"` IDMembersVoted []string `json:"idMembersVoted"` IDShort int `json:"idShort"` Labels []*TrelloLabel `json:"labels"` ManualCoverAttachment bool `json:"manualCoverAttachment"` Name string `json:"name"` Pos float64 `json:"pos"` ShortLink string `json:"shortLink"` ShortURL string `json:"shortUrl"` Subscribed bool `json:"subscribed"` URL string `json:"url "` }
type TrelloChecklist ¶
type TrelloChecklist struct { IDChecklist string `json:"id"` IDBoard string `json:"idBoard"` IDCard string `json:"idCard"` Name string `json:"name"` Position float64 `json:"pos"` CheckItems []struct { ID string `json:"id"` Name string `json:"name"` NameData interface{} `json:"nameData"` Pos float64 `json:"pos"` State string `json:"state"` } `json:"checkItems"` }
type TrelloClient ¶
type TrelloClient struct { TrelloKey string TrelloToken string HTTPClient *http.Client TrelloBoards TrelloNameList TrelloLists map[string]TrelloNameList // contains filtered or unexported fields }
func NewTrelloClient ¶
func NewTrelloClient(c *Config) *TrelloClient
NewTrelloClient allocates new TrelloClient and reads environment variables.
func (*TrelloClient) BoardNames ¶
func (client *TrelloClient) BoardNames(memberID string) (TrelloNameList, error)
func (*TrelloClient) CardChecklists ¶
func (client *TrelloClient) CardChecklists(cardID string) ([]*TrelloChecklist, error)
func (*TrelloClient) CardComments ¶
func (client *TrelloClient) CardComments(cardID string) ([]*TrelloCardComment, error)
func (*TrelloClient) CreateList ¶
func (client *TrelloClient) CreateList(boardID, listName, position string) (*TrelloList, error)
func (*TrelloClient) FetchAllBoards ¶
func (client *TrelloClient) FetchAllBoards() error
func (*TrelloClient) FetchAllMembers ¶
func (client *TrelloClient) FetchAllMembers() error
func (*TrelloClient) FetchBoardInfo ¶
func (client *TrelloClient) FetchBoardInfo() error
func (*TrelloClient) FetchBoardMembers ¶
func (client *TrelloClient) FetchBoardMembers(boardID string) ([]*TrelloMember, error)
func (*TrelloClient) LabelNames ¶
func (client *TrelloClient) LabelNames(boardID string) (TrelloNameList, error)
func (*TrelloClient) ListNames ¶
func (client *TrelloClient) ListNames(boardID string) (TrelloNameList, error)
func (*TrelloClient) Search ¶
func (client *TrelloClient) Search() error
func (*TrelloClient) SearchCards ¶
func (client *TrelloClient) SearchCards(query string, limit int) ([]*TrelloCardSearchResult, error)
func (*TrelloClient) TrelloNamesFromURL ¶
func (client *TrelloClient) TrelloNamesFromURL(theURL string) (TrelloNameList, error)
type TrelloLabel ¶
type TrelloList ¶
type TrelloMember ¶
type TrelloMember struct { AvatarHash string `json:"avatarHash"` Bio string `json:"bio"` BioData interface{} `json:"bioData"` Confirmed bool `json:"confirmed"` FullName string `json:"fullName"` IDMember string `json:"id"` IDPremOrgsAdmin interface{} `json:"idPremOrgsAdmin"` Initials string `json:"initials"` MemberType string `json:"memberType"` Products []int `json:"products"` Status string `json:"status"` URL string `json:"url"` UserName string `json:"username"` }
type TrelloName ¶
type TrelloNameList ¶
type TrelloNameList []*TrelloName
type TrelloSearchResult ¶
type TrelloSearchResult struct { Cards []*TrelloCardSearchResult `json:"cards"` Options interface{} }
Click to show internal directories.
Click to hide internal directories.