common

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 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 ParseEndpoint

func ParseEndpoint(endpoint string) (string, string, error)

ParseEndpoint parses endpoint string (TCP or UNIX)

func ParsePoolServiceEndpoint

func ParsePoolServiceEndpoint(endpoint string) (string, error)

ParsePoolServiceEndpoint parses endpoint string

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