sync

package
v0.11.8 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2020 License: MIT Imports: 23 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Commands = []*cobra.Command{
	createCommand,
	listCommand,
	monitorCommand,
	flushCommand,
	pauseCommand,
	resumeCommand,
	resetCommand,
	terminateCommand,
}

Commands are the synchronization session commands that used to exist at the root of the Mutagen command structure. For backward compatibility, we still register them at the root of the command structure (and hide them in help output). In order to avoid the need to export the commands, we create a list of them.

View Source
var RootCommand = &cobra.Command{
	Use:          "sync",
	Short:        "Create and manage synchronization sessions",
	RunE:         rootMain,
	SilenceUsage: true,
}

Functions

func CreateWithSpecification

func CreateWithSpecification(
	service synchronizationsvc.SynchronizationClient,
	specification *synchronizationsvc.CreationSpecification,
) (string, error)

CreateWithSpecification is an orchestration convenience method invokes the creation using the provided session specification. Unlike other orchestration methods, it requires provision of a client to avoid creating one for each request.

func FlushWithLabelSelector

func FlushWithLabelSelector(labelSelector string, skipWait bool) error

FlushWithLabelSelector is an orchestration convenience method that invokes the flush command using the specified label selector.

func FlushWithSessionIdentifiers added in v0.11.1

func FlushWithSessionIdentifiers(sessions []string, skipWait bool) error

FlushWithSessionIdentifiers is an orchestration convenience method that invokes the flush command with the specified session identifiers.

func ListWithLabelSelector

func ListWithLabelSelector(labelSelector string, long bool) error

ListWithLabelSelector is an orchestration convenience method that invokes the list command using the specified label selector.

func PauseWithLabelSelector

func PauseWithLabelSelector(labelSelector string) error

PauseWithLabelSelector is an orchestration convenience method invokes the pause command using the specified label selector.

func ResetWithLabelSelector added in v0.10.2

func ResetWithLabelSelector(labelSelector string) error

ResetWithLabelSelector is an orchestration convenience method invokes the reset command using the specified label selector.

func ResumeWithLabelSelector

func ResumeWithLabelSelector(labelSelector string) error

ResumeWithLabelSelector is an orchestration convenience method invokes the resume command using the specified label selector.

func TerminateWithLabelSelector

func TerminateWithLabelSelector(labelSelector string) error

TerminateWithLabelSelector is an orchestration convenience method invokes the terminate command using the specified label selector.

Types

This section is empty.

Jump to

Keyboard shortcuts

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