volgen

package
v0.0.0-...-4e63163 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2016 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package volgen implements volume graph generation and volfile generation for GlusterD

Index

Constants

This section is empty.

Variables

View Source
var (
	GenerateVolfileFunc = GenerateVolfile
)

Functions

func GenerateVolfile

func GenerateVolfile(vinfo *volume.Volinfo) error

GenerateVolfile function will do all task from graph generation to volfile generation

Types

type Xlator

type Xlator struct {
	Name     string
	Type     string
	Options  map[string]string
	Children []Xlator
}

Xlator is a node in the GlusterFS volume graph

func GenerateGraph

func GenerateGraph(vinfo *volume.Volinfo, gtype string) *Xlator

GenerateGraph function will do all task for graph generation

func (Xlator) DumpGraph

func (x Xlator) DumpGraph(w io.Writer)

DumpGraph dumps a textual representation of the volume graph into `w`

Jump to

Keyboard shortcuts

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