client

package
v0.0.0-...-456a8b7 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2025 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallOptions

type CallOptions struct {
	Date         time.Time
	PageSize     uint64 //will be used as the default 'limit' value
	Offset       uint64
	OutputFields []string
}

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) ListScores

func (ref *Instance) ListScores(
	ctx context.Context,
	options ...FilteredCallOptions) ([]*epss.Score, *epss.Result, error)

func (*Instance) ListScoresWithHistory

func (ref *Instance) ListScoresWithHistory(
	ctx context.Context,
	options ...FilteredCallOptions) ([]*epss.ScoreWithHistory, *epss.ResultWithHistory, error)

func (*Instance) LookupScore

func (ref *Instance) LookupScore(
	ctx context.Context,
	cveID string,
	options ...CallOptions) (*epss.Score, *epss.Result, error)

func (*Instance) LookupScoreWithHistory

func (ref *Instance) LookupScoreWithHistory(
	ctx context.Context,
	cveID string,
	options ...CallOptions) (*epss.ScoreWithHistory, *epss.ResultWithHistory, error)

func (*Instance) LookupScores

func (ref *Instance) LookupScores(
	ctx context.Context,
	cveIDs []string,
	options ...CallOptions) ([]*epss.Score, *epss.Result, error)

func (*Instance) LookupScoresWithHistory

func (ref *Instance) LookupScoresWithHistory(
	ctx context.Context,
	cveIDs []string,
	options ...CallOptions) ([]*epss.ScoreWithHistory, *epss.ResultWithHistory, 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