attach

package
v0.8.5-35-g3b6315f4 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Attach

func Attach(ctx context.Context, opts *AttachOptions, args ...string) (*kcvolumes.AttachResponseItem, error)

Attach a KraftCloud persistent volume to an instance.

func NewCmd

func NewCmd() *cobra.Command

Types

type AttachOptions

type AttachOptions struct {
	At     string                   `long:"at" usage:"The path the volume should be mounted to"`
	Auth   *config.AuthConfig       `noattribute:"true"`
	Client kcvolumes.VolumesService `noattribute:"true"`
	To     string                   `long:"to" usage:"The instance the volume should be attached to"`
	// contains filtered or unexported fields
}

func (*AttachOptions) Pre

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

func (*AttachOptions) Run

func (opts *AttachOptions) Run(ctx context.Context, args []string) error

Jump to

Keyboard shortcuts

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