converge: Index | Files

package vg

import ""


Package Files

preparer.go vg.go

func NewResourceVG Uses

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

NewResourceVG creates new resource.Task node for Volume Group

type Preparer Uses

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 Uses

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

Prepare a new task

Package vg imports 7 packages (graph) and is imported by 1 packages. Updated 2017-01-13. Refresh now. Tools for package owners.