Documentation ¶
Overview ¶
Package isoeditor is a generated GoMock package.
Index ¶
- Constants
- func Create(outPath string, workDir string, volumeLabel string) error
- func CreateMinimalISO(extractDir, volumeID, rootFSURL, arch, minimalISOPath string) error
- func Extract(isoPath string, workDir string) error
- func GetFileFromISO(isoPath, filePath string) (filesystem.File, error)
- func GetISOFileInfo(filePath, isoPath string) (int64, int64, error)
- func KargsFiles(isoPath string) ([]string, error)
- func KargsToStr(args []string) (string, error)
- func NewInitRamFSStreamReader(irfsPath string, ignitionContent *IgnitionContent) (overlay.OverlayReader, error)
- func NewInitRamFSStreamReaderFromISO(isoPath string, ignitionContent *IgnitionContent) (overlay.OverlayReader, error)
- func ReadFileFromISO(isoPath, filePath string) ([]byte, error)
- func StrToKargs(kargsStr string) ([]string, error)
- func VolumeIdentifier(isoPath string) (string, error)
- type BoundariesFinder
- type Editor
- type FileData
- type FileReader
- type IgnitionContent
- type ImageReader
- type MockEditor
- type MockEditorMockRecorder
- type StreamGeneratorFunc
Constants ¶
const (
RamDiskPaddingLength = uint64(1024 * 1024) // 1MB
)
Variables ¶
This section is empty.
Functions ¶
func Create ¶
Create builds an iso file at outPath with the given volumeLabel using the contents of the working directory
func CreateMinimalISO ¶
CreateMinimalISO Creates the minimal iso by removing the rootfs and adding the url
func GetFileFromISO ¶
func GetFileFromISO(isoPath, filePath string) (filesystem.File, error)
Gets a readWrite seeker of a specific file from the ISO image
func KargsFiles ¶
func KargsToStr ¶
func NewInitRamFSStreamReader ¶
func NewInitRamFSStreamReader(irfsPath string, ignitionContent *IgnitionContent) (overlay.OverlayReader, error)
func NewInitRamFSStreamReaderFromISO ¶
func NewInitRamFSStreamReaderFromISO(isoPath string, ignitionContent *IgnitionContent) (overlay.OverlayReader, error)
func ReadFileFromISO ¶
Reads a whole specific file from the ISO image
func StrToKargs ¶
func VolumeIdentifier ¶
Types ¶
type Editor ¶
type FileData ¶
type FileData struct { Filename string Data io.ReadCloser }
func NewIgnitionImageReader ¶
func NewIgnitionImageReader(isoPath string, ignitionContent *IgnitionContent) ([]FileData, error)
NewIgnitionImageReader returns the filename of the ignition image in the ISO, along with a stream of the ignition image with ignition content embedded. This can be used to overwrite the ignition image file of an ISO previously unpacked by Extract() in order to embed ignition data.
type FileReader ¶
type IgnitionContent ¶
type IgnitionContent struct {
Config []byte
}
type ImageReader ¶
type ImageReader = overlay.OverlayReader
func NewRHCOSStreamReader ¶
func NewRHCOSStreamReader(isoPath string, ignitionContent *IgnitionContent, ramdiskContent []byte, kargs []byte) (ImageReader, error)
type MockEditor ¶
type MockEditor struct {
// contains filtered or unexported fields
}
MockEditor is a mock of Editor interface.
func NewMockEditor ¶
func NewMockEditor(ctrl *gomock.Controller) *MockEditor
NewMockEditor creates a new mock instance.
func (*MockEditor) CreateMinimalISOTemplate ¶
func (m *MockEditor) CreateMinimalISOTemplate(arg0, arg1, arg2, arg3 string) error
CreateMinimalISOTemplate mocks base method.
func (*MockEditor) EXPECT ¶
func (m *MockEditor) EXPECT() *MockEditorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockEditorMockRecorder ¶
type MockEditorMockRecorder struct {
// contains filtered or unexported fields
}
MockEditorMockRecorder is the mock recorder for MockEditor.
func (*MockEditorMockRecorder) CreateMinimalISOTemplate ¶
func (mr *MockEditorMockRecorder) CreateMinimalISOTemplate(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
CreateMinimalISOTemplate indicates an expected call of CreateMinimalISOTemplate.
type StreamGeneratorFunc ¶
type StreamGeneratorFunc func(isoPath string, ignitionContent *IgnitionContent, ramdiskContent, kargs []byte) (ImageReader, error)