replica

package
v1.8.0-dev-20250126 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Exporter

type Exporter struct {
	ExporterCmdOptions
	// contains filtered or unexported fields
}

Exporter provide functions for the replica exporter.

func (*Exporter) Cleanup

func (remote *Exporter) Cleanup() error

Cleanup deletes the ConfigMap and DaemonSet created for the replica exporter.

func (*Exporter) Init

func (remote *Exporter) Init() error

Init initializes the Exporter.

func (*Exporter) Run

func (remote *Exporter) Run() (string, error)

Run creates the ConfigMap and DaemonSet for the replica exporter. It ensures the init container completes and the engine container is ready before collecting volume information and returning it as a YAML string.

func (*Exporter) Validate

func (remote *Exporter) Validate() error

Validate validates the command options.

type ExporterCmdOptions

type ExporterCmdOptions struct {
	types.GlobalCmdOptions

	EngineImage           string
	ReplicaName           string
	LonghornDataDirectory string
	HostTargetDirectory   string
}

ExporterCmdOptions holds the options for the command.

type Getter

type Getter struct {
	GetterCmdOptions
	// contains filtered or unexported fields
}

Getter provide functions for the replica getter.

func (*Getter) Cleanup

func (remote *Getter) Cleanup() error

Cleanup deletes the DaemonSet created for the replica getter.

func (*Getter) Init

func (remote *Getter) Init() error

Init initializes the Getter.

func (*Getter) Run

func (remote *Getter) Run() (string, error)

Run creates the DaemonSet for the replica getter. It ensures that the init container and the output container completes before collecting the replica information and returning it as a YAML string.

type GetterCmdOptions

type GetterCmdOptions struct {
	types.GlobalCmdOptions

	LonghornDataDirectory string
	VolumeName            string
	ReplicaName           string
}

GetterCmdOptions holds the options for the command.

Jump to

Keyboard shortcuts

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