connector

package
v0.0.25 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const RoleResourceTypeID = "role"

RoleResourceTypeID is exported because main.go uses it with cli.ConnectorOpts.WillSyncResourceType to decide whether role grants should be emitted from the user syncer.

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, baseURL string, syncRoles bool) (*Linear, error)

New returns the Linear connector. syncRoles reports whether the role resource type will be synced under the current configuration (derived from cli.ConnectorOpts.WillSyncResourceType in main.go); when false, the user syncer skips emitting role grants.

func (*Linear) BulkCreateTickets added in v0.0.10

func (*Linear) BulkGetTickets added in v0.0.10

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) Metadata

func (ln *Linear) Metadata(ctx context.Context) (*v2.ConnectorMetadata, error)

Metadata returns metadata about the connector.

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.

Jump to

Keyboard shortcuts

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