* rework CI validation workflow and makefile * enable push * fix job names * fix license check * fix snapshot builds * fix acceptance tests * fix linting * disable pull request event * rework windows runner caching * disable release pipeline and add issue templates
23 lines
410 B
Go
23 lines
410 B
Go
package docker
|
|
|
|
import (
|
|
"encoding/json"
|
|
|
|
"github.com/sirupsen/logrus"
|
|
)
|
|
|
|
type manifest struct {
|
|
ConfigPath string `json:"Config"`
|
|
RepoTags []string `json:"RepoTags"`
|
|
LayerTarPaths []string `json:"Layers"`
|
|
}
|
|
|
|
func newManifest(manifestBytes []byte) manifest {
|
|
var manifest []manifest
|
|
err := json.Unmarshal(manifestBytes, &manifest)
|
|
if err != nil {
|
|
logrus.Panic(err)
|
|
}
|
|
return manifest[0]
|
|
}
|