Documentation
¶
Index ¶
- type Linear
- func (ln *Linear) BulkCreateTickets(ctx context.Context, request *v2.TicketsServiceBulkCreateTicketsRequest) (*v2.TicketsServiceBulkCreateTicketsResponse, error)
- func (ln *Linear) BulkGetTickets(ctx context.Context, request *v2.TicketsServiceBulkGetTicketsRequest) (*v2.TicketsServiceBulkGetTicketsResponse, error)
- func (ln *Linear) CreateTicket(ctx context.Context, ticket *v2.Ticket, schema *v2.TicketSchema) (*v2.Ticket, annotations.Annotations, error)
- func (ln *Linear) GetTicket(ctx context.Context, ticketId string) (*v2.Ticket, annotations.Annotations, error)
- func (ln *Linear) GetTicketSchema(ctx context.Context, schemaID string) (*v2.TicketSchema, annotations.Annotations, error)
- func (ln *Linear) ListTicketSchemas(ctx context.Context, p *pagination.Token) ([]*v2.TicketSchema, string, annotations.Annotations, error)
- func (ln *Linear) Metadata(ctx context.Context) (*v2.ConnectorMetadata, error)
- func (ln *Linear) ResourceSyncers(ctx context.Context) []connectorbuilder.ResourceSyncer
- func (ln *Linear) Validate(ctx context.Context) (annotations.Annotations, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Linear ¶
type Linear struct {
// contains filtered or unexported fields
}
func New ¶
func New(ctx context.Context, apiKey string, skipProjects bool, ticketSchemaTeamIDs []string) (*Linear, error)
New returns the Linear connector.
func (*Linear) BulkCreateTickets ¶ added in v0.0.10
func (ln *Linear) BulkCreateTickets(ctx context.Context, request *v2.TicketsServiceBulkCreateTicketsRequest) (*v2.TicketsServiceBulkCreateTicketsResponse, error)
func (*Linear) BulkGetTickets ¶ added in v0.0.10
func (ln *Linear) BulkGetTickets(ctx context.Context, request *v2.TicketsServiceBulkGetTicketsRequest) (*v2.TicketsServiceBulkGetTicketsResponse, error)
func (*Linear) CreateTicket ¶ added in v0.0.10
func (ln *Linear) CreateTicket(ctx context.Context, ticket *v2.Ticket, schema *v2.TicketSchema) (*v2.Ticket, annotations.Annotations, error)
func (*Linear) GetTicket ¶ added in v0.0.10
func (ln *Linear) GetTicket(ctx context.Context, ticketId string) (*v2.Ticket, annotations.Annotations, error)
func (*Linear) GetTicketSchema ¶ added in v0.0.10
func (ln *Linear) GetTicketSchema(ctx context.Context, schemaID string) (*v2.TicketSchema, annotations.Annotations, error)
func (*Linear) ListTicketSchemas ¶ added in v0.0.10
func (ln *Linear) ListTicketSchemas(ctx context.Context, p *pagination.Token) ([]*v2.TicketSchema, string, annotations.Annotations, error)
ListTicketSchemas lists all the ticket schemas for Linear Issues.
Linear Issues currently vary only by Workflow State per Team.
func (*Linear) ResourceSyncers ¶
func (ln *Linear) ResourceSyncers(ctx context.Context) []connectorbuilder.ResourceSyncer
func (*Linear) Validate ¶
func (ln *Linear) Validate(ctx context.Context) (annotations.Annotations, error)
Validate hits the Linear API to assure that the API key is valid.
Click to show internal directories.
Click to hide internal directories.