connector

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ResourcesPageSize = 50

Functions

This section is empty.

Types

type ServiceNow

type ServiceNow struct {
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, auth string, deployment string, ticketSchemaFilters map[string]string) (*ServiceNow, error)

New returns the ServiceNow connector.

func (*ServiceNow) CreateTicket added in v0.0.4

func (s *ServiceNow) CreateTicket(ctx context.Context, ticket *v2.Ticket, schema *v2.TicketSchema) (*v2.Ticket, annotations.Annotations, error)

func (*ServiceNow) GetTicket added in v0.0.4

func (s *ServiceNow) GetTicket(ctx context.Context, ticketId string) (*v2.Ticket, annotations.Annotations, error)

func (*ServiceNow) GetTicketSchema added in v0.0.4

func (s *ServiceNow) GetTicketSchema(ctx context.Context, schemaID string) (*v2.TicketSchema, annotations.Annotations, error)

func (*ServiceNow) ListTicketSchemas added in v0.0.4

func (s *ServiceNow) ListTicketSchemas(ctx context.Context, pt *pagination.Token) ([]*v2.TicketSchema, string, annotations.Annotations, error)

func (*ServiceNow) Metadata

func (s *ServiceNow) Metadata(ctx context.Context) (*v2.ConnectorMetadata, error)

func (*ServiceNow) ResourceSyncers

func (s *ServiceNow) ResourceSyncers(ctx context.Context) []connectorbuilder.ResourceSyncer

func (*ServiceNow) Validate

func (s *ServiceNow) Validate(ctx context.Context) (annotations.Annotations, error)

Validates that we have credentials and an endpoint. Does not validate that the credentials have all of the correct permissions.

Jump to

Keyboard shortcuts

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