Documentation ¶
Index ¶
- Variables
- type ServiceNow
- func (s *ServiceNow) CreateTicket(ctx context.Context, ticket *v2.Ticket, schema *v2.TicketSchema) (*v2.Ticket, annotations.Annotations, error)
- func (s *ServiceNow) GetTicket(ctx context.Context, ticketId string) (*v2.Ticket, annotations.Annotations, error)
- func (s *ServiceNow) GetTicketSchema(ctx context.Context, schemaID string) (*v2.TicketSchema, annotations.Annotations, error)
- func (s *ServiceNow) ListTicketSchemas(ctx context.Context, pt *pagination.Token) ([]*v2.TicketSchema, string, annotations.Annotations, error)
- func (s *ServiceNow) Metadata(ctx context.Context) (*v2.ConnectorMetadata, error)
- func (s *ServiceNow) ResourceSyncers(ctx context.Context) []connectorbuilder.ResourceSyncer
- func (s *ServiceNow) Validate(ctx context.Context) (annotations.Annotations, error)
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.
Click to show internal directories.
Click to hide internal directories.