trello

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAccount

func GetAccount(accessKey, accessToken string) (types.Account, error)

Types

type Account

type Account pkg.APIv1MemberResponse

Account implements types.Account

func (Account) GetCreatedAt

func (a Account) GetCreatedAt() *string

func (Account) GetEmail

func (a Account) GetEmail() *string

func (Account) GetFollowerCount

func (a Account) GetFollowerCount() *int

func (Account) GetIsAdmin

func (a Account) GetIsAdmin() *bool

func (Account) GetLastSeen

func (a Account) GetLastSeen() *string
func (a Account) GetLink() *string

func (Account) GetName

func (a Account) GetName() *string

func (Account) GetProjectCount

func (a Account) GetProjectCount() *int

func (Account) GetUsername

func (a Account) GetUsername() *string

type Board

type Board struct {
	ID          string `json:"id" yaml:"id"`
	Name        string `json:"name" yaml:"name"`
	AccessKey   string `json:"accessKey" yaml:"accessKey"`
	AccessToken string `json:"accessToken" yaml:"accessToken"`
	Public      bool   `json:"public" yaml:"public"`
}

Board represents a Trello board

func (Board) GetSanitized

func (b Board) GetSanitized() Board

GetSanitized returns a sanitised copy of the Board instance

type Boards

type Boards []Board

Boards is a slice of Board instances

func (Boards) GetSanitized

func (b Boards) GetSanitized() Boards

GetSanitized returns a sanitised copy of the Boards instance

type Config

type Config struct {
	// Boards is the list of boards to monitor
	Boards Boards `json:"boards" yaml:"boards"`
	// AccessKey to be used for all listed boards if their own access token is not defined.
	// This value can be retrieved from the page at https://trello.com/app-key
	AccessKey string `json:"accessKey" yaml:"accessKey"`
	// AccessToken to be used for all listed boards if their own access token is not defined.
	// This value can be retrieved by clicking on Token on the page at https://trello.com/app-key
	AccessToken string `json:"accessToken" yaml:"accessToken"`
}

Config defines the structure of the configuration for the Trello integration

func (Config) GetSanitized

func (c Config) GetSanitized() Config

GetSanitized returns a sanitised copy of the Config instance

func (*Config) MergeWith

func (c *Config) MergeWith(o Config)

Jump to

Keyboard shortcuts

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