Documentation ¶
Index ¶
- Constants
- type Board
- type BoardStructure
- type CellLimit
- type CellLimits
- type Children
- type Childrens
- type Client
- func (c *Client) CreateTask(t *Task) (*Task, error)
- func (c *Client) DeleteTask(boardid, taskid string) error
- func (c *Client) EditTask(BoardID, TaskID string) *editTask
- func (c *Client) GetAllTasks(boardid string) *getAllTasks
- func (c *Client) GetBoardStructure(boardid string) (*BoardStructure, error)
- func (c *Client) GetBoards() (*ProjectsAndBoards, error)
- func (c *Client) GetCellLimits(boardid string) (*CellLimits, error)
- func (c *Client) GetChildren(cardid string) (*Childrens, error)
- func (c *Client) GetColumns(boardid string) (*Columns, error)
- func (c *Client) GetCurrentStructure(boardid string) (*CurrentStructure, error)
- func (c *Client) GetLinks(taskid string) (*Links, error)
- func (c *Client) GetTask(boardid, taskid string) (*Task, error)
- func (c *Client) MoveTask(TaskID string) *moveTask
- type Column
- type Columns
- type CurrentStructure
- type Link
- type Links
- type ProjectsAndBoards
- type Task
- type Tasks
Constants ¶
const ( CardWorkflow = 0 InitiativesWorkflow = 1 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoardStructure ¶
type BoardStructure struct { Columns []struct { Position string `json:"position"` Lcname string `json:"lcname"` Section string `json:"section"` Path string `json:"path"` Description string `json:"description"` Lcid string `json:"lcid"` Flowtype string `json:"flowtype"` Tasksperrow int `json:"tasksperrow,omitempty"` Children []struct { Position string `json:"position"` Lcname string `json:"lcname"` Section string `json:"section"` Path string `json:"path"` Description string `json:"description"` Lcid string `json:"lcid"` Flowtype string `json:"flowtype"` Tasksperrow int `json:"tasksperrow"` } `json:"children,omitempty"` } `json:"columns"` Lanes []struct { Position string `json:"position"` Lcname string `json:"lcname"` Path string `json:"path"` Description string `json:"description"` Lcid string `json:"lcid"` Flowtype string `json:"flowtype"` Color string `json:"color"` } `json:"lanes"` }
BoardStructure represents the structure of all boards
func (*BoardStructure) GetColumnNameByColumnId ¶
func (bs *BoardStructure) GetColumnNameByColumnId(id int) string
type CellLimits ¶
type CellLimits []CellLimit
type Client ¶
type Client struct { APIURL string APIV2URL string APIKey string // contains filtered or unexported fields }
Client is the Kanbanize Client
func (*Client) CreateTask ¶
CreateTask creates a Task in Kanbanize
func (*Client) DeleteTask ¶
DeleteTask deletes the Task with taskid on the board boardid
func (*Client) GetAllTasks ¶
func (*Client) GetBoardStructure ¶
func (c *Client) GetBoardStructure(boardid string) (*BoardStructure, error)
GetBoardStructure returns the structure of all boards
func (*Client) GetBoards ¶
func (c *Client) GetBoards() (*ProjectsAndBoards, error)
GetBoards returns a struct containing all Projects and Boards
func (*Client) GetCellLimits ¶
func (c *Client) GetCellLimits(boardid string) (*CellLimits, error)
GetCellLimits returns the cell limits data of the board
func (*Client) GetChildren ¶
GetCellLimits returns the cell limits data of the board
func (*Client) GetColumns ¶
GetColumns returns the columns data of the board
func (*Client) GetCurrentStructure ¶
func (c *Client) GetCurrentStructure(boardid string) (*CurrentStructure, error)
GetCurrentStructure returns the cell limits data of the board
type Column ¶
type Column struct { ColumnID int `json:"column_id"` Workflow int `json:"workflow"` Section int `json:"section"` ParentColumnID interface{} `json:"parent_column_id"` Position int `json:"position"` Name string `json:"name"` Description string `json:"description"` Color string `json:"color"` Limit int `json:"limit"` CardsPerRow int `json:"cards_per_row"` FlowType int `json:"flow_type"` }
type CurrentStructure ¶
type CurrentStructure struct { Version string `json:"version"` ProjectID int `json:"project_id"` BoardID int `json:"board_id"` Name string `json:"name"` IsArchived int `json:"is_archived"` CardsWorkflow struct { Exists int `json:"exists"` IsEnabled int `json:"is_enabled"` Name string `json:"name"` TopLanes []int `json:"top_lanes"` BottomLanes []int `json:"bottom_lanes"` TopColumns []int `json:"top_columns"` BottomColumns []int `json:"bottom_columns"` } `json:"cards_workflow"` InitiativesWorkflow struct { Exists int `json:"exists"` IsEnabled int `json:"is_enabled"` IsCollapsible int `json:"is_collapsible"` Name string `json:"name"` TopLanes []int `json:"top_lanes"` BottomLanes []int `json:"bottom_lanes"` TopColumns []int `json:"top_columns"` BottomColumns []int `json:"bottom_columns"` } `json:"initiatives_workflow"` Lanes map[string]struct { Workflow int `json:"workflow"` ParentLaneID int `json:"parent_lane_id"` Name string `json:"name"` Description string `json:"description"` Color string `json:"color"` } Columns map[string]struct { Workflow int `json:"workflow"` Section int `json:"section"` ParentColumnID int `json:"parent_column_id"` Name string `json:"name"` Description string `json:"description"` Color string `json:"color"` Limit int `json:"limit"` CardsPerRow int `json:"cards_per_row"` FlowType int `json:"flow_type"` } `json:"columns"` CellLimits map[string]map[string]int `json:"cell_limits"` SizeType int `json:"size_type"` AllowExceeding int `json:"allow_exceeding"` AutoarchiveCardsAfter int `json:"autoarchive_cards_after"` Revision int `json:"revision"` }
type Link ¶
type Link struct { Taskid string `json:"taskid"` Parent interface{} `json:"parent"` Children []string `json:"children"` Mirrors []string `json:"mirrors"` Relatives []string `json:"relatives"` Successors []string `json:"successors"` Predecessors []string `json:"predecessors"` }
Link represents all the relations of a single task
type ProjectsAndBoards ¶
type ProjectsAndBoards struct { Projects []struct { Name string `json:"name"` ID string `json:"id"` Boards []Board `json:"boards"` } `json:"projects"` }
ProjectsAndBoards represents all boards and projects
type Task ¶
type Task struct { Taskid string `json:"taskid,omitempty"` Boardid string `json:"boardid,omitempty"` Title string `json:"title,omitempty"` Description string `json:"description,omitempty"` Type string `json:"type,omitempty"` Assignee string `json:"assignee,omitempty"` Subtasks string `json:"subtasks,omitempty"` Subtaskscomplete string `json:"subtaskscomplete,omitempty"` Color string `json:"color,omitempty"` Priority string `json:"priority,omitempty"` Size string `json:"size,omitempty"` Deadline string `json:"deadline,omitempty"` Deadlineoriginalformat string `json:"deadlineoriginalformat,omitempty"` Extlink string `json:"extlink,omitempty"` Tags string `json:"tags,omitempty"` Leadtime int `json:"leadtime,omitempty"` Blocked string `json:"blocked,omitempty"` Blockedreason string `json:"blockedreason,omitempty"` Columnname string `json:"columnname,omitempty"` Column string `json:"column,omitempty"` Lanename string `json:"lanename,omitempty"` Subtaskdetails []interface{} `json:"subtaskdetails,omitempty"` Columnid string `json:"columnid,omitempty"` Laneid string `json:"laneid,omitempty"` Position string `json:"position,omitempty"` Workflow int `json:"workflow,omitempty"` Createdat string `json:"createdat,omitempty"` Attachments struct { } `json:"attachments,omitempty"` Columnpath string `json:"columnpath,omitempty"` Loggedtime int `json:"loggedtime,omitempty"` Customfields []interface{} `json:"customfields,omitempty"` Updatedat string `json:"updatedat,omitempty"` }
Task represents the Kanbanize Task