vg

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: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewResourceVG

func NewResourceVG(lvm lowlevel.LVM, name string, devs []string, remove bool, forceRemove bool) resource.Task

NewResourceVG creates new resource.Task node for Volume Group

Types

type Preparer

type Preparer struct {
	// Name of created volume group
	Name string `hcl:"name" required:"true" nonempty:"true"`

	// Devices is list of entities to include into volume group
	Devices []string `hcl:"devices"`

	// Remove is enable removal devices omitted from `Devices` list from
	// from volume group
	Remove bool `hcl:"remove"`

	// ForceRemove control destruction of volumes after removing
	// from volume group
	ForceRemove bool `hcl:"forceRemove"`
}

Preparer for LVM's Volume Group

Volume group is responsible for creation LVM Volume Groups from given block devices.

func (*Preparer) Prepare

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

Prepare a new task

Jump to

Keyboard shortcuts

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