clairerror

package
v4.0.0-rc.22 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrBadAffectedManifests

type ErrBadAffectedManifests struct {
	E error
}

ErrBadAffectedManifests indicates an issue where an AffectedManifests could not be marshalled or unmarshalled into JSON.

func (*ErrBadAffectedManifests) Error

func (e *ErrBadAffectedManifests) Error() string

func (*ErrBadAffectedManifests) Unwrap

func (e *ErrBadAffectedManifests) Unwrap() error

type ErrBadIndexReport

type ErrBadIndexReport struct {
	E error
}

ErrBadManifest inidcates a manifest could not be parsed

func (*ErrBadIndexReport) Error

func (e *ErrBadIndexReport) Error() string

func (*ErrBadIndexReport) Unwrap

func (e *ErrBadIndexReport) Unwrap() error

type ErrBadManifest

type ErrBadManifest struct {
	E error
}

ErrBadManifest inidcates a manifest could not be parsed

func (*ErrBadManifest) Error

func (e *ErrBadManifest) Error() string

func (*ErrBadManifest) Unwrap

func (e *ErrBadManifest) Unwrap() error

type ErrBadNotification

type ErrBadNotification struct {
	NotificationID uuid.UUID
	E              error
}

ErrBadNotification indicates a notification was malformed. The wrapped error will contain further details.

func (ErrBadNotification) Error

func (e ErrBadNotification) Error() string

func (ErrBadNotification) Unwrap

func (e ErrBadNotification) Unwrap() error

type ErrBadVulnerabilities

type ErrBadVulnerabilities struct {
	E error
}

ErrBadVulnerabilities indicates an issue where a set of Vulnerabilities could not be marshalled or unmarshalled into JSON.

func (*ErrBadVulnerabilities) Error

func (e *ErrBadVulnerabilities) Error() string

func (*ErrBadVulnerabilities) Unwrap

func (e *ErrBadVulnerabilities) Unwrap() error

type ErrCreated

type ErrCreated struct {
	E error
}

ErrCreated indicates an error occured when retrieving created notification ids.

func (ErrCreated) Error

func (e ErrCreated) Error() string

func (ErrCreated) Unwrap

func (e ErrCreated) Unwrap() error

type ErrDeleteNotification

type ErrDeleteNotification struct {
	NotificationID uuid.UUID
	E              error
}

ErrDeleteNotification indicates an error while deleting notifcations. The wrapped error will contain further details.

func (ErrDeleteNotification) Error

func (e ErrDeleteNotification) Error() string

func (ErrDeleteNotification) Unwrap

func (e ErrDeleteNotification) Unwrap() error

type ErrDeliveryFailed

type ErrDeliveryFailed struct {
	E error
}

ErrDeliveryFailed indicates a failure to deliver a notification.

func (ErrDeliveryFailed) Error

func (e ErrDeliveryFailed) Error() string

func (ErrDeliveryFailed) Unwrap

func (e ErrDeliveryFailed) Unwrap() error

type ErrFailed

type ErrFailed struct {
	E error
}

ErrFailed indicates an error occured when retrieving created notification ids.

func (ErrFailed) Error

func (e ErrFailed) Error() string

func (ErrFailed) Unwrap

func (e ErrFailed) Unwrap() error

type ErrIndexReportNotFound

type ErrIndexReportNotFound struct {
	Hash string
}

ErrIndexReportNotFound indicates a requested IndexReport was not found

func (*ErrIndexReportNotFound) Error

func (e *ErrIndexReportNotFound) Error() string

type ErrIndexReportRetrieval

type ErrIndexReportRetrieval struct {
	E error
}

ErrIndexReportRetrieval indicates an error while attempting to retrieve an IndexReport

func (*ErrIndexReportRetrieval) Error

func (e *ErrIndexReportRetrieval) Error() string

func (*ErrIndexReportRetrieval) Unwrap

func (e *ErrIndexReportRetrieval) Unwrap() error

type ErrIndexStart

type ErrIndexStart struct {
	E error
}

IndexStartErr indicates an index operation failed to start

func (*ErrIndexStart) Error

func (e *ErrIndexStart) Error() string

func (*ErrIndexStart) Unwrap

func (e *ErrIndexStart) Unwrap() error

type ErrKeyNotFound

type ErrKeyNotFound struct {
	ID uuid.UUID
}

func (ErrKeyNotFound) Error

func (e ErrKeyNotFound) Error() string

type ErrMatch

type ErrMatch struct {
	E error
}

ErrMatch indicates an issue with matching a IndexReport to a VulnerabilityReport

func (*ErrMatch) Error

func (e *ErrMatch) Error() string

func (*ErrMatch) Unwrap

func (e *ErrMatch) Unwrap() error

type ErrNoReceipt

type ErrNoReceipt struct {
	NotificationID uuid.UUID
}

ErrNoReceipt is returned when a notification id has no associated Receipt.

func (ErrNoReceipt) Error

func (e ErrNoReceipt) Error() string

type ErrNoUpdateOperation

type ErrNoUpdateOperation struct {
	Updater string
}

ErrNoUpdateOperation inidcates that the queried updater has no update operations associated.

func (ErrNoUpdateOperation) Error

func (e ErrNoUpdateOperation) Error() string

type ErrNotInitialized

type ErrNotInitialized struct {
	Msg string
}

ErrNotInitialized indicates an issue with initialization.

func (ErrNotInitialized) Error

func (e ErrNotInitialized) Error() string

type ErrPutNotifications

type ErrPutNotifications struct {
	NotificationID uuid.UUID
	E              error
}

ErrPutNotifications indicates an issues occured when persisting a slice of computed notifications. The wrapped error will contain further details.

func (ErrPutNotifications) Error

func (e ErrPutNotifications) Error() string

func (ErrPutNotifications) Unwrap

func (e ErrPutNotifications) Unwrap() error

type ErrReceipt

type ErrReceipt struct {
	NotificationID uuid.UUID
	E              error
}

ErrReceipt indicates an error retreiving a receipt for referenced notification id.

func (ErrReceipt) Error

func (e ErrReceipt) Error() string

func (ErrReceipt) Unwrap

func (e ErrReceipt) Unwrap() error

type ErrRequestFail

type ErrRequestFail struct {
	Code   int
	Status string
}

ErrRequestFail indicates an http request failure

func (*ErrRequestFail) Error

func (e *ErrRequestFail) Error() string

Jump to

Keyboard shortcuts

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