Documentation ¶
Index ¶
- Constants
- Variables
- func AddOrUpdateUsers(users []imagecustomizerapi.User, baseConfigPath string, ...) error
- func CustomizeImage(buildDir string, baseConfigPath string, config *imagecustomizerapi.Config, ...) error
- func CustomizeImageWithConfigFile(buildDir string, configFile string, imageFile string, rpmsSources []string, ...) error
- type ImageConnection
- func (c *ImageConnection) Chroot() *safechroot.Chroot
- func (c *ImageConnection) CleanClose() error
- func (c *ImageConnection) Close()
- func (c *ImageConnection) ConnectChroot(rootDir string, isExistingDir bool, extraDirectories []string, ...) error
- func (c *ImageConnection) ConnectLoopback(diskFilePath string) error
- func (c *ImageConnection) Loopback() *safeloopback.Loopback
Constants ¶
View Source
const ( BaseImageName = "image.raw" PartitionCustomizedImageName = "image2.raw" )
Variables ¶
View Source
var ( // Version specifies the version of the Mariner Image Customizer tool. // The value of this string is inserted during compilation via a linker flag. ToolVersion = "" )
Functions ¶
func AddOrUpdateUsers ¶
func AddOrUpdateUsers(users []imagecustomizerapi.User, baseConfigPath string, imageChroot safechroot.ChrootInterface) error
func CustomizeImage ¶
Types ¶
type ImageConnection ¶
type ImageConnection struct {
// contains filtered or unexported fields
}
func NewImageConnection ¶
func NewImageConnection() *ImageConnection
func (*ImageConnection) Chroot ¶
func (c *ImageConnection) Chroot() *safechroot.Chroot
func (*ImageConnection) CleanClose ¶
func (c *ImageConnection) CleanClose() error
func (*ImageConnection) Close ¶
func (c *ImageConnection) Close()
func (*ImageConnection) ConnectChroot ¶
func (c *ImageConnection) ConnectChroot(rootDir string, isExistingDir bool, extraDirectories []string, extraMountPoints []*safechroot.MountPoint, includeDefaultMounts bool, ) error
func (*ImageConnection) ConnectLoopback ¶
func (c *ImageConnection) ConnectLoopback(diskFilePath string) error
func (*ImageConnection) Loopback ¶
func (c *ImageConnection) Loopback() *safeloopback.Loopback
Click to show internal directories.
Click to hide internal directories.