types

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2017 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RootDeviceImageFile = "blackbox_ignition_test.img"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Directory

type Directory struct {
	Node
	Mode string
}

type Disk

type Disk struct {
	ImageFile  string
	Partitions Partitions
}

func GetBaseDisk

func GetBaseDisk() []Disk

type File

type File struct {
	Node
	Contents string
	Mode     string
}
type Link struct {
	Node
	Target string
	Hard   bool
}

type MntDevice

type MntDevice struct {
	Label        string
	Substitution string
}

type Node

type Node struct {
	Name      string
	Directory string
	User      int
	Group     int
}

type Partition

type Partition struct {
	Number          int
	Label           string
	TypeCode        string
	TypeGUID        string
	GUID            string
	Device          string
	Offset          int
	Length          int
	FilesystemType  string
	FilesystemLabel string
	FilesystemUUID  string
	MountPath       string
	Hybrid          bool
	Files           []File
	Directories     []Directory
	Links           []Link
	RemovedNodes    []Node
}

type Partitions

type Partitions []*Partition

func (Partitions) AddDirectories

func (ps Partitions) AddDirectories(label string, ds []Directory)

func (Partitions) AddFiles

func (ps Partitions) AddFiles(label string, fs []File)
func (ps Partitions) AddLinks(label string, ls []Link)

func (Partitions) AddRemovedNodes

func (ps Partitions) AddRemovedNodes(label string, ns []Node)

func (Partitions) GetPartition

func (ps Partitions) GetPartition(label string) *Partition

type Test

type Test struct {
	Name       string
	In         []Disk
	Out        []Disk
	MntDevices []MntDevice
	Config     string
}

Jump to

Keyboard shortcuts

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