emb3d

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: 10 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 Mitigation

type Mitigation struct {
	ID      string `json:"id"`
	Name    string `json:"name"`
	Text    string `json:"text"`
	Level   string `json:"level"`
	Threats []struct {
		ID   string `json:"id"`
		Text string `json:"text"`
	} `json:"threats"`
}

type Option

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

func WithBaseURL

func WithBaseURL(url string) Option

func WithDir

func WithDir(dir string) Option

func WithRetry

func WithRetry(retry int) Option

type Property

type Property struct {
	ID           string   `json:"id"`
	Text         string   `json:"text"`
	Category     string   `json:"category"`
	IsparentProp bool     `json:"isparentProp"`
	SubProps     []string `json:"subProps"`
	ParentProp   string   `json:"parentProp"`
	Threats      []struct {
		ID   string `json:"id"`
		Text string `json:"text"`
	} `json:"threats"`
}

type Threat

type Threat struct {
	ID         string `json:"id"`
	Text       string `json:"text"`
	Category   string `json:"category"`
	Properties []struct {
		ID string `json:"id"`
	} `json:"properties"`
	Mitigations []struct {
		ID string `json:"id"`
	} `json:"mitigations"`
}