config

package
v9.4.21+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Version                   = "v1"
	GraphDriverAPIBase        = "/var/lib/osd/graphdriver/"
	UrlKey                    = "url"
	MgmtPortKey               = "mgmtPort"
	PluginPortKey             = "pluginPort"
	VersionKey                = "version"
	DataDir                   = ".data"
	FlexVolumePort     uint16 = 2345
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterConfig

type ClusterConfig struct {
	ClusterId            string
	ClusterUuid          string
	NodeId               string
	SchedulerNodeName    string
	MgtIface             string
	DataIface            string
	DefaultDriver        string
	MgmtIp               string
	DataIp               string
	ManagementURL        string
	FluentDHost          string
	SystemSharedSecret   string
	AllowSecurityRemoval bool
	HWType               api.HardwareType
	// QuorumTimeoutInSeconds configures time after which an
	// out of quorum node will restart
	QuorumTimeoutInSeconds int
	// SnapLockTryDurationInMinutes is the time for which
	// the cluster manager will try acquiring a lock for cluster snapshot
	SnapLockTryDurationInMinutes int
}

swagger:model

type Config

type Config struct {
	Osd struct {
		ClusterConfig ClusterConfig `yaml:"cluster"`
		// map[string]string is volume.VolumeParams equivalent
		Drivers map[string]map[string]string
		// map[string]string is volume.VolumeParams equivalent
		GraphDrivers map[string]map[string]string
	}
}

swagger:model

func Parse

func Parse(filePath string) (*Config, error)

Jump to

Keyboard shortcuts

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