package
4.2.0+incompatible
Repository: https://github.com/kvaps/common-host-libs.git
Documentation: pkg.go.dev
# Functions
CheckFsCreationInProgress checks if mkfs process is using the device.
GetHostURL to consruct HTTP URL of the form "hostname:port".
GetSocketName returns unix socket name (per process).
IsChapidRunning return true if chapid is running as part of service listening on given socket.
NewChapiClient returns the chapi client that communicates over the required unix socket(per process or common service).
NewChapiClientWithTimeout returns the chapi client with timeout configuration that communicates over the required unix socket(per process or common service).
NewChapiHTTPClient to create chapi http client.
NewChapiHTTPClientWithTimeout to create chapi http client with timeout.
NewChapiHTTPClientWithTimeoutAndHeader to create chapi http client with timeout and headers.
NewChapiSocketClient to create chapi socket client.
NewChapiSocketClientWithTimeout to create chapi socket client with timeout.
NewRouter creates a new mux.Router.
Run will invoke a new chapid listener with socket filename containing current process ID.
RunNimbled :.
StopChapid will stop the given http listener.
# Variables
ChapidSocketName : chapid socket name.
ChapidSocketPath : the directory for chapid socket.
ChapInfoURIfmt represents endpoint to obtain initiator CHAP credentials.
CreateFSURIfmt represents devices endpoint format for POST requests.
DevicesURIfmt represents devices endpoint format for GET requests.
DeviceURIfmt represents particular device endpoint format for GET and POST requests.
HostnameURIfmt represents hostname endpoint for GET requests.
Hosts represents collection of hosts.
HostURIfmt represents hosts endpoint format for GET requests.
InitiatorsURIfmt represents initiators endpoint for GET requests.
LogLevel of the chapi client.
MountURIfmt represents mounts endpoint format for GET and POST requests.
NetworksURIfmt represents networks endpoint format for GET requests.
UnmountURIfmt represents particular mount endpoint for POST requests.
# Structs
AccessKeyPath struct.
Client defines client for chapid and corresponding socket file or http:port info.
ErrorResponse struct.
FakeDriver ..
LinuxDriver ..
Response :.
# Interfaces
Driver provides a common interface for host related operations.