offload

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package offload includes the logic for the `liqoctl offload` command

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options added in v0.5.0

type Options struct {
	*factory.Factory

	Namespace                string
	PodOffloadingStrategy    offloadingv1alpha1.PodOffloadingStrategyType
	NamespaceMappingStrategy offloadingv1alpha1.NamespaceMappingStrategyType
	RemoteNamespaceName      string
	ClusterSelector          [][]metav1.LabelSelectorRequirement

	OutputFormat string

	Timeout time.Duration
}

Options encapsulates the arguments of the offload namespace command.

func (*Options) ParseClusterSelectors added in v0.5.0

func (o *Options) ParseClusterSelectors(selectors []string) error

ParseClusterSelectors parses the cluster selector.

func (*Options) Run added in v0.5.0

func (o *Options) Run(ctx context.Context) error

Run implements the offload namespace command.

Jump to

Keyboard shortcuts

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