kbclient

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(b bool) *bool

func Int

func Int(i int) *int

func String

func String(s string) *string

Types

type Client

type Client interface {
	ListSecurityCases(ctx context.Context, req *ListSecurityCasesReq) (*ListSecurityCasesRes, error)
}

func New

func New(url string, apiKey *string) Client

type ListSecurityCasesReq

type ListSecurityCasesReq struct {
	SpaceID               *string  `url:"-"`
	Assignees             []string `url:"assignees,omitempty"`
	DefaultSearchOperator *string  `url:"defaultSearchOperator,omitempty"`
	From                  *string  `url:"from,omitempty"`
	Owner                 []string `url:"owner,omitempty"`
	Page                  int      `url:"page"`
	PerPage               int      `url:"perPage"`
	Reporters             []string `url:"reporters,omitempty"`
	Search                *string  `url:"search,omitempty"`
	SearchFields          []string `url:"searchFields,omitempty"`
	Severity              *string  `url:"severity,omitempty"`
	SortField             *string  `url:"sortField,omitempty"`
	SortOrder             *string  `url:"sortOrder,omitempty"`
	Status                *string  `url:"status,omitempty"`
	Tags                  []string `url:"tags,omitempty"`
	To                    *string  `url:"to,omitempty"`
}

type ListSecurityCasesRes

type ListSecurityCasesRes struct {
	Page    int   `json:"page"`
	Total   int   `json:"total"`
	PerPage int   `json:"per_page"`
	Cases   []any `json:"cases"`
}

Jump to

Keyboard shortcuts

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