common

package
v0.11.4 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDriverName

func GetDriverName() string

GetDriverName returns driver name

func GetDriverVersion

func GetDriverVersion() string

GetDriverVersion returns driver version in string

func GetVersionJSON

func GetVersionJSON() (string, error)

GetVersionJSON returns VersionInfo object in JSON string

func MergeConfig added in v0.10.5

func MergeConfig(driverConfig *Config, driverSecrets map[string]string, volSecrets map[string]string, volParams map[string]string) map[string]string

MergeConfig merges configuration params

func NormalizeConfigKey added in v0.10.5

func NormalizeConfigKey(key string) string

NormalizeConfigKey normalizes config key

func ParseCSIEndpoint added in v0.11.0

func ParseCSIEndpoint(endpoint string) (string, string, error)

ParseCSIEndpoint parses endpoint string (TCP or UNIX)

func ParsePoolServerEndpoint added in v0.11.0

func ParsePoolServerEndpoint(endpoint string) (string, string, error)

ParsePoolServerEndpoint parses endpoint string

func RedactConfig added in v0.10.5

func RedactConfig(config map[string]string) map[string]string

RedactConfig redacts sensitive values

Types

type Config

type Config struct {
	Endpoint               string // CSI endpoint
	NodeID                 string // node ID
	SecretPath             string // Secret mount path
	PoolServiceEndpoint    string // iRODS FS Pool Service endpoint
	PrometheusExporterPort int    // Prometheus Exporter Service port
	StoragePath            string // Path to storage dir (for saving volume info and etc)
}

Config holds the parameters list which can be configured

type VersionInfo

type VersionInfo struct {
	DriverVersion string `json:"driverVersion"`
	GitCommit     string `json:"gitCommit"`
	BuildDate     string `json:"buildDate"`
	GoVersion     string `json:"goVersion"`
	Compiler      string `json:"compiler"`
	Platform      string `json:"platform"`
}

VersionInfo object contains version related info

func GetVersion

func GetVersion() VersionInfo

GetVersion returns VersionInfo object

Jump to

Keyboard shortcuts

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