service

package
v0.2.13 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mock

type Mock struct {
	mock.Mock
}

func NewMock

func NewMock() *Mock

func (*Mock) ApplyCephConfig

func (m *Mock) ApplyCephConfig(_ context.Context, cfg models.CephConfig) error

func (*Mock) ApplyCephOSDConfig added in v0.2.0

func (m *Mock) ApplyCephOSDConfig(ctx context.Context, cfg models.CephOSDConfig) error

func (*Mock) DiffCephConfig

func (m *Mock) DiffCephConfig(_ context.Context, cfg models.CephConfig) ([]models.CephConfigDifference, error)

func (*Mock) DiffCephOSDConfig added in v0.2.0

func (m *Mock) DiffCephOSDConfig(ctx context.Context, cfg models.CephOSDConfig) ([]models.CephOSDConfigDifference, error)

func (*Mock) DumpConfig

func (m *Mock) DumpConfig(context.Context) (models.CephConfig, error)

func (*Mock) DumpOSDConfig added in v0.2.0

func (m *Mock) DumpOSDConfig(context.Context) (models.CephOSDConfig, error)

type Service

type Service interface {
	ApplyCephConfig(ctx context.Context, cfg models.CephConfig) error
	ApplyCephOSDConfig(ctx context.Context, cfg models.CephOSDConfig) error
	DiffCephConfig(ctx context.Context, cfg models.CephConfig) ([]models.CephConfigDifference, error)
	DiffCephOSDConfig(ctx context.Context, cfg models.CephOSDConfig) ([]models.CephOSDConfigDifference, error)
	CheckClusterHealth(ctx context.Context, checks []clusterHealth.ClusterHealthCheck) ([]models.ClusterHealthIndicator, error)
	DumpConfig(ctx context.Context) (models.CephConfig, error)
	DumpOSDConfig(ctx context.Context) (models.CephOSDConfig, error)
}

func New

func New(c ceph.Ceph, d differ.Differ) Service

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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