Documentation
¶
Index ¶
- Constants
- Variables
- func NewLinearConnectionTester(deps domain.IntegrationDeps) domain.IntegrationConnectionTester
- func NewLinearIntegrationCreator(deps domain.IntegrationDeps) domain.IntegrationCreator
- type CreateIssueParams
- type DeleteIssueParams
- type GetIssueParams
- type GetManyIssuesParams
- type LinearConnectionTester
- type LinearIntegration
- func (i *LinearIntegration) CreateIssue(ctx context.Context, params domain.IntegrationInput, item domain.Item) (domain.Item, error)
- func (i *LinearIntegration) DeleteIssue(ctx context.Context, params domain.IntegrationInput, item domain.Item) (domain.Item, error)
- func (i *LinearIntegration) Execute(ctx context.Context, params domain.IntegrationInput) (domain.IntegrationOutput, error)
- func (i *LinearIntegration) GetIssue(ctx context.Context, params domain.IntegrationInput, item domain.Item) (domain.Item, error)
- func (i *LinearIntegration) GetManyIssues(ctx context.Context, params domain.IntegrationInput, item domain.Item) ([]domain.Item, error)
- func (i *LinearIntegration) Peek(ctx context.Context, params domain.PeekParams) (domain.PeekResult, error)
- func (i *LinearIntegration) PeekLabels(ctx context.Context, p domain.PeekParams) (domain.PeekResult, error)
- func (i *LinearIntegration) PeekPriorities(ctx context.Context, p domain.PeekParams) (domain.PeekResult, error)
- func (i *LinearIntegration) PeekResourceTypes(ctx context.Context, p domain.PeekParams) (domain.PeekResult, error)
- func (i *LinearIntegration) PeekTeams(ctx context.Context, p domain.PeekParams) (domain.PeekResult, error)
- func (i *LinearIntegration) PeekUsers(ctx context.Context, p domain.PeekParams) (domain.PeekResult, error)
- func (i *LinearIntegration) PeekWorkflowStates(ctx context.Context, p domain.PeekParams) (domain.PeekResult, error)
- func (i *LinearIntegration) UpdateIssue(ctx context.Context, params domain.IntegrationInput, item domain.Item) (domain.Item, error)
- type LinearIntegrationCreator
- type LinearIntegrationDependencies
- type PeekWorkflowStatesParams
- type UpdateIssueParams
Constants ¶
View Source
const ( IntegrationActionType_CreateIssue domain.IntegrationActionType = "create_issue" IntegrationActionType_DeleteIssue domain.IntegrationActionType = "delete_issue" IntegrationActionType_GetIssue domain.IntegrationActionType = "get_issue" IntegrationActionType_GetManyIssues domain.IntegrationActionType = "get_many_issues" IntegrationActionType_UpdateIssue domain.IntegrationActionType = "update_issue" )
View Source
const ( LinearIntegrationPeekable_Teams domain.IntegrationPeekableType = "teams" LinearIntegrationPeekable_Priorities domain.IntegrationPeekableType = "priorities" LinearIntegrationPeekable_Users domain.IntegrationPeekableType = "users" LinearIntegrationPeekable_Labels domain.IntegrationPeekableType = "labels" LinearIntegrationPeekable_States domain.IntegrationPeekableType = "states" )
View Source
const (
IntegrationTriggerEventType_OnNewLinearEvent domain.IntegrationTriggerEventType = "on_new_linear_event"
)
View Source
const (
LinearIntegrationPeekable_ResourceTypes domain.IntegrationPeekableType = "linear_resource_types"
)
Variables ¶
View Source
var (
Schema = schema
)
Functions ¶
func NewLinearConnectionTester ¶
func NewLinearConnectionTester(deps domain.IntegrationDeps) domain.IntegrationConnectionTester
func NewLinearIntegrationCreator ¶
func NewLinearIntegrationCreator(deps domain.IntegrationDeps) domain.IntegrationCreator
Types ¶
type CreateIssueParams ¶
type DeleteIssueParams ¶
type DeleteIssueParams struct {
IssueID string `json:"issue_id"`
}
type GetIssueParams ¶
type GetIssueParams struct {
IssueID string `json:"issue_id"`
}
type GetManyIssuesParams ¶
type LinearConnectionTester ¶
type LinearConnectionTester struct {
// contains filtered or unexported fields
}
func (*LinearConnectionTester) TestConnection ¶
func (c *LinearConnectionTester) TestConnection(ctx context.Context, params domain.TestConnectionParams) (bool, error)
type LinearIntegration ¶
type LinearIntegration struct {
// contains filtered or unexported fields
}
func NewLinearIntegration ¶
func NewLinearIntegration(ctx context.Context, deps LinearIntegrationDependencies) (*LinearIntegration, error)
func (*LinearIntegration) CreateIssue ¶
func (i *LinearIntegration) CreateIssue(ctx context.Context, params domain.IntegrationInput, item domain.Item) (domain.Item, error)
func (*LinearIntegration) DeleteIssue ¶
func (i *LinearIntegration) DeleteIssue(ctx context.Context, params domain.IntegrationInput, item domain.Item) (domain.Item, error)
func (*LinearIntegration) Execute ¶
func (i *LinearIntegration) Execute(ctx context.Context, params domain.IntegrationInput) (domain.IntegrationOutput, error)
func (*LinearIntegration) GetIssue ¶
func (i *LinearIntegration) GetIssue(ctx context.Context, params domain.IntegrationInput, item domain.Item) (domain.Item, error)
func (*LinearIntegration) GetManyIssues ¶
func (i *LinearIntegration) GetManyIssues(ctx context.Context, params domain.IntegrationInput, item domain.Item) ([]domain.Item, error)
func (*LinearIntegration) Peek ¶
func (i *LinearIntegration) Peek(ctx context.Context, params domain.PeekParams) (domain.PeekResult, error)
func (*LinearIntegration) PeekLabels ¶
func (i *LinearIntegration) PeekLabels(ctx context.Context, p domain.PeekParams) (domain.PeekResult, error)
func (*LinearIntegration) PeekPriorities ¶
func (i *LinearIntegration) PeekPriorities(ctx context.Context, p domain.PeekParams) (domain.PeekResult, error)
func (*LinearIntegration) PeekResourceTypes ¶
func (i *LinearIntegration) PeekResourceTypes(ctx context.Context, p domain.PeekParams) (domain.PeekResult, error)
func (*LinearIntegration) PeekTeams ¶
func (i *LinearIntegration) PeekTeams(ctx context.Context, p domain.PeekParams) (domain.PeekResult, error)
func (*LinearIntegration) PeekUsers ¶
func (i *LinearIntegration) PeekUsers(ctx context.Context, p domain.PeekParams) (domain.PeekResult, error)
func (*LinearIntegration) PeekWorkflowStates ¶
func (i *LinearIntegration) PeekWorkflowStates(ctx context.Context, p domain.PeekParams) (domain.PeekResult, error)
func (*LinearIntegration) UpdateIssue ¶
func (i *LinearIntegration) UpdateIssue(ctx context.Context, params domain.IntegrationInput, item domain.Item) (domain.Item, error)
type LinearIntegrationCreator ¶
type LinearIntegrationCreator struct {
// contains filtered or unexported fields
}
func (*LinearIntegrationCreator) CreateIntegration ¶
func (c *LinearIntegrationCreator) CreateIntegration(ctx context.Context, p domain.CreateIntegrationParams) (domain.IntegrationExecutor, error)
type LinearIntegrationDependencies ¶
type LinearIntegrationDependencies struct {
ParameterBinder domain.IntegrationParameterBinder
CredentialID string
CredentialGetter domain.CredentialGetter[domain.OAuthAccountSensitiveData]
}
type PeekWorkflowStatesParams ¶
type PeekWorkflowStatesParams struct {
TeamID string `json:"team_id"`
}
type UpdateIssueParams ¶
type UpdateIssueParams struct {
IssueID string `json:"issue_id"`
Title string `json:"title"`
Description string `json:"description"`
TeamID string `json:"team_id"`
PriorityID string `json:"priority_id"`
AssigneeID string `json:"assignee_id"`
LabelIDs []string `json:"label_ids"`
StateID string `json:"state_id"`
}
Click to show internal directories.
Click to hide internal directories.