trello

package
v1.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2021 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Card

type Card *trello.Card

func NewCard

func NewCard(name, description string, dueDate *time.Time) (card Card, err error)

NewCard creates a new Trello card model with the given mandatory fields name, and the optional description and dueDate fields

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(cfg config.Trello) (client Client, err error)

func (Client) CreateCard

func (c Client) CreateCard(card Card, label string, listId string) error

CreateCard creates a Trello card using the the Trello API

func (Client) DeleteCard

func (c Client) DeleteCard(card Card) error

DeleteCard deletes a Trello card using the the Trello API

func (Client) FilterNewAndStale

func (c Client) FilterNewAndStale(cards []Card, label string) (new, stale []Card)

FilterNewAndStale compares the given cards with the existing cards and returns two arrays; one containing new cards and the other containing stale cards.

func (Client) LoadBoard

func (c Client) LoadBoard(labels []string) error

LoadBoard retrieves existing cards from the board that have at least one of the given label IDs

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL