api

package
v0.0.0-...-8056938 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallOptions

type CallOptions struct {
	Date         string
	PageSize     uint64 //will be used as the default 'limit' value
	Offset       uint64
	OutputFields []string
	WithHistory  bool
	Output       interface{}
}

type FilteredCallOptions

type FilteredCallOptions struct {
	CallOptions
	CveIDPattern   string
	DaysSinceAdded uint
	ScoreGt        float64
	ScoreLt        float64
	PercentileGt   float64
	PercentileLt   float64
	OrderRecords   epss.OrderType
}

type Instance

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

func New

func New(options ...Options) *Instance

func (*Instance) GenericListCall

func (ref *Instance) GenericListCall(
	ctx context.Context,
	format string,
	options ...FilteredCallOptions) (string, error)

func (*Instance) GenericLookupCall

func (ref *Instance) GenericLookupCall(
	ctx context.Context,
	cveIDs []string,
	format string,
	options ...CallOptions) (string, error)

func (*Instance) ListCall

func (ref *Instance) ListCall(
	ctx context.Context,
	options ...FilteredCallOptions) (epss.ReplyType, error)

func (*Instance) LookupCall

func (ref *Instance) LookupCall(
	ctx context.Context,
	cveIDs []string,
	options ...CallOptions) (epss.ReplyType, error)

type Options

type Options struct {
	APITimeout int
	Pretty     bool
	PageSize   uint64 //will be used as the default 'limit' value
	Debug      bool
	Logger     *log.Entry
}

Jump to

Keyboard shortcuts

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