config

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: May 12, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvStorageOSHost       = "STORAGEOS_HOST"
	EnvStorageosUsername   = "STORAGEOS_USERNAME"
	EnvStorageosPassword   = "STORAGEOS_PASSWORD"
	EnvStorageosAPIVersion = "STORAGEOS_API_VERSION"
)

env vars

View Source
const (
	// ConfigFileName is the name of config file
	ConfigFileName = "config.json"
)
View Source
const DefaultFSType = "ext4"

DefaultFSType is the default filesystem we'll use if creating filesystems.

View Source
const DeviceRootPath = "/var/lib/storageos/volumes"

DeviceRootPath defines the directory in which the raw StorageOS volumes are created.

View Source
const (
	FeatureReplicas = "storageos.feature.replicas"
)

default features

Variables

This section is empty.

Functions

func Dir

func Dir() string

Dir returns the directory the configuration file is stored in

func Load

func Load(configDir string) (*configfile.ConfigFile, error)

Load reads the configuration files in the given directory, and sets up the auth config information and returns values. FIXME: use the internal golang config parser

func LoadFromReader

func LoadFromReader(configData io.Reader) (*configfile.ConfigFile, error)

LoadFromReader is a convenience function that creates a ConfigFile object from a reader

func NewConfigFile

func NewConfigFile(fn string) *configfile.ConfigFile

NewConfigFile initializes an empty configuration file for the given filename 'fn'

func SetDir

func SetDir(dir string)

SetDir sets the directory the configuration file is stored in

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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