Documentation ¶
Index ¶
- Constants
- type ClusterStatus
- type DeleteStatus
- type Manager
- func (m *Manager) AddClusterMetadata(ctx context.Context, cluster *opnicorev1.Cluster) error
- func (m *Manager) CreateInitialAdmin(password []byte, readyFunc ...ReadyFunc)
- func (m *Manager) DeleteInitialAdminState() error
- func (m *Manager) DeleteTaskStatus(ctx context.Context, id string, readyFunc ...ReadyFunc) (DeleteStatus, error)
- func (m *Manager) DoClusterDataDelete(ctx context.Context, id string, readyFunc ...ReadyFunc) error
- func (m *Manager) GetClusterStatus() ClusterStatus
- func (m *Manager) ReconcileClusterMetadata(ctx context.Context, clusters []*opnicorev1.Cluster) error
- func (m *Manager) ShouldCreateInitialAdmin() bool
- func (m *Manager) UpdateClusterMetadata(ctx context.Context, ref *opnicorev1.Reference, ...) error
- type OpensearchManagerOption
- type OpensearchManagerOptions
- type ReadyFunc
Constants ¶
View Source
const ( ClusterStatusGreen = iota ClusterStatusYellow ClusterStatusRed ClusterStatusError )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterStatus ¶
type ClusterStatus int
type DeleteStatus ¶
type DeleteStatus int
const ( DeletePending DeleteStatus = iota DeleteRunning DeleteFinished DeleteFinishedWithErrors DeleteError )
type Manager ¶
type Manager struct { OpensearchManagerOptions *loggingutil.AsyncOpensearchClient // contains filtered or unexported fields }
func NewManager ¶
func NewManager(logger *zap.SugaredLogger, opts ...OpensearchManagerOption) *Manager
func (*Manager) AddClusterMetadata ¶ added in v0.9.1
func (*Manager) CreateInitialAdmin ¶ added in v0.6.2
func (*Manager) DeleteInitialAdminState ¶ added in v0.8.2
func (*Manager) DeleteTaskStatus ¶
func (*Manager) DoClusterDataDelete ¶
func (*Manager) GetClusterStatus ¶
func (m *Manager) GetClusterStatus() ClusterStatus
func (*Manager) ReconcileClusterMetadata ¶ added in v0.9.1
func (*Manager) ShouldCreateInitialAdmin ¶ added in v0.8.2
func (*Manager) UpdateClusterMetadata ¶ added in v0.9.1
func (m *Manager) UpdateClusterMetadata(ctx context.Context, ref *opnicorev1.Reference, update types.ClusterMetadataDocUpdate) error
type OpensearchManagerOption ¶ added in v0.8.2
type OpensearchManagerOption func(*OpensearchManagerOptions)
func WithNatsConnection ¶ added in v0.8.2
func WithNatsConnection(nc *nats.Conn) OpensearchManagerOption
type OpensearchManagerOptions ¶ added in v0.8.2
type OpensearchManagerOptions struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.