client

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(b bool) *bool

func String

func String(s string) *string

Types

type Client

type Client interface {
	ListIssues(ctx context.Context, req *ListIssuesReq) (*ListIssuesRes, error)
}

func New

func New(apiKey string) Client
type Links struct {
	Next *string `json:"next"`
}

type ListIssuesReq

type ListIssuesReq struct {
	GroupID                *string    `url:"-"`
	OrgID                  *string    `url:"-"`
	StartingAfter          *string    `url:"starting_after,omitempty"`
	Limit                  int        `url:"limit,omitempty"`
	ScanItemID             *string    `url:"scan_item.id,omitempty"`
	ScanItemType           *string    `url:"scan_item.type,omitempty"`
	Type                   *string    `url:"type,omitempty"`
	UpdatedBefore          *string    `url:"updated_before,omitempty"`
	UpdatedAfter           *string    `url:"updated_after,omitempty"`
	CreatedBefore          *string    `url:"created_before,omitempty"`
	CreatedAfter           *string    `url:"created_after,omitempty"`
	EffectiveSeverityLevel StringList `url:"effective_severity_level,omitempty"`
	Status                 StringList `url:"status,omitempty"`
	Ignored                *bool      `url:"ignored,omitempty"`
}

type ListIssuesRes

type ListIssuesRes struct {
	Data  []any  `json:"data"`
	Links *Links `json:"links"`
}

type StringList

type StringList []string

func (StringList) EncodeValues

func (list StringList) EncodeValues(key string, v *url.Values) error

Jump to

Keyboard shortcuts

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