pool

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusNoPoolsAvailable = "no pools available"
	ZpoolStatusDegraded    = "DEGRADED"
	ZpoolStatusFaulted     = "FAULTED"
	ZpoolStatusOffline     = "OFFLINE"
	ZpoolStatusOnline      = "ONLINE"
	ZpoolStatusRemoved     = "REMOVED"
	ZpoolStatusUnavail     = "UNAVAIL"
)

PoolOperator is the name of the tool that makes pool-related operations.

Variables

View Source
var CStorZpools map[string]zpool.Topology

CStorZpools is a map of imported cstor pools config at backend identified via their UID

View Source
var ImportedCStorPools map[string]*cstor.CStorPoolInstance

ImportedCStorPools is a map of imported cstor pools API config identified via their UID

View Source
var PoolAddEventHandled = false

PoolAddEventHandled is a flag representing if the pool has been initially imported or created

View Source
var RunnerVar util.Runner

RunnerVar the runner variable for executing binaries.

Functions

func CheckForZreplInitial

func CheckForZreplInitial(ZreplRetryInterval time.Duration)

CheckForZreplInitial is blocking call for checking status of zrepl in cstor-pool container.

func GetDevPathIfNotSlashDev

func GetDevPathIfNotSlashDev(devID string) string

GetDevPathIfNotSlashDev gets the path from given deviceID if its not prefix to "/dev"

func GetPoolName

func GetPoolName() ([]string, error)

GetPoolName return the pool already created.

Types

type ImportOptions

type ImportOptions struct {
	// CachefileFlag option to use cachefile for import
	CachefileFlag bool

	// DevPath is directory where pool devices resides
	DevPath string
	// contains filtered or unexported fields
}

ImportOptions contains the options to build import command

type PoolNamePrefix

type PoolNamePrefix string

PoolNamePrefix is a typed string to store pool name prefix

const (
	PoolPrefix PoolNamePrefix = "cstor-"
)

PoolPrefix is prefix for pool name

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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