Documentation
¶
Index ¶
- Constants
- func Contained(obj, target interface{}) bool
- func FlushLogs()
- func GetCSIClientConn(csiEndpoint string) (*grpc.ClientConn, error)
- func GetCSIEndPoint(csiEndpoint string) (string, error)
- func GetCSIEndPointListener(csiEndpoint string) (net.Listener, error)
- func InitLogs()
- func IsSupportFstype(fstype string) bool
- func IsSupportPotocol(protocol string) bool
- func PathExists(path string) (bool, error)
- type GlogWriter
Constants ¶
View Source
const ( // NameSpace for CSI NameSpace = "csi" // CSI endpoint environment variable name CSIEndpoint = "CSI_ENDPOINT" // CSI default endpoint CSIDefaultEndpoint = "unix://path/to/unix/domain/socket.sock" // Opensds endpoint environment variable name OpensdsEndpoint = "OPENSDS_ENDPOINT" // Opensds auth strategy OpensdsAuthStrategy = "OPENSDS_AUTH_STRATEGY" // Opensds default endpoint OpensdsDefaultEndpoint = "http://localhost:50040" // Opensds Secondary AZ OpensdsSecondaryAZ = "OPENSDS_SECONDARY_AZ" OpensdsDefaultSecondaryAZ = "secondary" // CSI environment variable whether enable the replication function, value can be true or false CSIEnableReplication = "CSI_ENABLE_REPLICATION" // 1024 * 1024 * 1024 GiB int64 = 1073741824 )
View Source
const DefaultLogDir = "/var/log/opensds"
Variables ¶
This section is empty.
Functions ¶
func GetCSIClientConn ¶
func GetCSIClientConn(csiEndpoint string) (*grpc.ClientConn, error)
GetCSIClientConn from endpoint
func GetCSIEndPoint ¶
GetCSIEndPoint from environment variable
func GetCSIEndPointListener ¶
GetCSIEndPointListener from endpoint
func IsSupportPotocol ¶ added in v0.5.1
IsSupportPotocol ...
func PathExists ¶
Types ¶
type GlogWriter ¶
type GlogWriter struct{}
Click to show internal directories.
Click to hide internal directories.