mount

package
v2.21.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Flags

type Flags struct {
	LocalMountPort uint16 // --local-mount-port
	Mount          string // --mount // "true", "false", or desired mount point
	Enabled        bool
	ReadOnly       bool
}

func (*Flags) AddFlags

func (f *Flags) AddFlags(flagSet *pflag.FlagSet, forceReadOnly bool)

func (*Flags) Validate

func (f *Flags) Validate(cmd *cobra.Command) error

func (*Flags) ValidateConnected

func (f *Flags) ValidateConnected(ctx context.Context) (err error)

type Info

type Info struct {
	LocalDir  string   `json:"local_dir,omitempty"     yaml:"local_dir,omitempty"`
	RemoteDir string   `json:"remote_dir,omitempty"    yaml:"remote_dir,omitempty"`
	Error     string   `json:"error,omitempty"         yaml:"error,omitempty"`
	PodIP     string   `json:"pod_ip,omitempty"        yaml:"pod_ip,omitempty"`
	Port      int32    `json:"port,omitempty"          yaml:"port,omitempty"`
	Mounts    []string `json:"mounts,omitempty"        yaml:"mounts,omitempty"`
	ReadOnly  bool     `json:"read_only,omitempty"     yaml:"read_only,omitempty"`
}

func NewInfo

func NewInfo(ctx context.Context, env map[string]string, ftpPort, sftpPort int32, localDir, remoteDir, podIP string, ro bool) *Info

Jump to

Keyboard shortcuts

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