ceph

package
v0.0.0-...-4779486 Latest Latest
Warning

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

Go to latest
Published: May 13, 2023 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const CephBinariesPath = "/usr/bin"
View Source
const CephConfigPath = "/etc/ceph"
View Source
const CephDataPath = "/var/lib/ceph"

Variables

This section is empty.

Functions

func RunProxy

func RunProxy(proxyPort, sslCertificate, sslKey, scheme, publicAddress, targetPort string)

Types

type Ceph

type Ceph struct {
	// contains filtered or unexported fields
}

func NewCeph

func NewCeph(config *config.InternalConfig, binariesPath, configPath, dataPath string) *Ceph

func (*Ceph) RunMds

func (ceph *Ceph) RunMds(id, publicAddress string) error

func (*Ceph) RunMgr

func (ceph *Ceph) RunMgr(id, publicAddress, sslCertificate, sslKey, proxyPort string) error

func (*Ceph) RunMon

func (ceph *Ceph) RunMon(id, publicAddress string) error

func (*Ceph) RunOsd

func (ceph *Ceph) RunOsd(id, publicAddress string) error

func (*Ceph) RunRgw

func (ceph *Ceph) RunRgw(id, publicAddress, sslCertificate, sslKey, proxyPort string) error

func (*Ceph) RunSetup

func (ceph *Ceph) RunSetup(dashboardUsername, dashboardPassword, radosgwUsername, radosgwPassword, sslCertificate, sslKey string, placementGroups, expectedNumberOfObjects uint) error

func (*Ceph) Setup

func (ceph *Ceph) Setup(namespace string) (*CephData, error)

type CephData

type CephData struct {
	Namespace                          string
	CephClusterName                    string
	CephPoolName                       string
	MonitorKey                         string
	ClientAdminKey                     string
	ClientBootstrapMetadataServerKey   string
	ClientBootstrapObjectStorageKey    string
	ClientBootstrapRadosBlockDeviceKey string
	ClientBootstrapRadosGatewayKey     string
	ClientK8STEWKey                    string
}

type Proxy

type Proxy struct {
	// contains filtered or unexported fields
}

func NewProxy

func NewProxy(scheme, publicAddress, port string) *Proxy

func (*Proxy) ServeHTTP

func (proxy *Proxy) ServeHTTP(response http.ResponseWriter, request *http.Request)

type ProxyTransport

type ProxyTransport struct {
	http.RoundTripper
}

func (*ProxyTransport) RoundTrip

func (transport *ProxyTransport) RoundTrip(request *http.Request) (*http.Response, error)

Jump to

Keyboard shortcuts

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