attach

package
v0.9.2-56-gd9f04ef4 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 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"`
	ReadOnly bool                     `long:"read-only" short:"r" usage:"Mount the volume read-only"`
	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