cluster

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// OsdSocket is the unix socket for cluster apis
	OsdSocket = "osd"
)

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