Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DebianReleasesMapping = map[string]string{
"squeeze": "6",
"wheezy": "7",
"jessie": "8",
"stretch": "9",
"buster": "10",
"sid": "unstable",
"oldoldstable": "7",
"oldstable": "8",
"stable": "9",
"testing": "10",
"unstable": "unstable",
}
DebianReleasesMapping translates Debian code names and class names to version numbers
View Source
var UbuntuReleasesMapping = map[string]string{
"precise": "12.04",
"quantal": "12.10",
"raring": "13.04",
"trusty": "14.04",
"utopic": "14.10",
"vivid": "15.04",
"wily": "15.10",
"xenial": "16.04",
"yakkety": "16.10",
"zesty": "17.04",
"artful": "17.10",
"bionic": "18.04",
}
UbuntuReleasesMapping translates Ubuntu code names to version numbers
Functions ¶
func AnnotateFuseki ¶
func AnnotateFuseki(softwareImage SoftwareImage, endpointAddr string) (string, error)
func NewRepository ¶
Types ¶
type Dockerfile ¶
type Dockerfile struct {
Steps []string `json:steps`
}
type FeatureVersion ¶
type FeatureVersion struct {
Version string `json:"Version,omitempty" predicate:"rdfs:label"`
}
Version of SoftwarePackage
http://dockerpedia.inf.utfsm.cl/resource/PackageVersion/{id}
type Labels ¶
type Labels struct {
BuildDate string `json:"org.label-schema.build-date,omitempty",predicate:"vocab:buildDate"`
Description string `json:"org.label-schema.description,omitempty"`
Name string `json:"org.label-schema.name,omitempty"`
Usage string `json:"org.label-schema.usage,omitempty"`
Url string `json:"org.label-schema.url,omitempty"`
VcsUrl string `json:"org.label-schema.vcs-url,omitempty"`
VcsRef string `json:"org.label-schema.vcs-ref,omitempty"`
Vendor string `json:"org.label-schema.vendor,omitempty"`
Version string `json:"org.label-schema.version,omitempty"`
SchemaVersion string `json:"org.label-schema.schema-version,omitempty"`
DockerCmd string `json:"org.label-schema.docker.cmd,omitempty"`
DockerCmdDevel string `json:"org.label-schema.docker.cmd.devel,omitempty"`
DockerCmdTest string `json:"org.label-schema.docker.cmd.test,omitempty"`
DockerCmdDebug string `json:"org.label-schema.docker.cmd.debug,omitempty"`
DockerCmdHelp string `json:"org.label-schema.docker.cmd.help,omitempty"`
DockerCmdParams string `json:"org.label-schema.docker.cmd.params,omitempty"`
RktCmd string `json:"org.label-schema.rkt.cmd,omitempty"`
RktCmdDevel string `json:"org.label-schema.rkt.cmd.devel,omitempty"`
RktCmdTest string `json:"org.label-schema.rkt.cmd.test,omitempty"`
RktCmdDebug string `json:"org.label-schema.rkt.cmd.debug,omitempty"`
RktCmdHelp string `json:"org.label-schema.rkt.cmd.help,omitempty"`
RktCmdParams string `json:"org.label-schema.rkt.cmd.params,omitempty"`
}
type Namespace ¶
type Namespace struct {
OperatingSystem string `json:"NamespaceName,omitempty" predicate:"vocab:operatingSystem"`
Version string `json:"Version,omitempty" predicate:"vocab:operatingSystemVersion"`
}
Operating system of the SoftwareImage and SoftwarePackage
type RequestWorkflow ¶
type RequestWorkflow struct {
Name string `form:"image" json:"image"`
Version string `form:"tag" json:"tag"`
PipPackages string `form:"pip_requirements" json:"pip_requirements"`
OutputImage string `form:"output_image" json:"output_image"`
}
Get the params of Workflow (API)
type SoftwareImage ¶
type SoftwareImage struct {
Name string `form:"image" json:"image" binding:"required" predicate:"rdfs:label"`
Version string `form:"tag" json:"tag" binding:"required"`
Size int64 `json:"size" predicate:"vocab:size"`
Features []*clair.Feature `json:"features"`
ManifestV1 *manifestV1.SignedManifest `json:"manifest"`
History []v1Compatibility `json:"history"`
BaseImage string `json:"base_image"`
Labels Labels `json:"labels"`
FsLayers []docker.FsLayer
}
Click to show internal directories.
Click to hide internal directories.