common

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultConfigPath is the default configfile path of open-local agent
	DefaultConfigPath string = "/etc/controller/config/"
	// DefaultInterval is the duration(second) that the agent checks at one time
	DefaultInterval int    = 60
	DefaultEndpoint string = "unix://tmp/csi.sock"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	// Nodename is the kube node name
	Nodename string
	// Config is the configfile path of open-local agent
	ConfigPath string
	// SysPath is the the mount point of the host sys path
	SysPath string
	// MountPath defines the specified mount path we discover
	MountPath string
	// DisconverInterval is the duration(second) that the agent checks at one time
	DiscoverInterval int
	// CRDSpec is spec of NodeLocalStorage CRD
	CRDSpec *lssv1alpha1.NodeLocalStorageSpec
	// CRDSpec is spec of NodeLocalStorage CRD
	CRDStatus *lssv1alpha1.NodeLocalStorageStatus
	// LogicalVolumeNamePrefix is the prefix of LogicalVolume Name
	LogicalVolumeNamePrefix string
	// RegExp is used to filter device names
	RegExp string
	// InitConfig is config for agent to create nodelocalstorage
	InitConfig string
}

Configuration stores all the user-defined parameters to the controller

Jump to

Keyboard shortcuts

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