sync

package
v2.1.94 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdSync

func NewCmdSync(commonOpts *opts.CommonOptions) *cobra.Command

Types

type SyncOptions

type SyncOptions struct {
	*opts.CommonOptions

	Daemon      bool
	NoKsyncInit bool
	SingleMode  bool

	Container string
	Namespace string
	Pod       string
	Dir       string
	RemoteDir string
	Reload    bool
	WatchOnly bool
}

func (*SyncOptions) CreateKsync

func (o *SyncOptions) CreateKsync(client kubernetes.Interface, ns string, name string, dir string, remoteDir string, username string) error

CreateKsync removes the exiting ksync if it already exists then create a new ksync of the given name

func (*SyncOptions) KsyncWatch

func (o *SyncOptions) KsyncWatch() error

func (*SyncOptions) Run

func (o *SyncOptions) Run() error

Jump to

Keyboard shortcuts

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