Versions in this module Expand all Collapse all v1 v1.0.2 Sep 18, 2024 Changes in this version + const DefaultBaseURL + func IDToTime(id string) (t time.Time, err error) + func IsNotFound(err error) bool + func IsPermissionDenied(err error) bool + func IsRateLimit(err error) bool + type Action struct + Data *ActionData + Date time.Time + ID string + IDMemberCreator string + Member *Member + MemberCreator *Member + Type string + func (a *Action) DidArchiveCard() bool + func (a *Action) DidChangeCardMembership() bool + func (a *Action) DidChangeListForCard() bool + func (a *Action) DidCommentCard() bool + func (a *Action) DidCreateCard() bool + func (a *Action) DidUnarchiveCard() bool + func (a *Action) SetClient(newClient *Client) + type ActionCollection []*Action + func (actions ActionCollection) GetListDurations() (durations []*ListDuration, err error) + func (actions ActionCollection) GetMemberDurations() (durations []*MemberDuration, err error) + func (c ActionCollection) ContainsCardCreation() bool + func (c ActionCollection) FilterToCardCreationActions() ActionCollection + func (c ActionCollection) FilterToCardMembershipChangeActions() ActionCollection + func (c ActionCollection) FilterToListChangeActions() ActionCollection + func (c ActionCollection) FirstCardCreateAction() *Action + func (c ActionCollection) LastCommentAction() *Action + func (c ActionCollection) Len() int + func (c ActionCollection) Less(i, j int) bool + func (c ActionCollection) Swap(i, j int) + type ActionData struct + Board *Board + Card *ActionDataCard + CardSource *ActionDataCard + CheckItem *CheckItem + Checklist *Checklist + DateLastEdited time.Time + List *List + ListAfter *List + ListBefore *List + Old *ActionDataCard + Text string + type ActionDataCard struct + Closed bool + ID string + IDShort int + Name string + Pos float64 + ShortLink string + type AddedMembersResponse struct + ID string + Members []*Member + Memberships []*Membership + type Arguments map[string]string + func Defaults() Arguments + func (args Arguments) ToURLValues() url.Values + type Attachment struct + Bytes int + Card *Card + Date string + EdgeColor string + ID string + IDMember string + IsUpload bool + MimeType string + Name string + Pos float32 + Previews []AttachmentPreview + URL string + func (a *Attachment) SetClient(newClient *Client) + type AttachmentPreview struct + Bytes int + Height int + ID string + Scaled bool + URL string + Width int + type BackgroundImage struct + Height int + URL string + Width int + type Board struct + Actions []*Action + Closed bool + Desc string + ID string + IDOrganization string + LabelNames BoardLabelNames + Lists []*List + Name string + Organization Organization + Pinned bool + Prefs BoardPrefs + ShortURL string + Starred bool + Subscribed bool + URL string + func NewBoard(name string) Board + func (b *Board) AddMember(member *Member, extraArgs ...Arguments) (response *AddedMembersResponse, err error) + func (b *Board) ContainsCopyOfCard(cardID string, extraArgs ...Arguments) (bool, error) + func (b *Board) CreateLabel(label *Label, extraArgs ...Arguments) error + func (b *Board) CreateList(name string, extraArgs ...Arguments) (list *List, err error) + func (b *Board) CreatedAt() time.Time + func (b *Board) Delete(extraArgs ...Arguments) error + func (b *Board) GetActions(extraArgs ...Arguments) (actions ActionCollection, err error) + func (b *Board) GetCards(extraArgs ...Arguments) (cards []*Card, err error) + func (b *Board) GetCustomFields(extraArgs ...Arguments) (customFields []*CustomField, err error) + func (b *Board) GetLabels(extraArgs ...Arguments) (labels []*Label, err error) + func (b *Board) GetLists(extraArgs ...Arguments) (lists []*List, err error) + func (b *Board) GetMembers(extraArgs ...Arguments) (members []*Member, err error) + func (b *Board) SetClient(newClient *Client) + func (b *Board) Update(extraArgs ...Arguments) error + type BoardLabelNames struct + Black string + Blue string + Green string + Lime string + Orange string + Pink string + Purple string + Red string + Sky string + Yellow string + type BoardPrefs struct + Background string + BackgroundBrightness string + BackgroundColor string + BackgroundImage string + BackgroundImageScaled []BackgroundImage + BackgroundTile bool + CalendarFeedEnabled bool + CanBeOrg bool + CanBePrivate bool + CanBePublic bool + CanInvite bool + CardAging string + CardCovers bool + Comments string + Invitations string + PermissionLevel string + SelfJoin bool + Voting string + type BoardWebhookRequest struct + Action *Action + Model *Board + func GetBoardWebhookRequest(r *http.Request) (whr *BoardWebhookRequest, err error) + type ByFirstEntered []*ListDuration + func (durs ByFirstEntered) Len() int + func (durs ByFirstEntered) Less(i, j int) bool + func (durs ByFirstEntered) Swap(i, j int) + type ByLongestDuration []*MemberDuration + func (d ByLongestDuration) Len() int + func (d ByLongestDuration) Less(i, j int) bool + func (d ByLongestDuration) Swap(i, j int) + type Card struct + Actions ActionCollection + Attachments []*Attachment + Badges CardBadges + Board *Board + CheckItemStates []*CheckItemState + Checklists []*Checklist + Closed bool + Cover *CardCover + CustomFieldItems []*CustomFieldItem + DateLastActivity *time.Time + Desc string + Due *time.Time + DueComplete bool + Email string + ID string + IDAttachmentCover string + IDBoard string + IDCheckLists []string + IDLabels []string + IDList string + IDMembers []string + IDMembersVoted []string + IDShort int + Labels []*Label + List *List + ManualCoverAttachment bool + Members []*Member + Name string + Pos float64 + ShortLink string + ShortURL string + Start *time.Time + Subscribed bool + URL string + func (c *Card) AddComment(comment string, extraArgs ...Arguments) (*Action, error) + func (c *Card) AddFileAttachment(attachment *Attachment, filename string, file io.Reader, ...) error + func (c *Card) AddIDLabel(labelID string) error + func (c *Card) AddMemberID(memberID string) (member []*Member, err error) + func (c *Card) AddURLAttachment(attachment *Attachment, extraArgs ...Arguments) error + func (c *Card) Archive() error + func (c *Card) CopyToList(listID string, extraArgs ...Arguments) (*Card, error) + func (c *Card) CreatedAt() time.Time + func (c *Card) CreatorMember() (*Member, error) + func (c *Card) CreatorMemberID() (string, error) + func (c *Card) CustomFields(boardCustomFields []*CustomField) map[string]interface{} + func (c *Card) Delete() error + func (c *Card) GetActions(extraArgs ...Arguments) (actions ActionCollection, err error) + func (c *Card) GetAncestorCards(extraArgs ...Arguments) (ancestors []*Card, err error) + func (c *Card) GetAttachments(args Arguments) (attachments []*Attachment, err error) + func (c *Card) GetCommentActions() (actions ActionCollection, err error) + func (c *Card) GetLastCommentAction() (*Action, error) + func (c *Card) GetListChangeActions() (actions ActionCollection, err error) + func (c *Card) GetListDurations() (durations []*ListDuration, err error) + func (c *Card) GetMemberDurations() (durations []*MemberDuration, err error) + func (c *Card) GetMembers(extraArgs ...Arguments) (members []*Member, err error) + func (c *Card) GetMembershipChangeActions() (actions ActionCollection, err error) + func (c *Card) GetOriginatingCard(extraArgs ...Arguments) (*Card, error) + func (c *Card) GetParentCard(extraArgs ...Arguments) (*Card, error) + func (c *Card) MoveToBottomOfList() error + func (c *Card) MoveToList(listID string, extraArgs ...Arguments) error + func (c *Card) MoveToTopOfList() error + func (c *Card) RemoveIDLabel(labelID string, label *Label) error + func (c *Card) RemoveMember(memberID string) error + func (c *Card) SetClient(newClient *Client) + func (c *Card) SetPos(newPos float64) error + func (c *Card) Unarchive() error + func (c *Card) Update(extraArgs ...Arguments) error + type CardBadges struct + Attachments int + CheckItems int + CheckItemsChecked int + Comments int + Description bool + Due *time.Time + Fogbugz string + Subscribed bool + ViewingMemberVoted bool + Votes int + type CardCover struct + Brightness string + Color string + EdgeColor string + IDAttachment string + IDUploadedBackground string + Scaled []*CardCoverScaledVariant + SharedSourceURL string + Size string + type CardCoverScaledVariant struct + Bytes int + Height int + ID string + Scaled bool + URL string + Width int + type CardWebhookRequest struct + Action *Action + Model *Card + func GetCardWebhookRequest(r *http.Request) (whr *CardWebhookRequest, err error) + type CheckItem struct + Checklist *Checklist + ID string + IDChecklist string + Name string + Pos float64 + State string + func (ci *CheckItem) SetClient(newClient *Client) + type CheckItemState struct + IDCheckItem string + State string + type Checklist struct + Card *Card + CheckItems []CheckItem + ID string + IDBoard string + IDCard string + Name string + Pos float64 + func (cl *Checklist) CreateCheckItem(name string, extraArgs ...Arguments) (item *CheckItem, err error) + func (cl *Checklist) SetClient(newClient *Client) + type Client struct + BaseURL string + Client *http.Client + Key string + Logger logger + Token string + func NewClient(key, token string) *Client + func (c *Client) CreateBoard(board *Board, extraArgs ...Arguments) error + func (c *Client) CreateCard(card *Card, extraArgs ...Arguments) error + func (c *Client) CreateCheckItem(checklist *Checklist, name string, extraArgs ...Arguments) (item *CheckItem, err error) + func (c *Client) CreateChecklist(card *Card, name string, extraArgs ...Arguments) (checklist *Checklist, err error) + func (c *Client) CreateList(onBoard *Board, name string, extraArgs ...Arguments) (list *List, err error) + func (c *Client) CreateWebhook(webhook *Webhook) error + func (c *Client) Delete(path string, args Arguments, target interface{}) error + func (c *Client) Get(path string, args Arguments, target interface{}) error + func (c *Client) GetBoard(boardID string, extraArgs ...Arguments) (board *Board, err error) + func (c *Client) GetBoardsInOrganization(orgID string, extraArgs ...Arguments) (boards []*Board, err error) + func (c *Client) GetCard(cardID string, extraArgs ...Arguments) (card *Card, err error) + func (c *Client) GetChecklist(checklistID string, args Arguments) (checklist *Checklist, err error) + func (c *Client) GetCustomField(fieldID string, extraArgs ...Arguments) (customField *CustomField, err error) + func (c *Client) GetLabel(labelID string, extraArgs ...Arguments) (label *Label, err error) + func (c *Client) GetList(listID string, extraArgs ...Arguments) (list *List, err error) + func (c *Client) GetMember(memberID string, extraArgs ...Arguments) (member *Member, err error) + func (c *Client) GetMyBoards(extraArgs ...Arguments) (boards []*Board, err error) + func (c *Client) GetMyMember(args Arguments) (member *Member, err error) + func (c *Client) GetMyNotifications(extraArgs ...Arguments) (notifications []*Notification, err error) + func (c *Client) GetOrganization(orgID string, extraArgs ...Arguments) (organization *Organization, err error) + func (c *Client) GetToken(tokenID string, extraArgs ...Arguments) (token *Token, err error) + func (c *Client) GetWebhook(webhookID string, extraArgs ...Arguments) (webhook *Webhook, err error) + func (c *Client) Post(path string, args Arguments, target interface{}) error + func (c *Client) PostWithBody(path string, args Arguments, target interface{}, filename string, ...) error + func (c *Client) Put(path string, args Arguments, target interface{}) error + func (c *Client) PutBoard(board *Board, extraArgs ...Arguments) error + func (c *Client) SearchBoards(query string, extraArgs ...Arguments) (boards []*Board, err error) + func (c *Client) SearchCards(query string, extraArgs ...Arguments) (cards []*Card, err error) + func (c *Client) SearchMembers(query string, extraArgs ...Arguments) (members []*Member, err error) + func (c *Client) Throttle() + func (c *Client) WithContext(ctx context.Context) *Client + type CustomField struct + Display struct{ ... } + FieldGroup string + ID string + IDModel string + IDModelType string + Name string + Options []*CustomFieldOption + Pos int + Type string + type CustomFieldItem struct + ID string + IDCustomField string + IDModel string + IDModelType string + IDValue string + Value CustomFieldValue + type CustomFieldOption struct + Color string + ID string + IDCustomField string + Pos int + Value struct{ ... } + type CustomFieldValue struct + func NewCustomFieldValue(val interface{}) CustomFieldValue + func (v *CustomFieldValue) UnmarshalJSON(b []byte) error + func (v CustomFieldValue) Get() interface{} + func (v CustomFieldValue) MarshalJSON() ([]byte, error) + func (v CustomFieldValue) String() string + type Label struct + Color string + ID string + IDBoard string + Name string + Uses int + func (l *Label) SetClient(newClient *Client) + type List struct + Board *Board + Cards []*Card + Closed bool + ID string + IDBoard string + Name string + Pos float32 + Subscribed bool + func ListAfterAction(a *Action) *List + func (l *List) AddCard(card *Card, extraArgs ...Arguments) error + func (l *List) Archive() error + func (l *List) CreatedAt() time.Time + func (l *List) GetActions(extraArgs ...Arguments) (actions ActionCollection, err error) + func (l *List) GetCards(extraArgs ...Arguments) (cards []*Card, err error) + func (l *List) SetClient(newClient *Client) + func (l *List) Unarchive() error + func (l *List) Update(extraArgs ...Arguments) error + type ListDuration struct + Duration time.Duration + FirstEntered time.Time + ListID string + ListName string + TimesInList int + func (l *ListDuration) AddDuration(d time.Duration) + type ListWebhookRequest struct + Action *Action + Model *List + func GetListWebhookRequest(r *http.Request) (whr *ListWebhookRequest, err error) + type Member struct + AvatarHash string + AvatarURL string + Email string + FullName string + ID string + IDBoards []string + IDOrganizations []string + Initials string + Username string + func (m *Member) GetBoards(extraArgs ...Arguments) (boards []*Board, err error) + func (m *Member) SetClient(newClient *Client) + type MemberDuration struct + Duration time.Duration + FirstAdded time.Time + MemberID string + MemberName string + type Membership struct + Deactivated bool + ID string + MemberID string + Type string + Unconfirmed bool + type Notification struct + Data NotificationData + Date time.Time + DateRead time.Time + ID string + IDAction string + IDMemberCreator string + MemberCreator *Member + Type string + Unread bool + func (n *Notification) SetClient(newClient *Client) + type NotificationData struct + Board *NotificationDataBoard + Card *NotificationDataCard + Text string + type NotificationDataBoard struct + ID string + Name string + ShortLink string + type NotificationDataCard struct + ID string + IDShort int + Name string + ShortLink string + type Organization struct + Desc string + DisplayName string + ID string + Name string + PowerUps []int + Products []int + URL string + Website string + func (o *Organization) GetMembers(extraArgs ...Arguments) (members []*Member, err error) + func (o *Organization) SetClient(newClient *Client) + type Permission struct + IDModel string + ModelType string + Read bool + Write bool + type SearchModifier struct + Text string + type SearchOptions struct + ModelTypes []string + Modifiers []SearchModifier + Partial bool + Terms []SearchTerm + type SearchResult struct + Actions []*Action + Boards []*Board + Cards []*Card + Members []*Member + Options SearchOptions + type SearchTerm struct + Negated bool + Text string + type Token struct + DateCreated time.Time + DateExpires *time.Time + ID string + IDMember string + Identifier string + Permissions []Permission + func (t *Token) GetWebhooks(extraArgs ...Arguments) (webhooks []*Webhook, err error) + func (t *Token) SetClient(newClient *Client) + type Webhook struct + Active bool + CallbackURL string + Description string + ID string + IDModel string + func (w *Webhook) Delete(extraArgs ...Arguments) error + func (w *Webhook) SetClient(newClient *Client)