tickets

package
v1.2.14 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Copyright 2023 Adevinta

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildQueryFilter

func BuildQueryFilter(filters map[string]string) string

BuildQueryFilter builds the query params string to be added to a request.

func IsHTTPStatusOk

func IsHTTPStatusOk(status int) bool

IsHTTPStatusOk determines if a status code is an OK or not.

func ParseHTTPErr

func ParseHTTPErr(statusCode int, mssg string) error

ParseHTTPErr wraps and transform an HTTP error into a custom error using github.com/adevinta/errors fro that

Types

type Client

type Client interface {
	CreateTicket(ctx context.Context, payload api.FindingTicketCreate) (*api.Ticket, error)
	GetFindingTicket(ctx context.Context, findingID, teamID string) (*api.Ticket, error)
}

Client represents a vulcan tracker client.

func NewClient

func NewClient(httpClient *http.Client, baseURL string, insecureTLS bool) Client

NewClient returns a new tickets client with the given config and httpClient.

Jump to

Keyboard shortcuts

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