cluster

package
v4.0.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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

func ClusterManager(c *client.Client) cluster.Cluster

ClusterManager returns a REST wrapper for the Cluster interface.

func GetSupportedClusterVersions

func GetSupportedClusterVersions(host string) ([]string, error)

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

func NewClusterClient(host, version string) (*client.Client, error)

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

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL