tasks

package
v0.0.0-...-7d3b672 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const RAW_CARD_TABLE = "trello_cards"
View Source
const RAW_CHECK_ITEM_TABLE = "trello_check_items"
View Source
const RAW_LABEL_TABLE = "trello_labels"
View Source
const RAW_LIST_TABLE = "trello_lists"
View Source
const RAW_MEMBER_TABLE = "trello_members"

Variables

View Source
var CollectCardMeta = plugin.SubTaskMeta{
	Name:             "CollectCard",
	EntryPoint:       CollectCard,
	EnabledByDefault: true,
	Description:      "Collect card data from Trello api",
	DomainTypes:      []string{},
}
View Source
var CollectCheckItemMeta = plugin.SubTaskMeta{
	Name:             "CollectCheckItem",
	EntryPoint:       CollectCheckItem,
	EnabledByDefault: true,
	Description:      "Collect check item data from Trello api",
	DomainTypes:      []string{},
}
View Source
var CollectLabelMeta = plugin.SubTaskMeta{
	Name:             "CollectLabel",
	EntryPoint:       CollectLabel,
	EnabledByDefault: true,
	Description:      "Collect label data from Trello api",
	DomainTypes:      []string{},
}
View Source
var CollectListMeta = plugin.SubTaskMeta{
	Name:             "CollectList",
	EntryPoint:       CollectList,
	EnabledByDefault: true,
	Description:      "Collect list data from Trello api",
	DomainTypes:      []string{},
}
View Source
var CollectMemberMeta = plugin.SubTaskMeta{
	Name:             "CollectMember",
	EntryPoint:       CollectMember,
	EnabledByDefault: true,
	Description:      "Collect member data from Trello api",
	DomainTypes:      []string{},
}
View Source
var ExtractCardMeta = plugin.SubTaskMeta{
	Name:             "ExtractCard",
	EntryPoint:       ExtractCard,
	EnabledByDefault: true,
	Description:      "Extract raw data into tool layer table trello_cards",
}
View Source
var ExtractCheckItemMeta = plugin.SubTaskMeta{
	Name:             "ExtractCheckItem",
	EntryPoint:       ExtractCheckItem,
	EnabledByDefault: true,
	Description:      "Extract raw data into tool layer table trello_check_items",
}
View Source
var ExtractLabelMeta = plugin.SubTaskMeta{
	Name:             "ExtractLabel",
	EntryPoint:       ExtractLabel,
	EnabledByDefault: true,
	Description:      "Extract raw data into tool layer table trello_labels",
}
View Source
var ExtractListMeta = plugin.SubTaskMeta{
	Name:             "ExtractList",
	EntryPoint:       ExtractList,
	EnabledByDefault: true,
	Description:      "Extract raw data into tool layer table trello_lists",
}
View Source
var ExtractMemberMeta = plugin.SubTaskMeta{
	Name:             "ExtractMember",
	EntryPoint:       ExtractMember,
	EnabledByDefault: true,
	Description:      "Extract raw data into tool layer table trello_members",
}

Functions

func CollectCard

func CollectCard(taskCtx plugin.SubTaskContext) errors.Error

func CollectCheckItem

func CollectCheckItem(taskCtx plugin.SubTaskContext) errors.Error

func CollectLabel

func CollectLabel(taskCtx plugin.SubTaskContext) errors.Error

func CollectList

func CollectList(taskCtx plugin.SubTaskContext) errors.Error

func CollectMember

func CollectMember(taskCtx plugin.SubTaskContext) errors.Error

func CreateApiClient

func CreateApiClient(taskCtx plugin.TaskContext, connection *models.TrelloConnection) (*api.ApiAsyncClient, errors.Error)

CreateApiClient creates a new API Client for Trello

func ExtractCard

func ExtractCard(taskCtx plugin.SubTaskContext) errors.Error

func ExtractCheckItem

func ExtractCheckItem(taskCtx plugin.SubTaskContext) errors.Error

func ExtractLabel

func ExtractLabel(taskCtx plugin.SubTaskContext) errors.Error

func ExtractList

func ExtractList(taskCtx plugin.SubTaskContext) errors.Error

func ExtractMember

func ExtractMember(taskCtx plugin.SubTaskContext) errors.Error

Types

type TrelloApiCard

type TrelloApiCard struct {
	ID                    string        `json:"id"`
	Badges                interface{}   `json:"badges"`
	CheckItemStates       interface{}   `json:"checkItemStates"`
	Closed                bool          `json:"closed"`
	DueComplete           bool          `json:"dueComplete"`
	DateLastActivity      time.Time     `json:"dateLastActivity"`
	Desc                  string        `json:"desc"`
	DescData              interface{}   `json:"descData"`
	Due                   interface{}   `json:"due"`
	DueReminder           interface{}   `json:"dueReminder"`
	Email                 interface{}   `json:"email"`
	IDBoard               string        `json:"idBoard"`
	IDChecklists          []string      `json:"idChecklists"`
	IDList                string        `json:"idList"`
	IDMembers             []string      `json:"idMembers"`
	IDMembersVoted        []string      `json:"idMembersVoted"`
	IDShort               int           `json:"idShort"`
	IDAttachmentCover     string        `json:"idAttachmentCover"`
	Labels                []interface{} `json:"labels"`
	IDLabels              []string      `json:"idLabels"`
	ManualCoverAttachment bool          `json:"manualCoverAttachment"`
	Name                  string        `json:"name"`
	Pos                   float64       `json:"pos"`
	ShortLink             string        `json:"shortLink"`
	ShortUrl              string        `json:"shortUrl"`
	Start                 interface{}   `json:"start"`
	Subscribed            bool          `json:"subscribed"`
	Url                   string        `json:"url"`
	Cover                 interface{}   `json:"cover"`
	IsTemplate            bool          `json:"isTemplate"`
	CardRole              interface{}   `json:"cardRole"`
}

type TrelloApiCheckItems

type TrelloApiCheckItems struct {
	ID          string      `json:"id"`
	Name        string      `json:"name"`
	NameData    interface{} `json:"nameData"`
	Pos         float64     `json:"pos"`
	State       string      `json:"state"`
	Due         interface{} `json:"due"`
	DueReminder interface{} `json:"dueReminder"`
	IDMember    string      `json:"idMember"`
	IDChecklist string      `json:"idChecklist"`
}

type TrelloApiChecklist

type TrelloApiChecklist struct {
	ID         string                `json:"id"`
	Name       string                `json:"name"`
	IDBoard    string                `json:"idBoard"`
	IDCard     string                `json:"idCard"`
	Pos        float64               `json:"pos"`
	CheckItems []TrelloApiCheckItems `json:"checkItems"`
}

type TrelloApiLabel

type TrelloApiLabel struct {
	ID      string `json:"id"`
	IDBoard string `json:"idBoard"`
	Name    string `json:"name"`
	Color   string `json:"color"`
}

type TrelloApiList

type TrelloApiList struct {
	ID         string      `json:"id"`
	Name       string      `json:"name"`
	Closed     bool        `json:"closed"`
	IDBoard    string      `json:"idBoard"`
	Pos        float64     `json:"pos"`
	Subscribed bool        `json:"subscribed"`
	SoftLimit  interface{} `json:"softLimit"`
}

type TrelloApiMember

type TrelloApiMember struct {
	ID       string `json:"id"`
	FullName string `json:"fullName"`
	Username string `json:"username"`
}

type TrelloApiParams

type TrelloApiParams models.TrelloApiParams

type TrelloOptions

type TrelloOptions struct {
	ConnectionId  uint64 `json:"connectionId"`
	BoardId       string `json:"boardId"`
	ScopeId       string
	ScopeConfigId uint64
}

type TrelloTaskData

type TrelloTaskData struct {
	Options   *TrelloOptions
	ApiClient *api.ApiAsyncClient
}

Jump to

Keyboard shortcuts

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