models

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventType

type EventType string
const (
	EventTypeImageUpdated EventType = "imageUpdated"
)

type Graph

type Graph struct {
	Edges map[string]map[string]bool `json:"edges"`
	Nodes map[string]GraphNode       `json:"nodes"`
}

type GraphNode

type GraphNode struct {
	Domain string `json:"domain"`
	Type   string `json:"type"`
	Name   string `json:"name"`
}

type Image

type Image struct {
	Reference           string               `json:"reference"`
	Created             *time.Time           `json:"created,omitempty"`
	LatestReference     string               `json:"latestReference,omitempty"`
	LatestCreated       *time.Time           `json:"latestCreated,omitempty"`
	VersionDiffSortable uint64               `json:"-"`
	Description         string               `json:"description,omitempty"`
	Tags                []string             `json:"tags"`
	Links               []ImageLink          `json:"links"`
	Vulnerabilities     []ImageVulnerability `json:"vulnerabilities"`
	LastModified        time.Time            `json:"lastModified"`
	Image               string               `json:"image,omitempty"`
}

type ImageDescription

type ImageDescription struct {
	HTML     string `json:"html,omitempty"`
	Markdown string `json:"markdown,omitempty"`
}

type ImageEvent

type ImageEvent struct {
	Reference string    `json:"reference"`
	Type      EventType `json:"type"`
}
type ImageLink struct {
	Type string `json:"type"`
	URL  string `json:"url"`
}

type ImagePage

type ImagePage struct {
	Images     []Image            `json:"images"`
	Summary    ImagePageSummary   `json:"summary"`
	Pagination PaginationMetadata `json:"pagination"`
}

type ImagePageSummary

type ImagePageSummary struct {
	Images     int `json:"images"`
	Outdated   int `json:"outdated"`
	Vulnerable int `json:"vulnerable"`
	Processing int `json:"processing"`
}

type ImageReleaseNotes

type ImageReleaseNotes struct {
	Title    string    `json:"title"`
	HTML     string    `json:"html,omitempty"`
	Markdown string    `json:"markdown,omitempty"`
	Released time.Time `json:"released,omitempty"`
}

type ImageVulnerability

type ImageVulnerability struct {
	ID          int      `json:"id"`
	Severity    string   `json:"severity"`
	Authority   string   `json:"authority"`
	Description string   `json:"description,omitempty"`
	Links       []string `json:"links"`
}

type PaginationMetadata

type PaginationMetadata struct {
	Total    int    `json:"total"`
	Page     int    `json:"page"`
	Size     int    `json:"size"`
	Next     string `json:"next,omitempty"`
	Previous string `json:"previous,omitempty"`
}

type RawImage

type RawImage struct {
	Reference     string    `json:"reference"`
	Tags          []string  `json:"tags"`
	Graph         Graph     `json:"graph"`
	LastProcessed time.Time `json:"lastProcessed,omitempty"`
}

Jump to

Keyboard shortcuts

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