structures.go 522 Bytes
Newer Older
Kevin Daudt's avatar
Kevin Daudt committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
package main

import (
	"gitlab.alpinelinux.org/alpine/go/pkg/apkbuild"
)

type (
	Package struct {
		Name     string            `json:"name"`
		Secfixes apkbuild.Secfixes `json:"secfixes"`
	}

	Pkg struct {
		Pkg Package `json:"pkg"`
	}

	SecfixDB struct {
		Apkurl        string   `json:"apkurl"`
		Archs         []string `json:"archs"`
		Reponame      string   `json:"reponame"`
		Urlprefix     string   `json:"urlprefix"`
		Distroversion string   `json:"distroversion"`
		Packages      []Pkg    `json:"packages"`
	}
)