github.com/wolfi-dev/wolfictl@v0.16.11/pkg/advisory/secdb/types.go (about)

     1  package secdb
     2  
     3  type Database struct {
     4  	APKURL    string         `json:"apkurl"`
     5  	Archs     []string       `json:"archs"`
     6  	Repo      string         `json:"reponame"`
     7  	URLPrefix string         `json:"urlprefix"`
     8  	Packages  []PackageEntry `json:"packages"`
     9  }
    10  
    11  type PackageEntry struct {
    12  	Pkg Package `json:"pkg"`
    13  }
    14  
    15  type Package struct {
    16  	Name     string   `json:"name"`
    17  	Secfixes Secfixes `json:"secfixes"`
    18  }
    19  
    20  type Secfixes map[string][]string
    21  
    22  const NAK = "0"