Documentation
¶
Index ¶
- func BuildRoot() *cobra.Command
- func ExecuteStart(ctx context.Context, options *StartOptions) error
- func NewCpCommand() *cobra.Command
- func NewPortForwardCommand() *cobra.Command
- func NewRestoreCommand() *cobra.Command
- func NewRootCmd() *cobra.Command
- func NewSnapshotCommand() *cobra.Command
- func NewStartCommand() *cobra.Command
- func RunRoot()
- func StartLeaderElection(ctx *synccontext.ControllerContext, startLeading func() error) error
- type PortForwardOptions
- type RestoreOptions
- type SnapshotOptions
- type StartOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecuteStart ¶
func ExecuteStart(ctx context.Context, options *StartOptions) error
func NewCpCommand ¶ added in v0.19.0
func NewPortForwardCommand ¶ added in v0.23.3
func NewRestoreCommand ¶ added in v0.24.0
func NewSnapshotCommand ¶ added in v0.24.0
func NewStartCommand ¶
func StartLeaderElection ¶ added in v0.15.1
func StartLeaderElection(ctx *synccontext.ControllerContext, startLeading func() error) error
Types ¶
type PortForwardOptions ¶ added in v0.23.3
type PortForwardOptions struct {
Namespace string
PodName string
RESTClient restclient.Interface
Config *restclient.Config
PodClient corev1client.PodsGetter
Address []string
Ports []string
PortForwarder portForwarder
StopChannel chan struct{}
ReadyChannel chan struct{}
}
PortForwardOptions contains all the options for running the port-forward cli command.
func NewDefaultPortForwardOptions ¶ added in v0.23.3
func NewDefaultPortForwardOptions(streams genericiooptions.IOStreams) *PortForwardOptions
func (*PortForwardOptions) Complete ¶ added in v0.23.3
Complete completes all the required options for port-forward cmd.
func (PortForwardOptions) RunPortForwardContext ¶ added in v0.23.3
func (o PortForwardOptions) RunPortForwardContext(ctx context.Context) error
RunPortForwardContext implements all the necessary functionality for port-forward cmd. It ends portforwarding when an error is received from the backend, or an os.Interrupt signal is received, or the provided context is done.
func (PortForwardOptions) Validate ¶ added in v0.23.3
func (o PortForwardOptions) Validate() error
Validate validates all the required options for port-forward cmd.
type RestoreOptions ¶ added in v0.24.0
type SnapshotOptions ¶ added in v0.24.0
type StartOptions ¶ added in v0.20.0
Click to show internal directories.
Click to hide internal directories.