ceph

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package ceph deals with ceph config

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Global GlobalConfig `ini:"global"`
}

Config represents a ceph.conf file

func NewConfigFromReader

func NewConfigFromReader(r io.Reader) (*Config, error)

NewConfigFromReader parses the ceph.conf file

func (*Config) WriteTo

func (cfg *Config) WriteTo(w io.Writer) (int64, error)

WriteTo writes a Wireguard Config onto the provided io.Writer

type GlobalConfig

type GlobalConfig struct {
	FSID           uuid.UUID    `ini:"fsid"`
	Monitors       []string     `ini:"mon_initial_members,comma"`
	MonitorsAddr   []netip.Addr `ini:"mon_host,comma"`
	ClusterNetwork netip.Prefix `ini:"cluster_network"`
}

GlobalConfig represents the [global] section of a ceph.conf file

Jump to

Keyboard shortcuts

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