backend

package
v0.8.3-rc2 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoggingBackend

type LoggingBackend struct {
	capabilityv1.UnsafeBackendServer
	node.UnsafeNodeLoggingCapabilityServer
	LoggingBackendConfig
	util.Initializer
	// contains filtered or unexported fields
}

func (*LoggingBackend) CanInstall

func (b *LoggingBackend) CanInstall(ctx context.Context, _ *emptypb.Empty) (*emptypb.Empty, error)

func (*LoggingBackend) CancelUninstall

func (b *LoggingBackend) CancelUninstall(_ context.Context, cluster *opnicorev1.Reference) (*emptypb.Empty, error)

func (*LoggingBackend) Info

func (*LoggingBackend) Initialize

func (b *LoggingBackend) Initialize(conf LoggingBackendConfig)

TODO: set up watches on underlying k8s objects to dynamically request a sync

func (*LoggingBackend) Install

func (*LoggingBackend) InstallerTemplate

func (*LoggingBackend) Status

func (*LoggingBackend) Sync

func (*LoggingBackend) Uninstall

func (*LoggingBackend) UninstallStatus

func (b *LoggingBackend) UninstallStatus(_ context.Context, cluster *opnicorev1.Reference) (*opnicorev1.TaskStatus, error)

type LoggingBackendConfig

type LoggingBackendConfig struct {
	Logger              *zap.SugaredLogger             `validate:"required"`
	OpensearchCluster   *opnimeta.OpensearchClusterRef `validate:"required"`
	StorageBackend      storage.Backend                `validate:"required"`
	MgmtClient          managementv1.ManagementClient  `validate:"required"`
	NodeManagerClient   capabilityv1.NodeManagerClient `validate:"required"`
	UninstallController *task.Controller               `validate:"required"`
	ClusterDriver       drivers.ClusterDriver          `validate:"required"`
}

Jump to

Keyboard shortcuts

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