lv

package
v0.0.0-...-02c76fb Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2020 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewResourceLV

func NewResourceLV(lvm lowlevel.LVM, group string, name string, size *lowlevel.LvmSize) resource.Task

NewResourceLV create new resource.Task node for LVM Volume Groups

Types

type Preparer

type Preparer struct {
	// Group where volume will be created
	Group string `hcl:"group" required:"true" nonempty:"true"`

	// Name of volume, which will be created
	Name string `hcl:"name" required:"true" nonempty:"true"`

	// Size of volume. Can be relative or absolute.
	// Relative size set in forms like `100%FREE`
	// (words after percent sign can be `FREE`, `VG`, `PV`)
	// Absolute size specified with suffix `BbKkMmGgTtPp`, upper case
	// suffix mean S.I. sizes (power of 10), lower case mean powers of 1024.
	// Also special suffixes `Ss`, which mean sectors.
	// Refer to LVM manpages for details.
	Size string `hcl:"size" required:"true" nonempty:"true"`
}

Preparer for LVM LV resource

Logical volume creation

func (*Preparer) Prepare

func (p *Preparer) Prepare(ctx context.Context, render resource.Renderer) (resource.Task, error)

Prepare a new task

type Status

type Status struct {
	resource.Status
	DevicePath string
}

Status is a resource.Status extended by DevicePath of created volume

Jump to

Keyboard shortcuts

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