Documentation
¶
Overview ¶
Package osd for the Ceph OSDs.
Package osd for the Ceph OSDs.
Package osd for the Ceph OSDs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
type Cluster struct {
Namespace string
Keyring string
Version string
Storage StorageSpec
HostNetwork bool
// contains filtered or unexported fields
}
Cluster keeps track of the OSDs
type Config ¶ added in v0.4.0
type Config struct {
StoreConfig cephosd.StoreConfig `json:"storeConfig,omitempty"`
Location string `json:"location,omitempty"`
}
Config CRD settings
type Device ¶ added in v0.4.0
type Device struct {
Name string `json:"name,omitempty"`
}
Device CRD settings
type Directory ¶ added in v0.4.0
type Directory struct {
Path string `json:"path,omitempty"`
}
Directory CRD settings
type Node ¶ added in v0.4.0
type Node struct {
Name string `json:"name,omitempty"`
Devices []Device `json:"devices,omitempty"`
Directories []Directory `json:"directories,omitempty"`
Selection
Config
}
Node specific CRD settings
type Selection ¶ added in v0.4.0
type Selection struct {
// Whether to consume all the storage devices found on a machine
UseAllDevices *bool `json:"useAllDevices,omitempty"`
// A regular expression to allow more fine-grained selection of devices on nodes across the cluster
DeviceFilter string `json:"deviceFilter,omitempty"`
MetadataDevice string `json:"metadataDevice,omitempty"`
}
Selection CRD settings
type StorageSpec ¶ added in v0.4.0
type StorageSpec struct {
Nodes []Node `json:"nodes,omitempty"`
UseAllNodes bool `json:"useAllNodes,omitempty"`
Selection
Config
}
StorageSpec CRD settings
func (*StorageSpec) AnyUseAllDevices ¶ added in v0.4.0
func (s *StorageSpec) AnyUseAllDevices() bool
AnyUseAllDevices gets whether to use all devices
func (*StorageSpec) ClearUseAllDevices ¶ added in v0.4.0
func (s *StorageSpec) ClearUseAllDevices()
ClearUseAllDevices clears all devices
Click to show internal directories.
Click to hide internal directories.