installifdifferent

package
v0.0.0-...-746469e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 6, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CaptureTextFromBinaryFile

func CaptureTextFromBinaryFile(file io.ReadSeeker, regularExpression string) string

Types

type DefaultImpl

type DefaultImpl struct {
	FileSystemBackend afero.Fs
}

func (*DefaultImpl) Proceed

func (iid *DefaultImpl) Proceed(o metadata.Object) (bool, error)

type Interface

type Interface interface {
	Proceed(o metadata.Object) (bool, error)
}

type KernelFileInfo

type KernelFileInfo struct {
	Arch    LinuxArch
	Type    KernelType
	Version string

	FileSystemBackend afero.Fs
}

func NewKernelFileInfo

func NewKernelFileInfo(fsb afero.Fs, file io.ReadSeeker) *KernelFileInfo

type KernelType

type KernelType int
const (
	UnknownKernelType KernelType = iota
)

type LinuxArch

type LinuxArch int
const (
	UnknownLinuxArch LinuxArch = iota
	ARMLinuxArch     LinuxArch = iota
)

type Pattern

type Pattern struct {
	Type       PatternType
	RegExp     string `json:"regexp"`
	Seek       int64  `json:"seek"`
	BufferSize int64  `json:"buffer-size"`

	FileSystemBackend afero.Fs
}

func NewPatternFromInstallIfDifferentObject

func NewPatternFromInstallIfDifferentObject(fsb afero.Fs, pattern map[string]interface{}) (*Pattern, error)

func (*Pattern) Capture

func (p *Pattern) Capture(target io.ReadSeeker) (string, error)

func (*Pattern) IsValid

func (p *Pattern) IsValid() bool

type PatternType

type PatternType int
const (
	CustomPattern      PatternType = iota
	UBootPattern       PatternType = iota
	LinuxKernelPattern PatternType = iota
)

type TargetProvider

type TargetProvider interface {
	GetTarget() string
	SetupTarget(target afero.File)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL