clone

package
v0.10.1-140-g4ab3918e Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2025 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clone

Clone a KraftCloud persistent volume.

func NewCmd

func NewCmd() *cobra.Command

Types

type CloneOptions

type CloneOptions struct {
	Auth   *config.AuthConfig       `noattribute:"true"`
	Client kcvolumes.VolumesService `noattribute:"true"`
	Metro  string                   `noattribute:"true"`
	Source string                   `local:"true" long:"source" short:"s" usage:"Name or UUID of the source volume or template"`
	Target string                   `local:"true" long:"target" short:"t" usage:"Name or UUID of the target volume"`
	Token  string                   `noattribute:"true"`
}

func (*CloneOptions) Pre

func (opts *CloneOptions) Pre(cmd *cobra.Command, _ []string) error

func (*CloneOptions) Run

func (opts *CloneOptions) Run(ctx context.Context, _ []string) error

Jump to

Keyboard shortcuts

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