Documentation ¶
Overview ¶
Package rhcos contains assets for RHCOS.
Package rhcos contains assets for RHCOS.
Package rhcos contains assets for RHCOS.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BootstrapImage ¶
type BootstrapImage string
BootstrapImage is location of the RHCOS image for the Bootstrap node This stores the location of the image based on the platform. eg. on AWS this contains ami-id, on Livirt this can be the URI for QEMU image etc. Note that for most platforms this is the same as rhcos.Image
func (*BootstrapImage) Dependencies ¶
func (i *BootstrapImage) Dependencies() []asset.Asset
Dependencies returns no dependencies.
func (*BootstrapImage) Generate ¶
func (i *BootstrapImage) Generate(p asset.Parents) error
Generate the RHCOS Bootstrap image location.
func (*BootstrapImage) Name ¶
func (i *BootstrapImage) Name() string
Name returns the human-friendly name of the asset.
type Image ¶
type Image string
Image is location of RHCOS image. This stores the location of the image based on the platform. eg. on AWS this contains ami-id, on Livirt this can be the URI for QEMU image etc.
func (*Image) Dependencies ¶
Dependencies returns dependencies used by the RHCOS asset.
type Release ¶
type Release string
Release is a string which denotes the rhcos release, eg: 412.86.202208101040-0. Currently we need this only for Azure to set the image version in the gallery. In the future we could extend to other platforms as necessary.
func (*Release) Dependencies ¶
Dependencies returns dependencies used by the RHCOS asset.
func (*Release) GetAzureReleaseVersion ¶
GetAzureReleaseVersion - generates a modified string for Azure image gallery images. Image gallery image versions cannot have a "-" in the name and must be between 0-2147483647, so we have to truncate the hour and minutes of the date.