Documentation ¶
Index ¶
- Constants
- func ClusterManager(c *client.Client) cluster.Cluster
- func GetSupportedClusterVersions(host string) ([]string, error)
- func NewAuthClusterClient(host, version string, authstring string, accesstoken string) (*client.Client, error)
- func NewClusterClient(host, version string) (*client.Client, error)
Constants ¶
View Source
const ( SchedPath = "/schedpolicy" PairPath = "/pair" PairTokenPath = "/pairtoken" )
View Source
const ( // OsdSocket is the unix socket for cluster apis OsdSocket = "osd" APIVersion = cluster.APIVersion )
View Source
const ( UriCluster = "/config/cluster" UriNode = "/config/node" UriEnumerate = "/config/enumerate" )
View Source
const (
ObjectStorePath = "/objectstore"
)
Variables ¶
This section is empty.
Functions ¶
func ClusterManager ¶
ClusterManager returns a REST wrapper for the Cluster interface.
func GetSupportedClusterVersions ¶
GetSupportedClusterVersions returns a list of supported versions of the Cluster API host: REST endpoint [http://<ip>:<port> OR unix://<path-to-unix-socket>]. default: [unix://var/lib/osd/cluster/osd.sock]
func NewAuthClusterClient ¶
func NewAuthClusterClient(host, version string, authstring string, accesstoken string) (*client.Client, error)
NewAuthClusterClient returns a new REST client. host: REST endpoint [http://<ip>:<port> OR unix://<path-to-unix-socket>]. default: [unix://var/lib/osd/cluster/osd.sock] version: Cluster API version
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.