notice

package
v0.0.0-...-0bc8de7 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fetch

func Fetch(opts ...Option) error

Types

type Notice

type Notice struct {
	Cves []struct {
		ID         string   `json:"id"`
		NoticesIds []string `json:"notices_ids"`
	} `json:"cves"`
	CvesIds         []string `json:"cves_ids"`
	Description     string   `json:"description"`
	ID              string   `json:"id"`
	Instructions    string   `json:"instructions"`
	IsHidden        bool     `json:"is_hidden"`
	Published       string   `json:"published"`
	References      []string `json:"references"`
	RelatedNotices  []string `json:"related_notices"`
	ReleasePackages map[string][]struct {
		Channel     *string `json:"channel,omitempty"`
		Description *string `json:"description,omitempty"`
		IsSource    bool    `json:"is_source"`
		IsVisible   *bool   `json:"is_visible,omitempty"`
		Name        string  `json:"name"`
		PackageType *string `json:"package_type,omitempty"`
		Pocket      *string `json:"pocket,omitempty"`
		SourceLink  *string `json:"source_link,omitempty"`
		Version     string  `json:"version"`
		VersionLink *string `json:"version_link,omitempty"`
	} `json:"ReleasePackages,omitempty"`
	Releases []struct {
		Codename   string `json:"codename"`
		SupportTag string `json:"support_tag"`
		Version    string `json:"version"`
	} `json:"releases"`
	Summary string `json:"summary"`
	Title   string `json:"title"`
	Type    string `json:"type"`
}

type Option

type Option interface {
	// contains filtered or unexported methods
}

func WithBaseURL

func WithBaseURL(url string) Option

func WithConcurrency

func WithConcurrency(concurrency int) Option

func WithDir

func WithDir(dir string) Option

func WithRetry

func WithRetry(retry int) Option

func WithWait

func WithWait(wait time.Duration) Option