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)
- func NewInsecureTLSAuthClusterClient(host, version, auth string, accesstoken string) (*client.Client, error)
Constants ¶
const ( SchedPath = "/schedpolicy" PairPath = "/pair" PairValidatePath = "/validate" PairTokenPath = "/pairtoken" )
const ( // OsdSocket is the unix socket for cluster apis OsdSocket = "osd" APIVersion = cluster.APIVersion )
const ( UriCluster = "/config/cluster" UriNode = "/config/node" UriEnumerate = "/config/enumerate" )
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
func NewClusterClient ¶
NewClusterClient 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
func NewInsecureTLSAuthClusterClient ¶
func NewInsecureTLSAuthClusterClient(host, version, auth string, accesstoken string) (*client.Client, error)
NewInsecureTLSAuthClusterClient returns a new REST client that will skip TLS verification for https host: REST endpoint [http(s)://<ip>:<port>] version: ClusterAPI version
Types ¶
This section is empty.