Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WebPage ¶
type WebPage struct { FaviconURL string LogoURL string Title string Paragraphs []template.HTML Images []WebPageImage }
WebPage represents the data that will be used to populate the webpage template.
func NewWebPage ¶
func NewWebPage(rootDir string, catalog stream.ProductCatalog) (*WebPage, error)
NewWebPage creates initializes a webpage struct from the given product catalog. If the image paths from the catalog are detected in the provided rootDir, the files are inspected and their metadata is included in the image version details.
type WebPageImage ¶
type WebPageImage struct { Distribution string Release string Architecture string Variant string IsStale bool Aliases []string Requirements map[string]string Versions []WebPageImageVersion }
WebPageImage represents webpage table entries.
type WebPageImageFile ¶
WebPageImageFile represents a file related to a specific image. Used for file listings in image details.
type WebPageImageVersion ¶
type WebPageImageVersion struct { Name string Path string BuildDate string IsStale bool FingerprintContainer string FingerprintVM string Files []WebPageImageFile }
WebPageImageVersion represents a version of an image.
Click to show internal directories.
Click to hide internal directories.