Documentation
¶
Overview ¶
Package nomad implements the scriptling.nomad extended library: a thin client over the HashiCorp Nomad HTTP API covering CSI volumes and jobs.
Index ¶
Constants ¶
View Source
const ( // DefaultAddr is used when no address is supplied to Client(). DefaultAddr = "http://127.0.0.1:4646" // DefaultTimeout is the per-request HTTP timeout used when none is given // to Client(). DefaultTimeout = 10 * time.Second )
View Source
const ( LibraryName = "scriptling.nomad" LibraryDesc = "HashiCorp Nomad client library covering CSI volumes and jobs" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CSIVolumeListEntry ¶
type CSIVolumeListEntry struct {
ID string `json:"ID"`
Name string `json:"Name"`
Namespace string `json:"Namespace"`
PluginID string `json:"PluginID"`
Provider string `json:"Provider"`
Schedulable bool `json:"Schedulable"`
ControllersHealthy int `json:"ControllersHealthy"`
NodesHealthy int `json:"NodesHealthy"`
}
CSIVolumeListEntry is a summary entry as returned by the volume list endpoint.
type HostVolumeListEntry ¶ added in v0.17.2
type HostVolumeListEntry struct {
ID string `json:"ID"`
Name string `json:"Name"`
Namespace string `json:"Namespace"`
PluginID string `json:"PluginID"`
NodeID string `json:"NodeID"`
NodePool string `json:"NodePool"`
State string `json:"State"`
}
HostVolumeListEntry is a summary entry as returned by the host volume list endpoint.
Click to show internal directories.
Click to hide internal directories.