coun7er

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: 9 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 Item

type Item struct {
	ID            string        `json:"id"`
	Name          string        `json:"name"`
	Subtype       *string       `json:"subtype"`
	URL           interface{}   `json:"url"`
	Content       string        `json:"content"`
	Version       string        `json:"version"`
	Created       string        `json:"created"`
	Modified      string        `json:"modified"`
	Contributors  []interface{} `json:"contributors"`
	Technologies  []interface{} `json:"technologies"`
	Platforms     []interface{} `json:"platforms"`
	Revoked       interface{}   `json:"revoked"`
	Deprecated    interface{}   `json:"deprecated"`
	IDsBeforeThis []interface{} `json:"ids_before_this"`
	IDsAfterThis  []interface{} `json:"ids_after_this"`
	IsBaseline    bool          `json:"is_baseline"`
	RelatedIDs    []string      `json:"related_ids"`
	Automatable   string        `json:"automatable"`
	References    []struct {
		Description string `json:"description"`
		SourceName  string `json:"source_name"`
		URL         string `json:"url"`
	} `json:"references"`
	Techniques []struct {
		TechID  string      `json:"tech_id"`
		Content interface{} `json:"content"`
		Details interface{} `json:"details"`
	} `json:"techniques"`
}

type Option

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

func WithDataURL

func WithDataURL(url string) Option

func WithDir

func WithDir(dir string) Option

func WithRetry

func WithRetry(retry int) Option

type Template

type Template struct {
	ID       string      `json:"id"`
	Name     string      `json:"name"`
	Featured bool        `json:"featured"`
	IconSrc  interface{} `json:"iconSrc"`
	Link     *struct {
		Text string `json:"text"`
		URL  string `json:"url"`
	} `json:"link"`
	Description string `json:"description"`
	TechToItems map[string]struct {
		Confidence string `json:"confidence"`
		Items      []struct {
			ID      string `json:"id"`
			Version string `json:"version"`
		} `json:"items"`
	} `json:"tech_to_items"`
	IgnoredItems []interface{} `json:"ignored_items"`
}