Documentation ¶
Index ¶
- Variables
- func GetContext(traceId string) context.Context
- func GetLogger(logLevel string, toFile string) (*logrus.Logger, error)
- func JBase32FromStr(in string) (out string)
- func JBase32ToStr(in string) (out string, err error)
- func LFC(ctx context.Context) *logrus.Entry
- func SetupConfig(path string, c *JovianDSSCfg) error
- func WithLogger(ctx context.Context, logger *logrus.Entry) context.Context
- type ISCSIEndpointCfg
- type JDSSLoggerContextID
- type JovianDSSCfg
- type RestEndpointCfg
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Version string NodeID string LogLevel string LogPath string )
Version of plugin, should be filed during compilation
View Source
var ( NodeConfigPath string ControllerConfigPath string )
View Source
var PluginName = "iscsi.csi.joviandss.open-e.com"
Plugin name
Functions ¶
func GetContext ¶
func JBase32FromStr ¶
Takes inut string and converts it to JBase64 string
func JBase32ToStr ¶
Takes JBase64 input and extracts original string
func SetupConfig ¶
func SetupConfig(path string, c *JovianDSSCfg) error
GetConfing reads Config from config file
Types ¶
type ISCSIEndpointCfg ¶
type JDSSLoggerContextID ¶
type JDSSLoggerContextID int
type JovianDSSCfg ¶
type JovianDSSCfg struct { LLevel string `yaml:"loglevel"` LDest string `yaml:"logfile"` Pool string `yaml:"pool"` RestEndpointCfg RestEndpointCfg `yaml:"endpoint"` ISCSIEndpointCfg ISCSIEndpointCfg `yaml:"iscsi"` }
ControllerCfg stores configaration properties of controller instance
type RestEndpointCfg ¶
Click to show internal directories.
Click to hide internal directories.