Documentation ¶
Index ¶
- Constants
- func Init(bc base.Component) *component
- type AsanaTask
- type AuthConfig
- type Client
- func (c *Client) CreateGoal(ctx context.Context, props *structpb.Struct) (*structpb.Struct, error)
- func (c *Client) CreatePortfolio(ctx context.Context, props *structpb.Struct) (*structpb.Struct, error)
- func (c *Client) CreateProject(ctx context.Context, props *structpb.Struct) (*structpb.Struct, error)
- func (c *Client) CreateTask(ctx context.Context, props *structpb.Struct) (*structpb.Struct, error)
- func (c *Client) DeleteGoal(ctx context.Context, props *structpb.Struct) (*structpb.Struct, error)
- func (c *Client) DeletePortfolio(ctx context.Context, props *structpb.Struct) (*structpb.Struct, error)
- func (c *Client) DeleteProject(ctx context.Context, props *structpb.Struct) (*structpb.Struct, error)
- func (c *Client) DeleteTask(ctx context.Context, props *structpb.Struct) (*structpb.Struct, error)
- func (c *Client) DuplicateProject(ctx context.Context, props *structpb.Struct) (*structpb.Struct, error)
- func (c *Client) DuplicateTask(ctx context.Context, props *structpb.Struct) (*structpb.Struct, error)
- func (c *Client) GetGoal(ctx context.Context, props *structpb.Struct) (*structpb.Struct, error)
- func (c *Client) GetJob(ctx context.Context, props *structpb.Struct) (*structpb.Struct, error)
- func (c *Client) GetPortfolio(ctx context.Context, props *structpb.Struct) (*structpb.Struct, error)
- func (c *Client) GetProject(ctx context.Context, props *structpb.Struct) (*structpb.Struct, error)
- func (c *Client) GetTask(ctx context.Context, props *structpb.Struct) (*structpb.Struct, error)
- func (c *Client) GoalRelatedTask(ctx context.Context, props *structpb.Struct) (*structpb.Struct, error)
- func (c *Client) PortfolioRelatedTask(ctx context.Context, props *structpb.Struct) (*structpb.Struct, error)
- func (c *Client) ProjectRelatedTask(ctx context.Context, props *structpb.Struct) (*structpb.Struct, error)
- func (c *Client) TaskEditFollower(ctx context.Context, props *structpb.Struct) (*structpb.Struct, error)
- func (c *Client) TaskEditProject(ctx context.Context, props *structpb.Struct) (*structpb.Struct, error)
- func (c *Client) TaskEditTag(ctx context.Context, props *structpb.Struct) (*structpb.Struct, error)
- func (c *Client) TaskRelatedTask(ctx context.Context, props *structpb.Struct) (*structpb.Struct, error)
- func (c *Client) TaskSetParent(ctx context.Context, props *structpb.Struct) (*structpb.Struct, error)
- func (c *Client) UpdateGoal(ctx context.Context, props *structpb.Struct) (*structpb.Struct, error)
- func (c *Client) UpdatePortfolio(ctx context.Context, props *structpb.Struct) (*structpb.Struct, error)
- func (c *Client) UpdateProject(ctx context.Context, props *structpb.Struct) (*structpb.Struct, error)
- func (c *Client) UpdateTask(ctx context.Context, props *structpb.Struct) (*structpb.Struct, error)
- type CreateGoalInput
- type CreateGoalReq
- type CreatePortfolioInput
- type CreatePortfolioReq
- type CreateProjectInput
- type CreateProjectReq
- type CreateTaskInput
- type CreateTaskReq
- type DeleteGoalInput
- type DeletePortfolioInput
- type DeleteProjectInput
- type DeleteTaskInput
- type DuplicateProjectInput
- type DuplicateProjectReq
- type DuplicateTaskInput
- type DuplicateTaskReq
- type GetGoalInput
- type GetJobInput
- type GetPortfolioInput
- type GetProjectInput
- type GetTaskInput
- type Goal
- type GoalTaskOutput
- type GoalTaskResp
- type Job
- type JobTaskOutput
- type JobTaskResp
- type Like
- type Portfolio
- type PortfolioTaskOutput
- type PortfolioTaskResp
- type Project
- type ProjectTaskOutput
- type ProjectTaskResp
- type RawLike
- type ScheduleDates
- type SimpleProject
- type Task
- type TaskEditFollowerInput
- type TaskEditFollowerReq
- type TaskEditProjectInput
- type TaskEditProjectReq
- type TaskEditTagInput
- type TaskEditTagReq
- type TaskParent
- type TaskSetParentInput
- type TaskSetParentReq
- type TaskTaskOutput
- type TaskTaskResp
- type UpdateGoalInput
- type UpdateGoalReq
- type UpdatePortfolioInput
- type UpdatePortfolioReq
- type UpdateProjectInput
- type UpdateProjectReq
- type UpdateTaskInput
- type UpdateTaskReq
- type User
Constants ¶
View Source
const ( TaskAsanaGoal = "TASK_CRUD_GOAL" TaskAsanaTask = "TASK_CRUD_TASK" TaskAsanaPortfolio = "TASK_CRUD_PORTFOLIO" TaskAsanaProject = "TASK_CRUD_PROJECT" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthConfig ¶
type Client ¶
type Client struct { *httpclient.Client APIBaseURL string `json:"api-base-url"` // contains filtered or unexported fields }
func (*Client) CreateGoal ¶
func (*Client) CreatePortfolio ¶
func (*Client) CreateProject ¶
func (*Client) CreateTask ¶
func (*Client) DeleteGoal ¶
func (*Client) DeletePortfolio ¶
func (*Client) DeleteProject ¶
func (*Client) DeleteTask ¶
func (*Client) DuplicateProject ¶
func (*Client) DuplicateTask ¶
func (*Client) GetPortfolio ¶
func (*Client) GetProject ¶
func (*Client) GoalRelatedTask ¶
func (*Client) PortfolioRelatedTask ¶
func (*Client) ProjectRelatedTask ¶
func (*Client) TaskEditFollower ¶
func (*Client) TaskEditProject ¶
func (*Client) TaskEditTag ¶
func (*Client) TaskRelatedTask ¶
func (*Client) TaskSetParent ¶
func (*Client) UpdateGoal ¶
func (*Client) UpdatePortfolio ¶
func (*Client) UpdateProject ¶
type CreateGoalInput ¶
type CreateGoalInput struct { Action string `json:"action"` Name string `json:"name"` Notes string `json:"notes"` DueOn string `json:"due-on"` StartOn string `json:"start-on"` Liked bool `json:"liked"` Workspace string `json:"workspace"` TimePeriod string `json:"time-period"` Owner string `json:"owner"` }
type CreateGoalReq ¶
type CreatePortfolioInput ¶
type CreatePortfolioReq ¶
type CreateProjectInput ¶
type CreateProjectInput struct { Action string `json:"action"` Name string `json:"name"` Notes string `json:"notes"` DueOn string `json:"due-on"` StartOn string `json:"start-on"` Color string `json:"color"` PrivacySetting string `json:"privacy-setting"` Workspace string `json:"workspace"` Team string `json:"team"` }
type CreateProjectReq ¶
type CreateProjectReq struct { Name string `json:"name,omitempty"` Notes string `json:"notes,omitempty"` DueOn string `json:"due_on,omitempty"` StartOn string `json:"start_on,omitempty"` Color string `json:"color,omitempty"` PrivacySetting string `json:"privacy_setting,omitempty"` Workspace string `json:"workspace"` Team string `json:"team"` }
type CreateTaskInput ¶
type CreateTaskInput struct { Action string `json:"action"` Name string `json:"name"` Notes string `json:"notes"` ResourceSubtype string `json:"resource-subtype"` ApprovalStatus string `json:"approval-status"` Completed bool `json:"completed"` Liked bool `json:"liked"` Assignee string `json:"assignee"` Parent string `json:"parent"` StartAt string `json:"start-at"` DueAt string `json:"due-at"` Workspace string `json:"workspace"` }
type CreateTaskReq ¶
type CreateTaskReq struct { Name string `json:"name"` Notes string `json:"notes,omitempty"` ResourceSubtype string `json:"resource_subtype,omitempty"` ApprovalStatus string `json:"approval_status,omitempty"` Completed bool `json:"completed"` Liked bool `json:"liked"` Assignee string `json:"assignee,omitempty"` Parent string `json:"parent,omitempty"` StartAt string `json:"start_at,omitempty"` DueAt string `json:"due_at,omitempty"` Workspace string `json:"workspace"` }
type DeleteGoalInput ¶
type DeletePortfolioInput ¶
type DeleteProjectInput ¶
type DeleteTaskInput ¶
type DuplicateProjectInput ¶
type DuplicateProjectReq ¶
type DuplicateProjectReq struct { Name string `json:"name"` Team string `json:"team,omitempty"` Include string `json:"include"` ScheduleDates ScheduleDates `json:"schedule_dates"` }
type DuplicateTaskInput ¶
type DuplicateTaskReq ¶
type GetGoalInput ¶
type GetJobInput ¶
type GetPortfolioInput ¶
type GetProjectInput ¶
type GetTaskInput ¶
type Goal ¶
type Goal struct { GID string `json:"gid" api:"gid"` Name string `json:"name" api:"name"` Owner User `json:"owner" api:"owner.name"` Notes string `json:"notes" api:"notes"` HTMLNotes string `json:"html-notes" api:"html_notes"` DueOn string `json:"due-on" api:"due_on"` StartOn string `json:"start-on" api:"start_on"` Liked bool `json:"liked" api:"liked"` Likes []Like `json:"likes" api:"likes.user.name"` }
type GoalTaskOutput ¶
type GoalTaskOutput struct {
Goal
}
type GoalTaskResp ¶
type GoalTaskResp struct { Data struct { GID string `json:"gid"` Name string `json:"name"` Owner User `json:"owner"` Notes string `json:"notes"` HTMLNotes string `json:"html_notes"` DueOn string `json:"due_on"` StartOn string `json:"start_on"` Liked bool `json:"liked"` Likes []RawLike `json:"likes"` } `json:"data"` }
type JobTaskOutput ¶
type JobTaskOutput struct {
Job
}
func JobResp2Output ¶
func JobResp2Output(resp *JobTaskResp) JobTaskOutput
type JobTaskResp ¶
type Portfolio ¶
type Portfolio struct { GID string `json:"gid" api:"gid"` Name string `json:"name" api:"name"` Owner User `json:"owner" api:"owner.name"` DueOn string `json:"due-on" api:"due_on"` StartOn string `json:"start-on" api:"start_on"` Color string `json:"color" api:"color"` Public bool `json:"public" api:"public"` CreatedBy User `json:"created-by" api:"created_by.name"` CurrentStatus []map[string]interface{} `` /* 199-byte string literal not displayed */ CustomFields []map[string]interface{} `` /* 392-byte string literal not displayed */ CustomFieldSettings []map[string]interface{} `` /* 620-byte string literal not displayed */ }
type PortfolioTaskOutput ¶
type PortfolioTaskOutput struct {
Portfolio
}
type PortfolioTaskResp ¶
type PortfolioTaskResp struct { Data struct { GID string `json:"gid"` Name string `json:"name"` Owner User `json:"owner"` DueOn string `json:"due_on"` StartOn string `json:"start_on"` Color string `json:"color"` Public bool `json:"public"` CreatedBy User `json:"created_by"` CurrentStatus []map[string]interface{} `json:"current_status"` CustomFields []map[string]interface{} `json:"custom_fields"` CustomFieldSettings []map[string]interface{} `json:"custom_field_settings"` } `json:"data"` }
type Project ¶
type Project struct { GID string `json:"gid" api:"gid"` Name string `json:"name" api:"name"` Owner User `json:"owner" api:"owner.name"` Notes string `json:"notes" api:"notes"` HTMLNotes string `json:"html-notes" api:"html_notes"` DueOn string `json:"due-on" api:"due_on"` StartOn string `json:"start-on" api:"start_on"` Completed bool `json:"completed" api:"completed"` Color string `json:"color" api:"color"` PrivacySetting string `json:"privacy-setting" api:"privacy_setting"` Archived bool `json:"archived" api:"archived"` CompletedBy User `json:"completed-by" api:"completed_by.name"` CurrentStatus []map[string]interface{} `` /* 199-byte string literal not displayed */ CustomFields []map[string]interface{} `` /* 392-byte string literal not displayed */ CustomFieldSettings []map[string]interface{} `` /* 620-byte string literal not displayed */ ModifiedAt string `json:"modified-at" api:"modified_at"` }
type ProjectTaskOutput ¶
type ProjectTaskOutput struct {
Project
}
type ProjectTaskResp ¶
type ProjectTaskResp struct { Data struct { GID string `json:"gid"` Name string `json:"name"` Owner User `json:"owner"` Notes string `json:"notes"` HTMLNotes string `json:"html_notes"` DueOn string `json:"due_on"` StartOn string `json:"start_on"` Completed bool `json:"completed"` Color string `json:"color"` PrivacySetting string `json:"privacy_setting"` Archived bool `json:"archived"` CompletedBy User `json:"completed_by"` CurrentStatus []map[string]interface{} `json:"current_status"` CustomFields []map[string]interface{} `json:"custom_fields"` CustomFieldSettings []map[string]interface{} `json:"custom_field_settings"` ModifiedAt string `json:"modified_at"` } `json:"data"` }
type ScheduleDates ¶
type SimpleProject ¶
type Task ¶
type Task struct { GID string `json:"gid" api:"gid"` Name string `json:"name" api:"name"` Notes string `json:"notes" api:"notes"` HTMLNotes string `json:"html-notes" api:"html_notes"` Projects []SimpleProject `json:"projects" api:"projects.name"` DueOn string `json:"due-on" api:"due_on"` StartOn string `json:"start-on" api:"start_on"` Liked bool `json:"liked" api:"liked"` Likes []Like `json:"likes" api:"likes.user.name"` ApprovalStatus string `json:"approval-status" api:"approval_status"` ResourceSubtype string `json:"resource-subtype" api:"resource_subtype"` Completed bool `json:"completed" api:"completed"` Assignee string `json:"assignee" api:"assignee.name"` Parent string `json:"parent" api:"parent.name"` }
type TaskEditFollowerInput ¶
type TaskEditFollowerReq ¶
type TaskEditFollowerReq struct {
Followers []string `json:"followers"`
}
type TaskEditProjectInput ¶
type TaskEditProjectReq ¶
type TaskEditProjectReq struct {
ProjectID string `json:"project"`
}
type TaskEditTagInput ¶
type TaskEditTagReq ¶
type TaskEditTagReq struct {
Tag string `json:"tag"`
}
type TaskParent ¶
type TaskSetParentInput ¶
type TaskSetParentReq ¶
type TaskSetParentReq struct {
Parent string `json:"parent"`
}
type TaskTaskOutput ¶
type TaskTaskOutput struct {
Task
}
type TaskTaskResp ¶
type TaskTaskResp struct { Data struct { GID string `json:"gid"` Name string `json:"name"` Notes string `json:"notes"` HTMLNotes string `json:"html_notes"` Projects []SimpleProject `json:"projects"` DueOn string `json:"due_on"` StartOn string `json:"start_on"` Liked bool `json:"liked"` Likes []RawLike `json:"likes"` ApprovalStatus string `json:"approval_status" api:"approval_status"` ResourceSubtype string `json:"resource_subtype"` Completed bool `json:"completed" api:"completed"` Assignee User `json:"assignee" api:"assignee"` Parent TaskParent `json:"parent" api:"parent"` } `json:"data"` }
type UpdateGoalInput ¶
type UpdateGoalReq ¶
type UpdatePortfolioInput ¶
type UpdatePortfolioReq ¶
type UpdateProjectInput ¶
type UpdateProjectInput struct { Action string `json:"action"` ID string `json:"project-gid"` Name string `json:"name"` Notes string `json:"notes"` DueOn string `json:"due-on"` StartOn string `json:"start-on"` Color string `json:"color"` PrivacySetting string `json:"privacy-setting"` Archived bool `json:"archived"` }
type UpdateProjectReq ¶
type UpdateProjectReq struct { Name string `json:"name,omitempty"` Notes string `json:"notes,omitempty"` DueOn string `json:"due_on,omitempty"` StartOn string `json:"start_on,omitempty"` Color string `json:"color,omitempty"` PrivacySetting string `json:"privacy_setting,omitempty"` Archived bool `json:"archived"` }
type UpdateTaskInput ¶
type UpdateTaskInput struct { Action string `json:"action"` ID string `json:"task-gid"` Name string `json:"name"` ResourceSubtype string `json:"resource-subtype"` ApprovalStatus string `json:"approval-status"` Completed bool `json:"completed"` Liked bool `json:"liked"` Notes string `json:"notes"` Assignee string `json:"assignee"` Parent string `json:"parent"` }
type UpdateTaskReq ¶
type UpdateTaskReq struct { Name string `json:"name,omitempty"` ResourceSubtype string `json:"resource_subtype,omitempty"` ApprovalStatus string `json:"approval_status,omitempty"` Completed bool `json:"completed"` Liked bool `json:"liked"` Notes string `json:"notes,omitempty"` Assignee string `json:"assignee,omitempty"` Parent string `json:"parent,omitempty"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.