cluster

package
v9.4.47+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SchedPath = "/schedpolicy"

	PairPath         = "/pair"
	PairValidatePath = "/validate"
	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

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.

Jump to

Keyboard shortcuts

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