converge: Index | Files

package lv

import ""


Package Files

lv.go preparer.go

func NewResourceLV Uses

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

NewResourceLV create new resource.Task node for LVM Volume Groups

type Preparer Uses

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 Uses

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

Prepare a new task

type Status Uses

type Status struct {
    DevicePath string

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

Package lv imports 6 packages (graph) and is imported by 1 packages. Updated 2016-12-25. Refresh now. Tools for package owners.