issues

package
v0.0.0-...-01553de Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package issues provides primitives to interact with the openapi HTTP API.

Code generated by github.com/deepmap/oapi-codegen version v1.12.4 DO NOT EDIT.

Index

Constants

View Source
const (
	APITokenScopes   = "APIToken.Scopes"
	BearerAuthScopes = "BearerAuth.Scopes"
)

Variables

This section is empty.

Functions

func NewFetchIssuesPerPurlRequest

func NewFetchIssuesPerPurlRequest(server string, orgId OrgId, purl PackageUrl, params *FetchIssuesPerPurlParams) (*http.Request, error)

NewFetchIssuesPerPurlRequest generates requests for FetchIssuesPerPurl

func NewListIssuesForManyPurlsRequest

func NewListIssuesForManyPurlsRequest(server string, orgId OrgId, params *ListIssuesForManyPurlsParams, body ListIssuesForManyPurlsJSONRequestBody) (*http.Request, error)

NewListIssuesForManyPurlsRequest calls the generic ListIssuesForManyPurls builder with application/vnd.api+json body

func NewListIssuesForManyPurlsRequestWithBody

func NewListIssuesForManyPurlsRequestWithBody(server string, orgId OrgId, params *ListIssuesForManyPurlsParams, contentType string, body io.Reader) (*http.Request, error)

NewListIssuesForManyPurlsRequestWithBody generates requests for ListIssuesForManyPurls with any type of body

Types

type ActualVersion

type ActualVersion = string

ActualVersion Resolved API version

type BulkPackageUrlsRequestBody

type BulkPackageUrlsRequestBody struct {
	Data struct {
		Attributes struct {
			// Purls An array of Package URLs (purl). Supported purl types are apk, cargo, cocoapods, composer, deb, gem, generic, hex, maven, npm, nuget, pypi, rpm, and swift. A version for the package is also required.
			Purls []string `json:"purls"`
		} `json:"attributes"`
		Type *Types `json:"type,omitempty"`
	} `json:"data"`
}

BulkPackageUrlsRequestBody defines model for BulkPackageUrlsRequestBody.

type Client

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A list of callbacks for modifying requests which are generated before sending over
	// the network.
	RequestEditors []RequestEditorFn
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) FetchIssuesPerPurl

func (c *Client) FetchIssuesPerPurl(ctx context.Context, orgId OrgId, purl PackageUrl, params *FetchIssuesPerPurlParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListIssuesForManyPurls

func (c *Client) ListIssuesForManyPurls(ctx context.Context, orgId OrgId, params *ListIssuesForManyPurlsParams, body ListIssuesForManyPurlsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListIssuesForManyPurlsWithBody

func (c *Client) ListIssuesForManyPurlsWithBody(ctx context.Context, orgId OrgId, params *ListIssuesForManyPurlsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// ListIssuesForManyPurls request with any body
	ListIssuesForManyPurlsWithBody(ctx context.Context, orgId OrgId, params *ListIssuesForManyPurlsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	ListIssuesForManyPurls(ctx context.Context, orgId OrgId, params *ListIssuesForManyPurlsParams, body ListIssuesForManyPurlsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// FetchIssuesPerPurl request
	FetchIssuesPerPurl(ctx context.Context, orgId OrgId, purl PackageUrl, params *FetchIssuesPerPurlParams, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) FetchIssuesPerPurlWithResponse

func (c *ClientWithResponses) FetchIssuesPerPurlWithResponse(ctx context.Context, orgId OrgId, purl PackageUrl, params *FetchIssuesPerPurlParams, reqEditors ...RequestEditorFn) (*FetchIssuesPerPurlResponse, error)

FetchIssuesPerPurlWithResponse request returning *FetchIssuesPerPurlResponse

func (*ClientWithResponses) ListIssuesForManyPurlsWithBodyWithResponse

func (c *ClientWithResponses) ListIssuesForManyPurlsWithBodyWithResponse(ctx context.Context, orgId OrgId, params *ListIssuesForManyPurlsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ListIssuesForManyPurlsResponse, error)

ListIssuesForManyPurlsWithBodyWithResponse request with arbitrary body returning *ListIssuesForManyPurlsResponse

func (*ClientWithResponses) ListIssuesForManyPurlsWithResponse

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// ListIssuesForManyPurls request with any body
	ListIssuesForManyPurlsWithBodyWithResponse(ctx context.Context, orgId OrgId, params *ListIssuesForManyPurlsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ListIssuesForManyPurlsResponse, error)

	ListIssuesForManyPurlsWithResponse(ctx context.Context, orgId OrgId, params *ListIssuesForManyPurlsParams, body ListIssuesForManyPurlsJSONRequestBody, reqEditors ...RequestEditorFn) (*ListIssuesForManyPurlsResponse, error)

	// FetchIssuesPerPurl request
	FetchIssuesPerPurlWithResponse(ctx context.Context, orgId OrgId, purl PackageUrl, params *FetchIssuesPerPurlParams, reqEditors ...RequestEditorFn) (*FetchIssuesPerPurlResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type CommonIssueModel

type CommonIssueModel struct {
	Attributes *struct {
		Coordinates *[]Coordinate `json:"coordinates,omitempty"`
		CreatedAt   *time.Time    `json:"created_at,omitempty"`

		// Description A description of the issue in Markdown format
		Description *string `json:"description,omitempty"`

		// EffectiveSeverityLevel The type from enumeration of the issue’s severity level. This is usually set from the issue’s producer, but can be overridden by policies.
		EffectiveSeverityLevel *CommonIssueModelAttributesEffectiveSeverityLevel `json:"effective_severity_level,omitempty"`

		// Key The Khulnasoft vulnerability ID.
		Key      *string    `json:"key,omitempty"`
		Problems *[]Problem `json:"problems,omitempty"`

		// Severities The severity level of the vulnerability: ‘low’, ‘medium’, ‘high’ or ‘critical’.
		Severities *[]Severity `json:"severities,omitempty"`
		Slots      *Slots      `json:"slots,omitempty"`

		// Title A human-readable title for this issue.
		Title *string `json:"title,omitempty"`

		// Type The issue type
		Type *string `json:"type,omitempty"`

		// UpdatedAt When the vulnerability information was last modified.
		UpdatedAt *time.Time `json:"updated_at,omitempty"`
	} `json:"attributes,omitempty"`

	// Id The Khulnasoft ID of the vulnerability.
	Id *string `json:"id,omitempty"`

	// Type The type of the REST resource. Always ‘issue’.
	Type *string `json:"type,omitempty"`
}

CommonIssueModel defines model for CommonIssueModel.

type CommonIssueModelAttributesEffectiveSeverityLevel

type CommonIssueModelAttributesEffectiveSeverityLevel string

CommonIssueModelAttributesEffectiveSeverityLevel The type from enumeration of the issue’s severity level. This is usually set from the issue’s producer, but can be overridden by policies.

const (
	CommonIssueModelAttributesEffectiveSeverityLevelCritical CommonIssueModelAttributesEffectiveSeverityLevel = "critical"
	CommonIssueModelAttributesEffectiveSeverityLevelHigh     CommonIssueModelAttributesEffectiveSeverityLevel = "high"
	CommonIssueModelAttributesEffectiveSeverityLevelInfo     CommonIssueModelAttributesEffectiveSeverityLevel = "info"
	CommonIssueModelAttributesEffectiveSeverityLevelLow      CommonIssueModelAttributesEffectiveSeverityLevel = "low"
	CommonIssueModelAttributesEffectiveSeverityLevelMedium   CommonIssueModelAttributesEffectiveSeverityLevel = "medium"
)

Defines values for CommonIssueModelAttributesEffectiveSeverityLevel.

type CommonIssueModelVTwo

type CommonIssueModelVTwo struct {
	Attributes *struct {
		Coordinates *[]CoordinateVTwo `json:"coordinates,omitempty"`
		CreatedAt   *time.Time        `json:"created_at,omitempty"`

		// Description A description of the issue in Markdown format
		Description *string `json:"description,omitempty"`

		// EffectiveSeverityLevel The type from enumeration of the issue’s severity level. This is usually set from the issue’s producer, but can be overridden by policies.
		EffectiveSeverityLevel *CommonIssueModelVTwoAttributesEffectiveSeverityLevel `json:"effective_severity_level,omitempty"`
		Problems               *[]Problem                                            `json:"problems,omitempty"`

		// Severities The severity level of the vulnerability: ‘low’, ‘medium’, ‘high’ or ‘critical’.
		Severities *[]Severity `json:"severities,omitempty"`
		Slots      *Slots      `json:"slots,omitempty"`

		// Title A human-readable title for this issue.
		Title *string `json:"title,omitempty"`

		// Type The issue type
		Type *string `json:"type,omitempty"`

		// UpdatedAt When the vulnerability information was last modified.
		UpdatedAt *time.Time `json:"updated_at,omitempty"`
	} `json:"attributes,omitempty"`

	// Id The Khulnasoft ID of the vulnerability.
	Id *string `json:"id,omitempty"`

	// Type The type of the REST resource. Always ‘issue’.
	Type *string `json:"type,omitempty"`
}

CommonIssueModelVTwo defines model for CommonIssueModelVTwo.

type CommonIssueModelVTwoAttributesEffectiveSeverityLevel

type CommonIssueModelVTwoAttributesEffectiveSeverityLevel string

CommonIssueModelVTwoAttributesEffectiveSeverityLevel The type from enumeration of the issue’s severity level. This is usually set from the issue’s producer, but can be overridden by policies.

const (
	CommonIssueModelVTwoAttributesEffectiveSeverityLevelCritical CommonIssueModelVTwoAttributesEffectiveSeverityLevel = "critical"
	CommonIssueModelVTwoAttributesEffectiveSeverityLevelHigh     CommonIssueModelVTwoAttributesEffectiveSeverityLevel = "high"
	CommonIssueModelVTwoAttributesEffectiveSeverityLevelInfo     CommonIssueModelVTwoAttributesEffectiveSeverityLevel = "info"
	CommonIssueModelVTwoAttributesEffectiveSeverityLevelLow      CommonIssueModelVTwoAttributesEffectiveSeverityLevel = "low"
	CommonIssueModelVTwoAttributesEffectiveSeverityLevelMedium   CommonIssueModelVTwoAttributesEffectiveSeverityLevel = "medium"
)

Defines values for CommonIssueModelVTwoAttributesEffectiveSeverityLevel.

type Coordinate

type Coordinate struct {
	Remedies *[]Remedy `json:"remedies,omitempty"`

	// Representation The affected versions of this vulnerability.
	Representation *[]string `json:"representation,omitempty"`
}

Coordinate defines model for Coordinate.

type CoordinateVTwo

type CoordinateVTwo struct {
	Remedies *[]Remedy `json:"remedies,omitempty"`

	// Representations The affected versions of this vulnerability.
	Representations []CoordinateVTwo_Representations_Item `json:"representations"`
}

CoordinateVTwo defines model for CoordinateVTwo.

type CoordinateVTwo_Representations_Item

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

CoordinateVTwo_Representations_Item defines model for CoordinateVTwo.representations.Item.

func (CoordinateVTwo_Representations_Item) AsPackageRepresentation

func (t CoordinateVTwo_Representations_Item) AsPackageRepresentation() (PackageRepresentation, error)

AsPackageRepresentation returns the union data inside the CoordinateVTwo_Representations_Item as a PackageRepresentation

func (CoordinateVTwo_Representations_Item) AsResourcePathRepresentation

func (t CoordinateVTwo_Representations_Item) AsResourcePathRepresentation() (ResourcePathRepresentation, error)

AsResourcePathRepresentation returns the union data inside the CoordinateVTwo_Representations_Item as a ResourcePathRepresentation

func (*CoordinateVTwo_Representations_Item) FromPackageRepresentation

func (t *CoordinateVTwo_Representations_Item) FromPackageRepresentation(v PackageRepresentation) error

FromPackageRepresentation overwrites any union data inside the CoordinateVTwo_Representations_Item as the provided PackageRepresentation

func (*CoordinateVTwo_Representations_Item) FromResourcePathRepresentation

func (t *CoordinateVTwo_Representations_Item) FromResourcePathRepresentation(v ResourcePathRepresentation) error

FromResourcePathRepresentation overwrites any union data inside the CoordinateVTwo_Representations_Item as the provided ResourcePathRepresentation

func (CoordinateVTwo_Representations_Item) MarshalJSON

func (t CoordinateVTwo_Representations_Item) MarshalJSON() ([]byte, error)

func (*CoordinateVTwo_Representations_Item) MergePackageRepresentation

func (t *CoordinateVTwo_Representations_Item) MergePackageRepresentation(v PackageRepresentation) error

MergePackageRepresentation performs a merge with any union data inside the CoordinateVTwo_Representations_Item, using the provided PackageRepresentation

func (*CoordinateVTwo_Representations_Item) MergeResourcePathRepresentation

func (t *CoordinateVTwo_Representations_Item) MergeResourcePathRepresentation(v ResourcePathRepresentation) error

MergeResourcePathRepresentation performs a merge with any union data inside the CoordinateVTwo_Representations_Item, using the provided ResourcePathRepresentation

func (*CoordinateVTwo_Representations_Item) UnmarshalJSON

func (t *CoordinateVTwo_Representations_Item) UnmarshalJSON(b []byte) error

type Error

type Error struct {
	// Code An application-specific error code, expressed as a string value.
	Code *string `json:"code,omitempty"`

	// Detail A human-readable explanation specific to this occurrence of the problem.
	Detail string `json:"detail"`

	// Id A unique identifier for this particular occurrence of the problem.
	Id *openapi_types.UUID `json:"id,omitempty"`

	// Links A link that leads to further details about this particular occurrance of the problem.
	Links  *ErrorLink              `json:"links,omitempty"`
	Meta   *map[string]interface{} `json:"meta,omitempty"`
	Source *struct {
		// Parameter A string indicating which URI query parameter caused the error.
		Parameter *string `json:"parameter,omitempty"`

		// Pointer A JSON Pointer [RFC6901] to the associated entity in the request document.
		Pointer *string `json:"pointer,omitempty"`
	} `json:"source,omitempty"`

	// Status The HTTP status code applicable to this problem, expressed as a string value.
	Status string `json:"status"`

	// Title A short, human-readable summary of the problem that SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.
	Title *string `json:"title,omitempty"`
}

Error defines model for Error.

type ErrorDocument

type ErrorDocument struct {
	Errors  []Error `json:"errors"`
	Jsonapi JsonApi `json:"jsonapi"`
}

ErrorDocument defines model for ErrorDocument.

type ErrorLink struct {
	About *LinkProperty `json:"about,omitempty"`
}

ErrorLink A link that leads to further details about this particular occurrance of the problem.

type FetchIssuesPerPurlParams

type FetchIssuesPerPurlParams struct {
	// Version The requested version of the endpoint to process the request
	Version Version `form:"version" json:"version"`

	// Offset Specify the number of results to skip before returning results. Must be greater than or equal to 0. Default is 0.
	Offset *float32 `form:"offset,omitempty" json:"offset,omitempty"`

	// Limit Specify the number of results to return. Must be greater than 0 and less than 1000. Default is 1000.
	Limit *float32 `form:"limit,omitempty" json:"limit,omitempty"`
}

FetchIssuesPerPurlParams defines parameters for FetchIssuesPerPurl.

type FetchIssuesPerPurlResponse

type FetchIssuesPerPurlResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseFetchIssuesPerPurlResponse

func ParseFetchIssuesPerPurlResponse(rsp *http.Response) (*FetchIssuesPerPurlResponse, error)

ParseFetchIssuesPerPurlResponse parses an HTTP response from a FetchIssuesPerPurlWithResponse call

func (FetchIssuesPerPurlResponse) Status

Status returns HTTPResponse.Status

func (FetchIssuesPerPurlResponse) StatusCode

func (r FetchIssuesPerPurlResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type IssuesMeta

type IssuesMeta struct {
	Package *PackageMeta `json:"package,omitempty"`
}

IssuesMeta defines model for IssuesMeta.

type IssuesResponse

type IssuesResponse struct {
	Data    *[]CommonIssueModel `json:"data,omitempty"`
	Jsonapi *JsonApi            `json:"jsonapi,omitempty"`
	Links   *PaginatedLinks     `json:"links,omitempty"`
	Meta    *IssuesMeta         `json:"meta,omitempty"`
}

IssuesResponse defines model for IssuesResponse.

type IssuesWithPurlsResponse

type IssuesWithPurlsResponse struct {
	Data    *[]CommonIssueModelVTwo `json:"data,omitempty"`
	Jsonapi *JsonApi                `json:"jsonapi,omitempty"`
	Links   *PaginatedLinks         `json:"links,omitempty"`
}

IssuesWithPurlsResponse defines model for IssuesWithPurlsResponse.

type JsonApi

type JsonApi struct {
	// Version Version of the JSON API specification this server supports.
	Version string `json:"version"`
}

JsonApi defines model for JsonApi.

type LinkProperty

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

LinkProperty defines model for LinkProperty.

func (LinkProperty) AsLinkProperty0

func (t LinkProperty) AsLinkProperty0() (LinkProperty0, error)

AsLinkProperty0 returns the union data inside the LinkProperty as a LinkProperty0

func (LinkProperty) AsLinkProperty1

func (t LinkProperty) AsLinkProperty1() (LinkProperty1, error)

AsLinkProperty1 returns the union data inside the LinkProperty as a LinkProperty1

func (*LinkProperty) FromLinkProperty0

func (t *LinkProperty) FromLinkProperty0(v LinkProperty0) error

FromLinkProperty0 overwrites any union data inside the LinkProperty as the provided LinkProperty0

func (*LinkProperty) FromLinkProperty1

func (t *LinkProperty) FromLinkProperty1(v LinkProperty1) error

FromLinkProperty1 overwrites any union data inside the LinkProperty as the provided LinkProperty1

func (LinkProperty) MarshalJSON

func (t LinkProperty) MarshalJSON() ([]byte, error)

func (*LinkProperty) MergeLinkProperty0

func (t *LinkProperty) MergeLinkProperty0(v LinkProperty0) error

MergeLinkProperty0 performs a merge with any union data inside the LinkProperty, using the provided LinkProperty0

func (*LinkProperty) MergeLinkProperty1

func (t *LinkProperty) MergeLinkProperty1(v LinkProperty1) error

MergeLinkProperty1 performs a merge with any union data inside the LinkProperty, using the provided LinkProperty1

func (*LinkProperty) UnmarshalJSON

func (t *LinkProperty) UnmarshalJSON(b []byte) error

type LinkProperty0

type LinkProperty0 = string

LinkProperty0 A string containing the link’s URL.

type LinkProperty1

type LinkProperty1 struct {
	// Href A string containing the link’s URL.
	Href string `json:"href"`

	// Meta Free-form object that may contain non-standard information.
	Meta *Meta `json:"meta,omitempty"`
}

LinkProperty1 defines model for .

type ListIssuesForManyPurlsJSONRequestBody

type ListIssuesForManyPurlsJSONRequestBody = BulkPackageUrlsRequestBody

ListIssuesForManyPurlsJSONRequestBody defines body for ListIssuesForManyPurls for application/vnd.api+json ContentType.

type ListIssuesForManyPurlsParams

type ListIssuesForManyPurlsParams struct {
	// Version The requested version of the endpoint to process the request
	Version Version `form:"version" json:"version"`
}

ListIssuesForManyPurlsParams defines parameters for ListIssuesForManyPurls.

type ListIssuesForManyPurlsResponse

type ListIssuesForManyPurlsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseListIssuesForManyPurlsResponse

func ParseListIssuesForManyPurlsResponse(rsp *http.Response) (*ListIssuesForManyPurlsResponse, error)

ParseListIssuesForManyPurlsResponse parses an HTTP response from a ListIssuesForManyPurlsWithResponse call

func (ListIssuesForManyPurlsResponse) Status

Status returns HTTPResponse.Status

func (ListIssuesForManyPurlsResponse) StatusCode

func (r ListIssuesForManyPurlsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Meta

type Meta map[string]interface{}

Meta Free-form object that may contain non-standard information.

type OrgId

type OrgId = openapi_types.UUID

OrgId defines model for OrgId.

type PackageMeta

type PackageMeta struct {
	// Name The package’s name
	Name *string `json:"name,omitempty"`

	// Namespace A name prefix, such as a maven group id or docker image owner
	Namespace *string `json:"namespace,omitempty"`

	// Type The package type or protocol
	Type *string `json:"type,omitempty"`

	// Url The purl of the package
	Url *string `json:"url,omitempty"`

	// Version The version of the package
	Version *string `json:"version,omitempty"`
}

PackageMeta defines model for PackageMeta.

type PackageRepresentation

type PackageRepresentation struct {
	Package *PackageMeta `json:"package,omitempty"`
}

PackageRepresentation defines model for PackageRepresentation.

type PackageUrl

type PackageUrl = string

PackageUrl defines model for PackageUrl.

type PaginatedLinks struct {
	First *LinkProperty `json:"first,omitempty"`
	Last  *LinkProperty `json:"last,omitempty"`
	Next  *LinkProperty `json:"next,omitempty"`
	Prev  *LinkProperty `json:"prev,omitempty"`
	Self  *LinkProperty `json:"self,omitempty"`
}

PaginatedLinks defines model for PaginatedLinks.

type Problem

type Problem struct {
	// DisclosedAt When this problem was disclosed to the public.
	DisclosedAt *time.Time `json:"disclosed_at,omitempty"`

	// DiscoveredAt When this problem was first discovered.
	DiscoveredAt *time.Time `json:"discovered_at,omitempty"`
	Id           string     `json:"id"`
	Source       string     `json:"source"`

	// UpdatedAt When this problem was last updated.
	UpdatedAt *time.Time `json:"updated_at,omitempty"`

	// Url An optional URL for this problem.
	Url *string `json:"url,omitempty"`
}

Problem defines model for Problem.

type QueryVersion

type QueryVersion = string

QueryVersion Requested API version

type Remedy

type Remedy struct {
	// Description A markdown-formatted optional description of this remedy.
	Description *string `json:"description,omitempty"`
	Details     *struct {
		// UpgradePackage A minimum version to upgrade to in order to remedy the issue.
		UpgradePackage *string `json:"upgrade_package,omitempty"`
	} `json:"details,omitempty"`

	// Type The type of the remedy. Always ‘indeterminate’.
	Type *string `json:"type,omitempty"`
}

Remedy defines model for Remedy.

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type ResourcePath

type ResourcePath = string

ResourcePath defines model for ResourcePath.

type ResourcePathRepresentation

type ResourcePathRepresentation struct {
	ResourcePath ResourcePath `json:"resource_path"`
}

ResourcePathRepresentation An object that contains an opaque identifying string.

type Severity

type Severity struct {
	Level *string `json:"level,omitempty"`

	// Score The CVSSv3 value of the vulnerability.
	Score *float32 `json:"score"`

	// Source The source of this severity. The value must be the id of a referenced problem or class, in which case that problem or class is the source of this issue. If source is omitted, this severity is sourced internally in the Khulnasoft application.
	Source *string `json:"source,omitempty"`

	// Vector The CVSSv3 value of the vulnerability.
	Vector *string `json:"vector"`
}

Severity defines model for Severity.

type Slots

type Slots struct {
	// DisclosureTime The time at which this vulnerability was disclosed.
	DisclosureTime *time.Time `json:"disclosure_time,omitempty"`

	// Exploit The exploit maturity. Value of ‘No Data’, ‘Not Defined’, ‘Unproven’, ‘Proof of Concept’, ‘Functional’ or ‘High’.
	Exploit *string `json:"exploit,omitempty"`

	// PublicationTime The time at which this vulnerability was published.
	PublicationTime *string `json:"publication_time,omitempty"`
	References      *[]struct {
		// Title Descriptor for an external reference to the issue
		Title *string `json:"title,omitempty"`

		// Url URL for an external reference to the issue
		Url *string `json:"url,omitempty"`
	} `json:"references,omitempty"`
}

Slots defines model for Slots.

type Types

type Types = string

Types defines model for Types.

type Version

type Version = QueryVersion

Version Requested API version

Jump to

Keyboard shortcuts

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