ssh

package
v0.0.0-...-221df60 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const DaemonStatusStopped = 0

Variables

View Source
var (
	ErrAlreadyInMaintenance = errors.New("already in maintenance")
	ErrNotInMaintenance     = errors.New("not in maintenance")
)

Functions

This section is empty.

Types

type CephDaemon

type CephDaemon struct {
	Type   string `json:"daemon_type"`
	Host   string `json:"hostname"`
	Status int    `json:"status"`
	ID     string `json:"daemon_id"`
}

type CephService

type CephService struct {
	Name   string `json:"service_name"`
	Status struct {
		Running int `json:"running"`
		Size    int `json:"size"`
	} `json:"status"`
}

type Client

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

func New

func New(node config.Node) (*Client, error)

func (*Client) CephEnterMaintenance

func (c *Client) CephEnterMaintenance(hostname string) error

func (*Client) CephExitMaintenance

func (c *Client) CephExitMaintenance(hostname string) error

func (*Client) CephFSID

func (c *Client) CephFSID() (string, error)

func (*Client) CephHealth

func (c *Client) CephHealth() (string, error)

func (*Client) CephInMaintenance

func (c *Client) CephInMaintenance(hostname string) (bool, error)

func (*Client) CephStatusByDaemonName

func (c *Client) CephStatusByDaemonName(name string) ([]CephDaemon, error)

func (*Client) CephStatusByDaemonType

func (c *Client) CephStatusByDaemonType(daemonType string) ([]CephDaemon, error)

func (*Client) CephStatusByServiceName

func (c *Client) CephStatusByServiceName(name string) ([]CephDaemon, error)

func (*Client) Close

func (c *Client) Close() error

func (*Client) Compress

func (c *Client) Compress(filename string) error

func (*Client) Copy

func (c *Client) Copy(src, dst string) error

func (*Client) Delete

func (c *Client) Delete(filename string) error

func (*Client) ListCephServices

func (c *Client) ListCephServices() ([]CephService, error)

func (*Client) SHA512Sum

func (c *Client) SHA512Sum(filename string) (string, error)

func (*Client) SetOSDFlag

func (c *Client) SetOSDFlag(flag string) error

func (*Client) Shutdown

func (c *Client) Shutdown() error

func (*Client) SnapshotETCD

func (c *Client) SnapshotETCD(filename string) error

func (*Client) StopCephDaemon

func (c *Client) StopCephDaemon(name string) error

func (*Client) StopCephService

func (c *Client) StopCephService(name string) error

func (*Client) StopSystemdService

func (c *Client) StopSystemdService(name string) error

func (*Client) UnsetOSDFlag

func (c *Client) UnsetOSDFlag(flag string) error

Jump to

Keyboard shortcuts

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